Class OAuth2ServiceSettings

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

public class OAuth2ServiceSettings extends Object
Settings about the Authorization Server.
  • Constructor Details

    • OAuth2ServiceSettings

      protected OAuth2ServiceSettings(@Nonnull URI baseUri, @Nullable String tokenPath, @Nullable String authorizePath, @Nullable String keysetPath)
  • Method Details

    • toOAuth2Endpoints

      @Nonnull @Beta public com.sap.cloud.security.xsuaa.client.OAuth2ServiceEndpointsProvider toOAuth2Endpoints()
      Helps in constructing the OAuth2 endpoints; the tokenEndpoint, authorize and key set URI (JWKS) from the baseUri.
      Returns:
      an implementation of OAuth2ServiceEndpointsProvider
      Since:
      4.14.0
    • ofBaseUri

      @Nonnull public static OAuth2ServiceSettings.OAuth2ServiceSettingsBuilder ofBaseUri(@Nonnull URI baseUri)
      Invoke a builder for this type.
      Parameters:
      baseUri - The required OAuth2 service base URI.
      Returns:
      An instance of the fluent builder API.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • getBaseUri

      @Nonnull public URI getBaseUri()
    • getTokenPath

      @Nullable public String getTokenPath()
    • getAuthorizePath

      @Nullable public String getAuthorizePath()
    • getKeysetPath

      @Nullable public String getKeysetPath()