public class AuthenticationService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthenticationService.AuthStatus |
| Modifier and Type | Field and Description |
|---|---|
static String |
ATT_AUTH_CALLED |
static String |
ATT_AUTH_STATUS |
| Constructor and Description |
|---|
AuthenticationService(List<AuthenticationHandler> authenticationHandlers)
Creates a AuthenticationService using the given handlers.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationService.AuthStatus |
authenticate(Resource resource,
Request request)
Looks for an AuthenticationHandler which supports the given resource and
authorization header, and then returns the result of that handler's
authenticate method.
|
boolean |
authenticateDetailsPresent(Request request)
Determine if there are any credentials present.
|
boolean |
canUseExternalAuth(Resource resource,
Request request)
Determine if we can use external identify providers to authenticate this
request
|
List<AuthenticationHandler> |
getAuthenticationHandlers() |
List<String> |
getChallenges(Resource resource,
Request request)
Generates a list of http authentication challenges, one for each
supported authentication method, to be sent to the client.
|
List<ExternalIdentityProvider> |
getExternalIdentityProviders() |
boolean |
isDisableExternal() |
void |
setDisableExternal(boolean disableExternal) |
void |
setExternalIdentityProviders(List<ExternalIdentityProvider> externalIdentityProviders) |
public static final String ATT_AUTH_STATUS
public static final String ATT_AUTH_CALLED
public AuthenticationService(List<AuthenticationHandler> authenticationHandlers)
authenticationHandlers - public AuthenticationService.AuthStatus authenticate(Resource resource, Request request)
resource - request - public List<String> getChallenges(Resource resource, Request request)
resource - - the resoruce being requestedrequest - - the current requestpublic List<AuthenticationHandler> getAuthenticationHandlers()
public List<ExternalIdentityProvider> getExternalIdentityProviders()
public void setExternalIdentityProviders(List<ExternalIdentityProvider> externalIdentityProviders)
public boolean isDisableExternal()
public void setDisableExternal(boolean disableExternal)
public boolean canUseExternalAuth(Resource resource, Request request)
resource - request - public boolean authenticateDetailsPresent(Request request)
request - Copyright © 2021 McEvoy Software Ltd. All rights reserved.