|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IdentityAuthenticator
This interface is used to define modules that know how to authenticate
an identity based on provided credentials. The credentials must be of
a form recognizable to the implementation. Note that each application
context has its own instances of IdentityAuthenticators.
Typically implementations of IdentityAuthenticator are
invoked by a containing IdentityManager.
All implementations of IdentityAuthenticator must have a
constructor that accepts an instance of java.util.Properties.
The provided properties are part of the application's configuration.
FIXME: When the IO interfaces are ready, these should also be provided to the constructor.
| Method Summary | |
|---|---|
Identity |
authenticateIdentity(IdentityCredentials credentials)
Authenticates the given credentials. |
String[] |
getSupportedCredentialTypes()
Returns the identifiers for this IdentityAuthenticator's
supported credential types. |
| Method Detail |
|---|
String[] getSupportedCredentialTypes()
IdentityAuthenticator's
supported credential types. This may contain any number of
identifiers, which are matched against the identifier of
IdentityCredentials to determine if this
IdentityAuthenticator can consume those credentials.
Identity authenticateIdentity(IdentityCredentials credentials)
throws LoginException
Identity
is valid, but has not yet been notified as logged in.
credentials - the IdentityCredentials to authenticate
Identity
LoginException - if authentication fails
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||