Interface Authentication
-
- All Known Implementing Classes:
TokenBasedAuthentication
public interface Authentication
TheAuthentication
interface defines methods to validateCredentials
upon 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
authenticate(Credentials credentials)
True if the Credentials identify theUser
related to this Authentication.boolean
canHandle(Credentials credentials)
An Authentication may only be able to handle certain types ofCredentials
as the authentication process is tightly coupled to the semantics of theCredentials
.
-
-
-
Method Detail
-
canHandle
boolean canHandle(Credentials credentials)
An Authentication may only be able to handle certain types ofCredentials
as the authentication process is tightly coupled to the semantics of theCredentials
. E.g.: A ticket basedAuthentication
is dependant on a Credentials implementation which allows access to this ticket.- Parameters:
credentials
- in questions- Returns:
true
if the current Authentication handles the given Credentials
-
authenticate
boolean authenticate(Credentials credentials) throws RepositoryException
True if the Credentials identify theUser
related to this Authentication.- Parameters:
credentials
- to verify- Returns:
true
ifCredentials
identify theUser
.- Throws:
RepositoryException
- If an error occurs.
-
-