public class DefaultIDPAccountMapper extends DefaultAccountMapper implements IDPAccountMapper
DefaultIDPAccountMapper
is the default implementation of the IDPAccountMapper
that is used to map the SAML
protocol objects to the user accounts at the IdentityProvider
side of SAML v2 plugin.
Custom implementations may extend from this class to override some of these implementations if they choose to do so.bundle, debug, dsProvider, IDP, keyProvider, metaManager, role, SP
Constructor and Description |
---|
DefaultIDPAccountMapper() |
Modifier and Type | Method and Description |
---|---|
String |
getIdentity(NameID nameID,
String hostEntityID,
String remoteEntityID,
String realm)
Returns the user's distinguished name or the universal ID for the corresponding
SAML NameID . |
NameID |
getNameID(Object session,
String hostEntityID,
String remoteEntityID,
String realm,
String nameIDFormat)
Returns the user's
NameID information that contains account federation with the corresponding remote
and local entities. |
protected String |
getNameIDValueFromUserProfile(String realm,
String hostEntityID,
String userID,
String nameIDFormat) |
boolean |
shouldPersistNameIDFormat(String realm,
String hostEntityID,
String remoteEntityID,
String nameIDFormat)
Tells whether the provided NameID-Format should be persisted in the user data store or not.
|
getAttribute, getIdentity, getSSOConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIdentity
public NameID getNameID(Object session, String hostEntityID, String remoteEntityID, String realm, String nameIDFormat) throws SAML2Exception
IDPAccountMapper
NameID
information that contains account federation with the corresponding remote
and local entities.getNameID
in interface IDPAccountMapper
session
- Single Sign On session of the user.hostEntityID
- EntityID
of the hosted provider.remoteEntityID
- EntityID
of the remote provider.realm
- Realm or the organization name that may be used to find the user information.nameIDFormat
- NameID
format.NameID
corresponding to the authenticated user.SAML2Exception
- If there was any failure.public String getIdentity(NameID nameID, String hostEntityID, String remoteEntityID, String realm) throws SAML2Exception
IDPAccountMapper
SAML NameID
.
This method returns the universal ID or the DN based on the deployment of the SAMLv2 plugin base platform.getIdentity
in interface IDPAccountMapper
nameID
- SAML NameID
that needs to be mapped to the user.hostEntityID
- EntityID
of the hosted provider.remoteEntityID
- EntityID
of the remote provider.realm
- Realm or the organization name that may be used to find the user information.SAML2Exception
- If there was any failure.public boolean shouldPersistNameIDFormat(String realm, String hostEntityID, String remoteEntityID, String nameIDFormat)
shouldPersistNameIDFormat
in interface IDPAccountMapper
realm
- The hosted IdP's realm.hostEntityID
- The hosted IdP's entityID.remoteEntityID
- The remote SP's entityID.nameIDFormat
- The non-transient NameID-Format in question.true
if the provided NameID-Format should be persisted in the user data store,
false
otherwise.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.