|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
C - the credential parameter typepublic interface AuthenticationPlugin<C>
The authentication plugin.
| Field Summary | |
|---|---|
static PropertyDescriptor<String> |
AUTH
The authentication plugin to use. |
static AuthenticationPlugin<Object> |
NULL
The plugin that never authenticates, returns the name value null. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final PropertyDescriptor<String> AUTH
static final AuthenticationPlugin<Object> NULL
null.
| Method Detail |
|---|
String getName()
Class<C> getCredentialType()
boolean authenticate(String username,
C credential)
throws Exception
username - the usernamecredential - the credential
Exception - any exception that would prevent authentication to happen
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||