public interface NameIdentifierMapper
NameIdentifierMapper
is an interface that is
used to map user's NameIdentifier
from one provider
to another.
Modifier and Type | Method and Description |
---|---|
NameIdentifier |
getNameIdentifier(String spProviderID,
String idpProviderID,
NameIdentifier nameId,
String userID)
Returns mapped
NameIdentifier for specified user. |
NameIdentifier getNameIdentifier(String spProviderID, String idpProviderID, NameIdentifier nameId, String userID)
NameIdentifier
for specified user.
This is used by Discovery Service to generate correct
NameIdentifier
when creating credentials for remote
service provider. A NameIdentifier
in encrypted format
could be returned if the response will be passed through a proxy.spProviderID
- Provider ID of the service provider to which
the NameIdentifier
needs to be mapped.idpProviderID
- Provider ID of the identifier provider.nameId
- The NameIdentifier
needs to be mapped.userID
- The user whose mapped NameIdentifier
will
be returned. The value is the universal identifier of the user.NameIdentifier
for specified user,
return null if unable to map the NameIdentifier
,
return original name identifier if no need to map the
NameIdentifier
.Copyright © 2010-2018, ForgeRock All Rights Reserved.