/**
* 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: FSDefaultAttributePlugin.java,v 1.4 2008/11/10 22:56:58 veiming Exp $
*
*/
/**
* This class <code>FSDefaultAttributePlugin</code> is the default
* attribute plugin implementation of <code>FSAttributePlugin</code>
* of Identity provider. The default implementation will read the
* attribute map configuration defined in hosted IDP local configuration
* and create SAML <code>AttributeStatement</code>s so that they can be
* inserted into SAML SSO <code>Assertion</code>.
*/
/**
* Returns list of <code>AttributeStatement</code>s by using attribute
* map defined in the configuration.
* @param hostEntityId Hosted identity provider entity id.
* @param remoteEntityID Remote provider's entity id
* @param subject Subject subject of the authenticated principal.
* @param token user's session.
* @return list of SAML <code>AttributeStatement<code>s.
* @deprecated This method is deprecated.
* @see #getAttributeStatements(String,String,String,FSSubject,Object)
*/
{
return getAttributeStatements(
}
/**
* Returns list of <code>AttributeStatement</code>s by using attribute
* map defined in the configuration.
* @param realm The realm under which the entity resides.
* @param hostEntityId Hosted identity provider entity id.
* @param remoteEntityID Remote provider's entity id
* @param subject Subject subject of the authenticated principal.
* @param token user's session.
* @return list of SAML <code>AttributeStatement<code>s.
*/
{
"FSDefaultAttributePlugin.getAttributeStatements");
try {
if (metaManager != null) {
}
}
} catch (IDFFMetaException me) {
"Statements: meta exception.", me);
return null;
}
"Statements: Attribute map configuration is empty.");
}
return null;
} else {
"Statements: Attribute map configuration: " + attributeMap);
}
}
try {
if (attributeValue != null) {
}
}
}
return statements;
} catch (SAMLException ex) {
"Statements: SAML Exception", ex);
}
return new ArrayList();
}
"Value: attribute Name is null. Check the attribute map");
return null;
}
try {
"FSDefaultAttributePlugin.getAttribute"
+ "Value: values not found for : " + attrName);
}
return null;
}
} catch (SessionException se) {
"FSDefaultAttributePlugin.getAttributeValue: exception:",
se);
} catch (DataStoreProviderException dspe) {
"FSDefaultAttributePlugin.getAttributeValue: exception: ",
dspe);
}
return null;
}
}