public interface Authentication
Authentication interface defines methods to validate
Credentials upon authentication. The validation
dependants on the authentication mechanism used, i.e.
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(javax.jcr.Credentials credentials)
True if the Credentials identify the
User related to this
Authentication. |
boolean |
canHandle(javax.jcr.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. |
boolean canHandle(javax.jcr.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 questionstrue if the current Authentication handles the given Credentialsboolean authenticate(javax.jcr.Credentials credentials)
throws javax.jcr.RepositoryException
User related to this
Authentication.credentials - to verifytrue if Credentials identify the
User.javax.jcr.RepositoryException - If an error occurs.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.