C
- the credential parameter typepublic interface AuthenticationPlugin<C>
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor<List> |
AUTH
The authentication plugin to use.
|
static AuthenticationPlugin<Object> |
NULL
The plugin that never authenticates, returns the name value
null . |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(String username,
C credential)
Returns true if the user is authentified by its username and credential.
|
Class<C> |
getCredentialType()
Returns the credential type.
|
String |
getName()
Returns the authentication plugin name.
|
static final PropertyDescriptor<List> AUTH
static final AuthenticationPlugin<Object> NULL
null
.Class<C> getCredentialType()
boolean authenticate(String username, C credential) throws Exception
username
- the usernamecredential
- the credentialException
- any exception that would prevent authentication to happenCopyright © 2015 eXo Platform SAS. All Rights Reserved.