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
  • Constructor Details

    • ClientCredentialJwtAccess

      public ClientCredentialJwtAccess(ClientCredentialJwtReader jwtReader)
      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

      public Optional<String> getAuthorization() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getAuthorization in interface Authenticator
      Returns:
      value of the authorization header or Optional.empty if no authorization is required
      Throws:
      IOException - thrown if communication with XSUAA service fails