public interface AuthenticationHandler
| Modifier and Type | Method and Description |
|---|---|
void |
appendChallenges(Resource resource,
Request request,
List<String> challenges)
Create a challenge for this authentication method.
|
Object |
authenticate(Resource resource,
Request request)
Authenticate the details in the request for access to the given
resource.
|
boolean |
credentialsPresent(Request request)
Determine if there are login credentials present.
|
boolean |
isCompatible(Resource resource,
Request request)
Returns true if this authentication handler is compatible with the given
resource
This is used when authorisation has failed, in generating challenge responses
If you don't want to add a challenge response, return false
|
boolean |
supports(Resource r,
Request request)
Returns true if this supports authenticating with the given Auth data
on the given resource.
|
boolean supports(Resource r, Request request)
r - - the resource being accessrequest - Object authenticate(Resource resource, Request request)
resource - request - void appendChallenges(Resource resource, Request request, List<String> challenges)
resource - request - challenges - - the list of challenges to append to, or not, as appropriateboolean isCompatible(Resource resource, Request request)
resource - request - boolean credentialsPresent(Request request)
request - Copyright © 2021 McEvoy Software Ltd. All rights reserved.