| org.josso.auth.scheme.AuthenticationScheme
All known Subclasses: org.josso.auth.scheme.AbstractAuthenticationScheme,
AuthenticationScheme | public interface AuthenticationScheme extends CredentialProvider,Cloneable(Code) | | Represents any authentication scheme, like user&password, certificate, kerveros 5, etc.
The authentication mechanism should be :
1. Initialize the AuthenticationScheme withe input credentials received from user.
2. Optionally get the principal name derived from input credentials.
3. Authenticate the user providing known or trusted credentials.
4. Confirm or cancel the authentication process.
5. Optinalliy get private / public credentials.
Authentication schemes are cloneable, a first instance is used as a "prototype" to build new ones.
author: Sebastian Gonzalez Oyuela version: $Id: AuthenticationScheme.java 508 2008-02-18 13:32:29Z sgonzalez $ |
authenticate | boolean authenticate() throws SSOAuthenticationException(Code) | | This method authenticates a user based on its credentials.
The Principal associated with the user if the authentication success, null otherwise. |
cancel | void cancel()(Code) | | Cancels the authentication process.
|
clone | Object clone()(Code) | | All authenticatio schemes should be cloneable.
|
confirm | void confirm()(Code) | | Confirms the authentication process, populates the subject with Principal and credential information.
|
getName | String getName()(Code) | | Obtains the Authentication Scheme name
|
getPrincipal | Principal getPrincipal()(Code) | | This method returns the principal name derived from input credentials.
|
getPrincipal | Principal getPrincipal(Credential[] credentials)(Code) | | This method returns the principal name derived from provided credentials.
|
getPrivateCredentials | Credential[] getPrivateCredentials()(Code) | | Returns an array of private credentials that can be associated to a Subject by the authenticator.
|
getPublicCredentials | Credential[] getPublicCredentials()(Code) | | Returns an array of public credentials that can be associated to a Subject by the authenticator.
|
initialize | void initialize(Credential[] inputCredentials, Subject s)(Code) | | Initializes this authentication scheme with the received credentials.
Parameters: inputCredentials - the list of credentials used to authenticate the user, like username and password. |
setCredentialStore | void setCredentialStore(CredentialStore cs)(Code) | | Setter for the CredentialStore used by the scheme to retrieve known credentials if necessary.
|
setCredentialStoreKeyAdapter | void setCredentialStoreKeyAdapter(CredentialStoreKeyAdapter a)(Code) | | Setter for the CredentialStoreKeyAdapter used by the scheme to retrieve known credentials if necessary.
|
|
|