Package com.sap.cloud.security.servlet
Class IasTokenAuthenticator
java.lang.Object
com.sap.cloud.security.servlet.AbstractTokenAuthenticator
com.sap.cloud.security.servlet.IasTokenAuthenticator
- All Implemented Interfaces:
TokenAuthenticator
-
Field Summary
Fields inherited from class com.sap.cloud.security.servlet.AbstractTokenAuthenticator
httpClient, serviceConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractFromHeader(String authorizationHeader) Extracts theTokenfrom the authorization header.protected OAuth2ServiceConfigurationReturn other configured service configurations or null if not configured.protected OAuth2ServiceConfigurationReturn configured service configuration or Environments.getCurrent() if not configured.validateRequest(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) Methods inherited from class com.sap.cloud.security.servlet.AbstractTokenAuthenticator
authenticated, withCacheConfiguration, withHttpClient, withServiceConfiguration, withValidationListener
-
Constructor Details
-
IasTokenAuthenticator
public IasTokenAuthenticator()
-
-
Method Details
-
extractFromHeader
Description copied from class:AbstractTokenAuthenticatorExtracts theTokenfrom the authorization header.- Specified by:
extractFromHeaderin classAbstractTokenAuthenticator- Parameters:
authorizationHeader- the value of the 'Authorization' request header- Returns:
- the
Tokeninstance.
-
validateRequest
public TokenAuthenticationResult validateRequest(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) - Specified by:
validateRequestin interfaceTokenAuthenticator- Overrides:
validateRequestin classAbstractTokenAuthenticator
-
getServiceConfiguration
Description copied from class:AbstractTokenAuthenticatorReturn configured service configuration or Environments.getCurrent() if not configured.- Specified by:
getServiceConfigurationin classAbstractTokenAuthenticator- Returns:
- the actual service configuration
-
getOtherServiceConfiguration
Description copied from class:AbstractTokenAuthenticatorReturn other configured service configurations or null if not configured.- Specified by:
getOtherServiceConfigurationin classAbstractTokenAuthenticator- Returns:
- the other service configuration or null
-