Interface PrincipalNameResolver
- 
public interface PrincipalNameResolverInterface to obtain the name of thePrincipalfrom a givenExternalIdentityRef. 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 byExternalIdentityProviders, that can deduce the principal name from the reference without the extra round trip. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.StringfromExternalIdentityRef(@NotNull ExternalIdentityRef externalIdentityRef)Deduce the name of thePrincipalassociated with theExternalIdentityrepresented by the givenExternalIdentityRef. 
 - 
 
- 
- 
Method Detail
- 
fromExternalIdentityRef
@NotNull @NotNull java.lang.String fromExternalIdentityRef(@NotNull @NotNull ExternalIdentityRef externalIdentityRef) throws ExternalIdentityExceptionDeduce the name of thePrincipalassociated with theExternalIdentityrepresented by the givenExternalIdentityRef.- Parameters:
 externalIdentityRef- A validExternalIdentityRefto an existingExternalIdentity- Returns:
 - The name of the 
Principalassociated with the external identity referenced by the givenexternalIdentityRef. - Throws:
 ExternalIdentityException- If the reference is not valid or another error occurs.
 
 - 
 
 -