Class OAuthClient

java.lang.Object
com.ibm.websphere.security.oauth20.store.OAuthClient

public class OAuthClient extends Object
An OAuth client implementation used for storing or retrieving entries from an OAuthStore implementation.
  • Constructor Details

    • OAuthClient

      public OAuthClient(String providerId, String clientId, String clientSecret, String displayName, boolean enabled, String clientMetadata)
      Constructs a new OAuthClient data transfer object.
  • Method Details

    • getProviderId

      public String getProviderId()
      Gets the OAuth provider id.
      Returns:
      the id of the OAuth provider this client is registered with
    • getClientId

      public String getClientId()
      Gets the client id.
      Returns:
      the client id
    • getClientSecret

      public String getClientSecret()
      Gets the encoded client secret.
      Returns:
      the client secret
    • getDisplayName

      public String getDisplayName()
      Gets the display name.
      Returns:
      the display name
    • isEnabled

      public boolean isEnabled()
      Returns whether this client can participate in an OAuth flow or not.
      Returns:
      true when the client is allowed to participate in an OAuth flow with the OAuth provider it is registered with
    • getClientMetadata

      public String getClientMetadata()
      Gets the meta data as a JSON string.
      Returns:
      the JSON string with the client meta data
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object