public class SecurityManagerBasicAuthHandler extends Object implements AuthenticationHandler
| Constructor and Description |
|---|
SecurityManagerBasicAuthHandler(SecurityManager securityManager) |
| 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.
|
SecurityManager |
getSecurityManager() |
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.
|
public SecurityManagerBasicAuthHandler(SecurityManager securityManager)
public boolean credentialsPresent(Request request)
AuthenticationHandlercredentialsPresent in interface AuthenticationHandlerpublic boolean supports(Resource r, Request request)
AuthenticationHandlersupports in interface AuthenticationHandlerr - - the resource being accesspublic Object authenticate(Resource resource, Request request)
AuthenticationHandlerauthenticate in interface AuthenticationHandlerpublic void appendChallenges(Resource resource, Request request, List<String> challenges)
AuthenticationHandlerappendChallenges in interface AuthenticationHandlerchallenges - - the list of challenges to append to, or not, as appropriatepublic boolean isCompatible(Resource resource, Request request)
AuthenticationHandlerisCompatible in interface AuthenticationHandlerpublic SecurityManager getSecurityManager()
Copyright © 2021 McEvoy Software Ltd. All rights reserved.