public class XsuaaTokenAuthenticator extends AbstractTokenAuthenticator
httpClient, serviceConfiguration| Constructor and Description |
|---|
XsuaaTokenAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
protected TokenAuthenticationResult |
authenticated(Token token) |
Token |
extractFromHeader(String authorizationHeader)
Extracts the
Token from the authorization header. |
protected OAuth2ServiceConfiguration |
getOtherServiceConfiguration()
Return other configured service configurations or null if not configured.
|
protected OAuth2ServiceConfiguration |
getServiceConfiguration()
Return configured service configuration or Environments.getCurrent() if not
configured.
|
TokenAuthenticationResult |
validateRequest(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
AbstractTokenAuthenticator |
withHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
Use to configure the HttpClient that is used to retrieve token keys or to
perform a token-exchange.
|
AbstractTokenAuthenticator |
withServiceConfiguration(OAuth2ServiceConfiguration serviceConfiguration)
Use to override the service configuration used.
|
withCacheConfiguration, withValidationListenerpublic AbstractTokenAuthenticator withServiceConfiguration(OAuth2ServiceConfiguration serviceConfiguration)
AbstractTokenAuthenticatorwithServiceConfiguration in class AbstractTokenAuthenticatorserviceConfiguration - the service configuration to usepublic AbstractTokenAuthenticator withHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
AbstractTokenAuthenticatorwithHttpClient in class AbstractTokenAuthenticatorhttpClient - the HttpClientpublic Token extractFromHeader(String authorizationHeader)
AbstractTokenAuthenticatorToken from the authorization header.extractFromHeader in class AbstractTokenAuthenticatorauthorizationHeader - the value of the 'Authorization' request headerToken instance.protected OAuth2ServiceConfiguration getServiceConfiguration()
AbstractTokenAuthenticatorgetServiceConfiguration in class AbstractTokenAuthenticator@Nullable protected OAuth2ServiceConfiguration getOtherServiceConfiguration()
AbstractTokenAuthenticatorgetOtherServiceConfiguration in class AbstractTokenAuthenticatorprotected TokenAuthenticationResult authenticated(Token token)
authenticated in class AbstractTokenAuthenticatorpublic TokenAuthenticationResult validateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
validateRequest in interface TokenAuthenticatorvalidateRequest in class AbstractTokenAuthenticatorCopyright © 2024. All rights reserved.