public interface CredentialsSupport
Credentials implementations during authentication.| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,?> |
getAttributes(Credentials credentials)
Obtains the attributes as present with the specified
Credentials. |
java.util.Set<java.lang.Class> |
getCredentialClasses()
Returns all
credentials classes supported by this
implementation. |
java.lang.String |
getUserId(Credentials credentials)
Retrieves the user identifier from the specified
Credentials. |
boolean |
setAttributes(Credentials credentials,
java.util.Map<java.lang.String,?> attributes)
Writes the attributes to the specified
Credentials. |
java.util.Set<java.lang.Class> getCredentialClasses()
credentials classes supported by this
implementation.credentials classes.java.lang.String getUserId(Credentials credentials)
Credentials.
If the specified credentials are not supported or don't contain any
user id information this method will return null.credentials - The credentials as passed to the repository login.Credentials or null.java.util.Map<java.lang.String,?> getAttributes(Credentials credentials)
Credentials.
If the specified credentials are not supported or don't contain any
attributes this method will return an empty Map.credentials - The credentials as passed to the repository login.Map.boolean setAttributes(Credentials credentials,
java.util.Map<java.lang.String,?> attributes)
Credentials.
If the specified credentials are not supported or doesn't allow to write
attributes this method will return false.credentials - The credentials as passed to the repository login.attributes - The attributes to be written to the given credentials.true, if the attributes were set; false otherwise."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"