public class DefaultAccountMapper extends Object
DefaultAccountMapper
is a base class that the
DefaultSPAccountMapper
and DefaultIDPAccountMapper
shall 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.Modifier and Type | Field and Description |
---|---|
protected static ResourceBundle |
bundle |
protected static Debug |
debug |
protected static DataStoreProvider |
dsProvider |
protected static String |
IDP |
protected static KeyProvider |
keyProvider |
protected static SAML2MetaManager |
metaManager |
protected String |
role |
protected static String |
SP |
Constructor and Description |
---|
DefaultAccountMapper()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
getAttribute(String realm,
String entityID,
String attributeName)
Returns the attribute value configured in the given entity
SP or IDP configuration.
|
String |
getIdentity(ManageNameIDRequest manageNameIDRequest,
String hostEntityID,
String realm)
Returns the user's disntinguished name or the universal ID for the
corresponding
SAML ManageNameIDRequest . |
protected BaseConfigType |
getSSOConfig(String realm,
String entityID) |
protected static Debug debug
protected static ResourceBundle bundle
protected static DataStoreProvider dsProvider
protected static SAML2MetaManager metaManager
protected static final String IDP
protected static final String SP
protected String role
protected static KeyProvider keyProvider
public String getIdentity(ManageNameIDRequest manageNameIDRequest, String hostEntityID, String realm) throws SAML2Exception
SAML
ManageNameIDRequest
.
This method will be invoked by the SAML
framework for
retrieving the user identity while processing the
ManageIDRequest
.manageNameIDRequest
- SAML
ManageNameIDRequest
that needs to be mapped to the user.hostEntityID
- EntityID
of the hosted provider.realm
- realm or the organization name that may be used to find
the user information.SAML2Exception
- if any failure.protected String getAttribute(String realm, String entityID, String attributeName)
realm
- realm name.entityID
- hosted EntityID
.attributeName
- name of the attribute.protected final BaseConfigType getSSOConfig(String realm, String entityID) throws SAML2MetaException
SAML2MetaException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.