/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: SAE.java,v 1.5 2009/02/26 23:58:10 exu Exp $
*
*/
static {
}
/**
* Constructor
*
*/
public SAE() {
}
}
/**
* Validates the authentication credentials.
*
* @return ISAuthConstants.LOGIN_SUCCEED on login success
* @exception AuthLoginException on failure.
*/
throws AuthLoginException {
throw new AuthLoginException("HttpServletRequest is null");
}
if (debug.messageEnabled()) {
}
"SAE AuthModule.process:get SAE Attrs failed:null.");
throw new AuthLoginException("SAE config Attributes are null");
}
}
}
if (debug.messageEnabled()) {
", idpEntityID=" + idpEntityId +
", idpAppUrl=" + idpAppUrl +
", cryptoType=" + cryptoType +
", key=" + saekey);
}
try {
// Initialize SecureAttrs here.
"com.sun.identity.sae.api.FMCerts");
if(encryptAlg != null) {
}
if(encryptStrength != null) {
}
}
if (debug.messageEnabled())
throw new AuthLoginException("verify failed");
}
"SAE AuthModule.process:verification failed:attrs null.");
throw new AuthLoginException("Attributes are null");
}
continue;
}
if(debug.messageEnabled()) {
}
}
int authLevelInt = DEFAULT_AUTH_LEVEL;
try {
} catch (Exception e) {
authLevel + ". Using default.",e);
}
}
if (debug.messageEnabled()) {
}
return ISAuthConstants.LOGIN_SUCCEED;
}
/**
* Returns the User Principal
*
* @return SAEPrincipal
*/
}
return userPrincipal;
}
/** cleanup module state
*
*/
public void destroyModuleState() {
userTokenId = null;
}
}