Class OAuthConsent

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

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

    • OAuthConsent

      public OAuthConsent(String clientId, String user, String scope, String resource, String providerId, long expires, String consentProperties)
      Constructs a new OAuthConsent data transfer object.
  • Method Details

    • getClientId

      public String getClientId()
      Gets the client id.
      Returns:
      the id of the client granted consent to access the resource
    • getUser

      public String getUser()
      Gets the user name.
      Returns:
      the user that gave consent
    • getScope

      public String getScope()
      Gets the scope.
      Returns:
      the scope values the user consented to
    • getResource

      public String getResource()
      Gets the resource.
      Returns:
      the resource the client was granted consent to
    • getProviderId

      public String getProviderId()
      Gets the OAuth provider id.
      Returns:
      the id of the OAuth provider from which consent was given
    • getExpires

      public long getExpires()
      Gets the time the consent expires.
      Returns:
      the timestamp in milliseconds since the epoch when this consent expires
    • getConsentProperties

      public String getConsentProperties()
      Gets the consent properties as a JSON string.
      Returns:
      the JSON string with the consent properties
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object