public interface ExternalIdentityProvider
ExternalIdentityProvider defines an interface to an external system that provides users and groups that
can be synced with local ones.| Modifier and Type | Method and Description |
|---|---|
@Nullable ExternalUser |
authenticate(@NotNull Credentials credentials)
Authenticates the user represented by the given credentials and returns it.
|
@Nullable ExternalGroup |
getGroup(@NotNull java.lang.String name)
Returns the group for the given (local) group name.
|
@Nullable ExternalIdentity |
getIdentity(@NotNull ExternalIdentityRef ref)
Returns the identity for the given reference or
null if it does not exist. |
@NotNull java.lang.String |
getName()
Returns the name of this provider.
|
@Nullable ExternalUser |
getUser(@NotNull java.lang.String userId)
Returns the user for the given (local) id.
|
@NotNull java.util.Iterator<ExternalGroup> |
listGroups()
List all external groups.
|
@NotNull java.util.Iterator<ExternalUser> |
listUsers()
List all external users.
|
@NotNull @NotNull java.lang.String getName()
@Nullable @Nullable ExternalIdentity getIdentity(@NotNull @NotNull ExternalIdentityRef ref) throws ExternalIdentityException
null if it does not exist. The provider should check if
the provider name matches his own name or is null and
should not return a foreign identity.ref - the referencenullExternalIdentityException - if an error occurs.@Nullable @Nullable ExternalUser getUser(@NotNull @NotNull java.lang.String userId) throws ExternalIdentityException
null is returned.userId - the user id.nullExternalIdentityException - if an error occurs.@Nullable @Nullable ExternalUser authenticate(@NotNull @NotNull Credentials credentials) throws ExternalIdentityException, javax.security.auth.login.LoginException
null is returned. If the authentication fails, a LoginException is thrown.credentials - the credentialsnullExternalIdentityException - if an error occursjavax.security.auth.login.LoginException - if the user could not be authenticated@Nullable @Nullable ExternalGroup getGroup(@NotNull @NotNull java.lang.String name) throws ExternalIdentityException
null is returned.name - the group namenullExternalIdentityException - if an error occurs.@NotNull @NotNull java.util.Iterator<ExternalUser> listUsers() throws ExternalIdentityException
ExternalIdentityException - if an error occurs.@NotNull @NotNull java.util.Iterator<ExternalGroup> listGroups() throws ExternalIdentityException
ExternalIdentityException - if an error occurs.Copyright © 2010 - 2022 Adobe. All Rights Reserved