Interface Authentication
- 
- All Known Implementing Classes:
- TokenBasedAuthentication
 
 public interface AuthenticationTheAuthenticationinterface defines methods to validateCredentialsupon authentication. The validation dependants on the authentication mechanism used, i.e.- comparison of UserID/password pair retrieved from the given Credentials with Credentials stored for a particular user,
- bind to a LDAP with a given ID,
- validation of a SSO ticket.
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthenticate(Credentials credentials)True if the Credentials identify theUserrelated to this Authentication.booleancanHandle(Credentials credentials)An Authentication may only be able to handle certain types ofCredentialsas the authentication process is tightly coupled to the semantics of theCredentials.
 
- 
- 
- 
Method Detail- 
canHandleboolean canHandle(Credentials credentials) An Authentication may only be able to handle certain types ofCredentialsas the authentication process is tightly coupled to the semantics of theCredentials. E.g.: A ticket basedAuthenticationis dependant on a Credentials implementation which allows access to this ticket.- Parameters:
- credentials- in questions
- Returns:
- trueif the current Authentication handles the given Credentials
 
 - 
authenticateboolean authenticate(Credentials credentials) throws RepositoryException True if the Credentials identify theUserrelated to this Authentication.- Parameters:
- credentials- to verify
- Returns:
- trueif- Credentialsidentify the- User.
- Throws:
- RepositoryException- If an error occurs.
 
 
- 
 
-