/**
* 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: FSDefaultAttributeMapper.java,v 1.3 2008/06/25 05:46:53 qcheng Exp $
*
*/
/**
* This class <code>FSDefaultAttributeMapper</code> is the default
* implementation of the <code>FSAttributeMapper</code> used at the service
* provider(SP) and configurable through provider's local configuration.
* The default implementation reads the assertion attributes and
* map to the configured attribute map that is defined in Provider's
* local configuration. The attributes will be populated to the
* session of the user for the consumption of any
* dependent applications. If the configuration is not defined, then the
* attributes in the assertion themselves will be populated.
*/
/**
* Returns the attribute map for the given list of
* <code>AttributeStatement</code>s.
* @param statements list of <code>AttributeStatements</code>s.
* @param hostEntityId Hosted provider entity id.
* @param remoteEntityId Remote provider entity id.
* @param token Single sign-on session token.
* @return map of attribute values. The map will have the key as the
* attribute name and the map value is the attribute value
* that are passed via the single sign-on assertion.
*/
{
return map;
}
try {
if (metaManager != null) {
}
}
} catch (IDFFMetaException fme) {
" Unable to read configuration map.", fme);
return map;
}
"FSDefaultAttributeMapper.getAttributeMap: Configured map " +
}
continue;
}
try {
} catch (SAMLException ex) {
"Attributes: Exception", ex);
}
continue;
}
continue;
}
}
}
//Retrieve the first only one.
}
}
}
return map;
}
}