public interface PrincipalNameResolver
Principal from a
given ExternalIdentityRef. The aim of this interface is to prevent
potentially unnecessary round trips associated with the following sequence:
String principalName = null;
ExternalIdentity extId = externalIDP.getIdentity(externalIdentityRef);
if (extId != null) {
principalName = extid.getPrincipalName();
}
This interface is expected to be implemented by ExternalIdentityProviders,
that can deduce the principal name from the reference without the extra round trip.| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
fromExternalIdentityRef(@NotNull ExternalIdentityRef externalIdentityRef)
Deduce the name of the
Principal associated with the
ExternalIdentity represented by the given ExternalIdentityRef. |
@NotNull @NotNull String fromExternalIdentityRef(@NotNull @NotNull ExternalIdentityRef externalIdentityRef) throws ExternalIdentityException
Principal associated with the
ExternalIdentity represented by the given ExternalIdentityRef.externalIdentityRef - A valid ExternalIdentityRef to an existing ExternalIdentityPrincipal associated with the external identity referenced by the given externalIdentityRef.ExternalIdentityException - If the reference is not valid or another error occurs.Copyright © 2010 - 2020 Adobe. All Rights Reserved