Class OAuth2Settings

java.lang.Object
com.okta.sdk.resource.model.OAuth2Settings
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]", comments="Generator version: 7.15.0") public class OAuth2Settings extends Object implements Serializable
OAuth 2.0 configuration used for authType `OAUTH2`
See Also:
  • Field Details

  • Constructor Details

    • OAuth2Settings

      public OAuth2Settings()
  • Method Details

    • authorizeEndpoint

      public OAuth2Settings authorizeEndpoint(URI authorizeEndpoint)
    • getAuthorizeEndpoint

      @Nonnull public URI getAuthorizeEndpoint()
      The URL to the authorization server's authorization endpoint
      Returns:
      authorizeEndpoint
    • setAuthorizeEndpoint

      public void setAuthorizeEndpoint(URI authorizeEndpoint)
    • clientId

      public OAuth2Settings clientId(String clientId)
    • getClientId

      @Nonnull public String getClientId()
      The OAuth 2.0 client identifier
      Returns:
      clientId
    • setClientId

      public void setClientId(String clientId)
    • clientSecret

      public OAuth2Settings clientSecret(String clientSecret)
    • getClientSecret

      @Nonnull public String getClientSecret()
      The OAuth 2.0 client secret
      Returns:
      clientSecret
    • setClientSecret

      public void setClientSecret(String clientSecret)
    • scopes

      public OAuth2Settings scopes(List<String> scopes)
    • addscopesItem

      public OAuth2Settings addscopesItem(String scopesItem)
    • getScopes

      @Nullable public List<String> getScopes()
      List of OAuth 2.0 scopes
      Returns:
      scopes
    • setScopes

      public void setScopes(List<String> scopes)
    • tokenEndpoint

      public OAuth2Settings tokenEndpoint(URI tokenEndpoint)
    • getTokenEndpoint

      @Nonnull public URI getTokenEndpoint()
      The URL to the authorization server's token endpoint
      Returns:
      tokenEndpoint
    • setTokenEndpoint

      public void setTokenEndpoint(URI tokenEndpoint)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object