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 |
|---|---|
ExternalUser |
authenticate(javax.jcr.Credentials credentials)
Authenticates the user represented by the given credentials and returns it.
|
ExternalGroup |
getGroup(String name)
Returns the group for the given (local) group name.
|
ExternalIdentity |
getIdentity(ExternalIdentityRef ref)
Returns the identity for the given reference or
null if it does not exist. |
String |
getName()
Returns the name of this provider.
|
ExternalUser |
getUser(String userId)
Returns the user for the given (local) id.
|
Iterator<ExternalGroup> |
listGroups()
List all external groups.
|
Iterator<ExternalUser> |
listUsers()
List all external users.
|
@CheckForNull ExternalIdentity getIdentity(@Nonnull 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.@CheckForNull ExternalUser getUser(@Nonnull String userId) throws ExternalIdentityException
null is returned.userId - the user id.nullExternalIdentityException - if an error occurs.@CheckForNull ExternalUser authenticate(@Nonnull javax.jcr.Credentials credentials) throws ExternalIdentityException, LoginException
null is returned. If the authentication fails, a LoginException is thrown.credentials - the credentialsnullExternalIdentityException - if an error occursLoginException - if the user could not be authenticated@CheckForNull ExternalGroup getGroup(@Nonnull String name) throws ExternalIdentityException
null is returned.name - the group namenullExternalIdentityException - if an error occurs.@Nonnull Iterator<ExternalUser> listUsers() throws ExternalIdentityException
ExternalIdentityException - if an error occurs.@Nonnull Iterator<ExternalGroup> listGroups() throws ExternalIdentityException
ExternalIdentityException - if an error occurs.Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.