/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 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: Federation.java,v 1.3 2009/01/28 05:35:10 ww203982 Exp $
*
* Portions Copyrighted 2014 ForgeRock AS
*/
// import com.sun.identity.shared.ldap.util.DN;
"FederationAuthLevel";
/**
* Constructor
*/
public Federation() {
}
/**
* Initialize parameters.
*/
if (debug.messageEnabled()) {
"fmAuthFederation Authentication resource bundle locale="+
locale);
}
this.callbackHandler = getCallbackHandler();
if (authLevelStr != null) {
try {
} catch (Exception e) {
authLevelStr,e);
}
}
}
}
/**
* Process the authentication request.
* @return ISAuthConstants.LOGIN_SUCCEED as succeeded;
* ISAuthConstants.LOGIN_IGNORE as failed.
* @exception AuthLoginException upon any failure. login state should be
* kept on exceptions for status check in auth chaining.
*/
throws AuthLoginException {
try {
} catch (IllegalArgumentException ill) {
} catch (IOException ioe) {
throw new AuthLoginException(ioe);
} catch (UnsupportedCallbackException uce) {
null);
}
null);
}
Map<String, Set<String>> attrs = (Map<String, Set<String>>) request.getAttribute(SessionProvider.ATTR_MAP);
}
}
// TBD: This piece may or may not be needed
/*
DN dnObject = new DN(userName);
String [] array = dnObject.explodeDN(true);
userName = array[0];
*/
try {
} catch (Exception e) {
authLevel,e);
}
}
return ISAuthConstants.LOGIN_SUCCEED;
}
/**
* Returns principal of the authenticated user.
* @return Principal of the authenticated user.
*/
}
return userPrincipal;
}
/**
* Clean up the login state.
*/
public void destroyModuleState() {
}
}