com.sun.identity.saml.plugins
Interface AttributeMapper


public interface AttributeMapper

The class AttributeMapper is an interface that is implemented to get SSO information and map partner attributes to Access Manager attributes.

A different implementation of the interface may be developed for different partner. The mapping between the partner source ID and the implementation class are configured at the Trusted Partner Sites field in SAML service.


Method Summary
 java.util.List getAttributes(AttributeQuery query, java.lang.String sourceID, SSOToken token)
          Returns Attributes for the user.
 Assertion getSSOAssertion(AttributeQuery query)
          Returns the Assertion that contains Authentication information that can be used to obtain single sign on token.
 java.lang.String getSSOTokenID(AttributeQuery query)
          Returns the single sign on token id to Access Manager from the query.
 

Method Detail

getSSOTokenID

public java.lang.String getSSOTokenID(AttributeQuery query)
Returns the single sign on token id to Access Manager from the query.
Parameters:
query - The received AttributeQuery.
Returns:
String which is the single sign on token ID.

getSSOAssertion

public Assertion getSSOAssertion(AttributeQuery query)
Returns the Assertion that contains Authentication information that can be used to obtain single sign on token.
Parameters:
query - The received AttributeQuery.
Returns:
Assertion The assertion contained inside the query.

getAttributes

public java.util.List getAttributes(AttributeQuery query,
                                    java.lang.String sourceID,
                                    SSOToken token)
                             throws SAMLException
Returns Attributes for the user.
Parameters:
query - The received AttributeQuery.
sourceID - source ID for the site from which the query originated.
token - The single sign on token to be used to retrieve the attributes.
Returns:
A List of Attributes
Throws:
SAMLException - if an error occurs


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.