/**
* 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: DefaultSPAttributeMapper.java,v 1.3 2008/06/25 05:48:07 qcheng Exp $
*
*/
/**
* This class <code>DefaultSPAttribute</code> implements
* <code>SPAttributeMapper</code> for mapping the assertion attributes
* to local attributes configured in the provider configuration.
*/
implements SPAttributeMapper {
/**
* Constructor.
*/
public DefaultSPAttributeMapper() {
}
/**
* Returns attribute map for the given list of <code>Attribute</code>
* objects.
* @param attributes list <code>Attribute</code>objects.
* @param userID universal identifier or distinguished name(DN) of the user.
* @param hostEntityID <code>EntityID</code> of the hosted provider.
* @param remoteEntityID <code>EntityID</code> of the remote provider.
* @param realm realm name.
* @return a map of mapped attribute value pair. This map has the
* key as the attribute name and the value as the attribute value
* @exception WSFederationException if any failure.
*/
) throws WSFederationException {
"nullAttributes"));
}
if(hostEntityID == null) {
"nullHostEntityID"));
}
"nullRealm"));
}
try {
}
} catch (SAMLException se) {
throw new WSFederationException(se);
}
}
if ( existingValues != null )
{
}
else
{
}
}
return map;
}
}