/**
* 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: DefaultAccountMapper.java,v 1.5 2009/10/28 23:58:59 exu Exp $
*
*/
/**
* This class <code>DefaultAccountMapper</code> is a base class extended by
* <code>DefaultSPAccountMapper</code> and <code>DefaultIDPAccountMapper</code>.
* This class implements the common interface
* methods that are required for the SP and IDP account mappers and also
* provide some utility classes that can be shared between those mappers.
*/
public class DefaultAccountMapper {
static {
try {
"failed", se);
throw new ExceptionInInitializerError(se);
}
}
/**
* Default constructor
*/
public DefaultAccountMapper() {
}
/**
* Returns the <code>NameIDInfoKey</code> key value pair that can
* be used for searching the user.
* @param nameID <code>NameID</code> object.
* @param hostEntityID hosted <code>EntityID</code>.
* @param remoteEntityID remote <code>EntityID</code>.
* @exception <code>WSFederationException</code> if any failure.
*/
throws WSFederationException {
"nullNameID"));
}
try
{
}
catch (SAML2Exception se)
{
throw new WSFederationException(se);
}
if(debug.messageEnabled()) {
}
return keyMap;
}
/**
* Returns the attribute value configured in the given entity
* SP or IDP configuration.
* @param realm realm name.
* @param entityID hosted <code>EntityID</code>.
* @param attributeName name of the attribute.
*/
if(debug.messageEnabled()) {
"null input parameters.");
}
return null;
}
try {
} else {
}
if(debug.messageEnabled()) {
" attribute configuration is not defined for " +
}
return null;
}
}
if(debug.messageEnabled()) {
attributeName + " is not configured.");
}
return null;
} catch (WSFederationMetaException sme) {
if(debug.warningEnabled()) {
"Meta Exception", sme);
}
}
return null;
}
}