|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Authentication
The Authentication
interface defines methods to validate
Credentials
upon authentication. The validation
dependants on the authentication mechanism used, i.e.
Method Summary | |
---|---|
boolean |
authenticate(Credentials credentials)
True if the Credentials identify the User related to this
Authentication. |
boolean |
canHandle(Credentials credentials)
An Authentication may only be able to handle certain types of Credentials as the authentication process is tightly coupled
to the semantics of the Credentials . |
Method Detail |
---|
boolean canHandle(Credentials credentials)
Credentials
as the authentication process is tightly coupled
to the semantics of the Credentials
.
E.g.: A ticket based Authentication
is dependant on a
Credentials implementation which allows access to this ticket.
credentials
- in questions
true
if the current Authentication handles the given Credentialsboolean authenticate(Credentials credentials) throws RepositoryException
User
related to this
Authentication.
credentials
- to verify
true
if Credentials
identify the
User
.
RepositoryException
- If an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |