Class AuthTokenBuilder

java.lang.Object
com.sap.cloud.sdk.cloudplatform.security.AuthTokenBuilder

@Deprecated public class AuthTokenBuilder extends Object
Deprecated.
Utility class to manage decoding and encoding of JWT.
  • Constructor Details

    • AuthTokenBuilder

      public AuthTokenBuilder()
      Deprecated.
  • Method Details

    • decodedJwt

      @Nonnull public AuthTokenBuilder.FluentHelperBuild decodedJwt(@Nonnull com.auth0.jwt.interfaces.DecodedJWT decodedJwt)
      Deprecated.
      Use a DecodedJWT for constructing the AuthToken.
      Parameters:
      decodedJwt - The decoded JWT. The given value will be used without any validation.
      Returns:
      A fluent helper to chain operations.
    • encodedJwt

      @Nonnull public AuthTokenBuilder.FluentHelperRefreshToken encodedJwt(@Nonnull String encodedJwt)
      Deprecated.
      Use an encoded JWT for constructing the AuthToken.
      Parameters:
      encodedJwt - The encoded JWT. The given value will be validated and decoded.
      Returns:
      A fluent helper to chain operations.
    • unsignedJwt

      @Nonnull public AuthTokenBuilder.FluentHelperUnsignedJwt unsignedJwt()
      Deprecated.
      Use an non-validated, unsigned JWT for constructing the AuthToken. This artificial JWT can be used in the execute methods of AuthTokenAccessor.
      Returns:
      A fluent helper to chain operations.