Package com.sun.identity.saml2.plugins
Class DefaultAccountMapper
- java.lang.Object
-
- com.sun.identity.saml2.plugins.DefaultAccountMapper
-
- Direct Known Subclasses:
DefaultIDPAccountMapper,DefaultLibrarySPAccountMapper
public class DefaultAccountMapper extends Object
This classDefaultAccountMapperis a base class that theDefaultSPAccountMapperandDefaultIDPAccountMappershall extend from this class. 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 these mappers.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ResourceBundlebundleprotected static Debugdebugprotected static DataStoreProviderdsProviderprotected static StringIDPprotected static KeyProviderkeyProviderprotected static SAML2MetaManagermetaManagerprotected Stringroleprotected static StringSP
-
Constructor Summary
Constructors Constructor Description DefaultAccountMapper()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetAttribute(String realm, String entityID, String attributeName)Returns the attribute value configured in the given entity SP or IDP configuration.StringgetIdentity(ManageNameIDRequest manageNameIDRequest, String hostEntityID, String realm)Returns the user's disntinguished name or the universal ID for the correspondingSAMLManageNameIDRequest.protected BaseConfigTypegetSSOConfig(String realm, String entityID)
-
-
-
Field Detail
-
debug
protected static Debug debug
-
bundle
protected static ResourceBundle bundle
-
dsProvider
protected static DataStoreProvider dsProvider
-
metaManager
protected static SAML2MetaManager metaManager
-
IDP
protected static final String IDP
- See Also:
- Constant Field Values
-
SP
protected static final String SP
- See Also:
- Constant Field Values
-
role
protected String role
-
keyProvider
protected static KeyProvider keyProvider
-
-
Method Detail
-
getIdentity
public String getIdentity(ManageNameIDRequest manageNameIDRequest, String hostEntityID, String realm) throws SAML2Exception
Returns the user's disntinguished name or the universal ID for the correspondingSAMLManageNameIDRequest. This method will be invoked by theSAMLframework for retrieving the user identity while processing theManageIDRequest.- Parameters:
manageNameIDRequest-SAMLManageNameIDRequestthat needs to be mapped to the user.hostEntityID-EntityIDof the hosted provider.realm- realm or the organization name that may be used to find the user information.- Returns:
- user's disntinguished name or the universal ID.
- Throws:
SAML2Exception- if any failure.
-
getAttribute
protected String getAttribute(String realm, String entityID, String attributeName)
Returns the attribute value configured in the given entity SP or IDP configuration.- Parameters:
realm- realm name.entityID- hostedEntityID.attributeName- name of the attribute.
-
getSSOConfig
protected final BaseConfigType getSSOConfig(String realm, String entityID) throws SAML2MetaException
- Throws:
SAML2MetaException
-
-