Class ClientCredentialJwtAccess
java.lang.Object
com.sap.cds.services.utils.lib.mtx.impl.ClientCredentialJwtAccess
- All Implemented Interfaces:
Authenticator
@Deprecated(forRemoval=true,
since="3.4.0")
public class ClientCredentialJwtAccess
extends Object
implements Authenticator
Deprecated, for removal: This API element is subject to removal in a future version.
Class providing access to JWT tokens, a retrieved JWT is cached until it
expires
-
Field Summary
Fields inherited from interface com.sap.cds.services.utils.lib.mtx.impl.Authenticator
NONE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ClientCredentialJwtAccess
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
jwtReader- object that retrieves a new JWT from XSUAA
-
-
Method Details
-
getAuthorization
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAuthorizationin interfaceAuthenticator- Returns:
- value of the authorization header or
Optional.emptyif no authorization is required - Throws:
IOException- thrown if communication with XSUAA service fails
-