Class DefaultLibrarySPAccountMapper
- java.lang.Object
-
- com.sun.identity.wsfederation.plugins.DefaultAccountMapper
-
- com.sun.identity.wsfederation.plugins.DefaultLibrarySPAccountMapper
-
- All Implemented Interfaces:
SPAccountMapper
- Direct Known Subclasses:
DefaultADFSPartnerAccountMapper
public class DefaultLibrarySPAccountMapper extends DefaultAccountMapper implements SPAccountMapper
This classDefaultLibrarySPAccountMapperis the default implementation of theSPAccountMapperthat is used to map theSAMLprotocol objects to the user accounts. at theServiceProviderside of WSFederation plugin. Custom implementations may extend from this class to override some of these implementations if they choose to do so.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.wsfederation.plugins.DefaultAccountMapper
bundle, debug, dsProvider, IDP, keyProvider, role, SP
-
-
Constructor Summary
Constructors Constructor Description DefaultLibrarySPAccountMapper()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIdentity(RequestSecurityTokenResponse rstr, String hostEntityID, String realm)Returns the user's disntinguished name or the universal ID for the correspondingSAMLAssertion.protected booleanisDynamicalOrIgnoredProfile(String realm)Checks if dynamical profile creation or ignore profile is enabled.-
Methods inherited from class com.sun.identity.wsfederation.plugins.DefaultAccountMapper
getAttribute, getSearchParameters
-
-
-
-
Method Detail
-
getIdentity
public String getIdentity(RequestSecurityTokenResponse rstr, String hostEntityID, String realm) throws WSFederationException
Returns the user's disntinguished name or the universal ID for the correspondingSAMLAssertion. This method will be invoked by theWS-Federationframework while processing theAssertionand retrieves the identity information. The implementation of this method checks for the user for the corresponding name identifier in the assertion.- Specified by:
getIdentityin interfaceSPAccountMapper- Parameters:
rstr- Request Security Token Response.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:
WSFederationException- if any failure.
-
isDynamicalOrIgnoredProfile
protected boolean isDynamicalOrIgnoredProfile(String realm)
Checks if dynamical profile creation or ignore profile is enabled.- Parameters:
realm- realm to check the dynamical profile creation attributes.- Returns:
- true if dynamical profile creation or ignore profile is enabled, false otherwise.
-
-