Class OAuthConsent
- java.lang.Object
-
- com.ibm.websphere.security.oauth20.store.OAuthConsent
-
public class OAuthConsent extends java.lang.Object
An OAuth consent implementation used for storing or retrieving entries from anOAuthStore
implementation.
-
-
Constructor Summary
Constructors Constructor Description OAuthConsent(java.lang.String clientId, java.lang.String user, java.lang.String scope, java.lang.String resource, java.lang.String providerId, long expires, java.lang.String consentProperties)
Constructs a newOAuthConsent
data transfer object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getClientId()
Gets the client id.java.lang.String
getConsentProperties()
Gets the consent properties as a JSON string.long
getExpires()
Gets the time the consent expires.java.lang.String
getProviderId()
Gets the OAuth provider id.java.lang.String
getResource()
Gets the resource.java.lang.String
getScope()
Gets the scope.java.lang.String
getUser()
Gets the user name.int
hashCode()
-
-
-
Method Detail
-
getClientId
public java.lang.String getClientId()
Gets the client id.- Returns:
- the id of the client granted consent to access the resource
-
getUser
public java.lang.String getUser()
Gets the user name.- Returns:
- the user that gave consent
-
getScope
public java.lang.String getScope()
Gets the scope.- Returns:
- the scope values the user consented to
-
getResource
public java.lang.String getResource()
Gets the resource.- Returns:
- the resource the client was granted consent to
-
getProviderId
public java.lang.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 java.lang.String getConsentProperties()
Gets the consent properties as a JSON string.- Returns:
- the JSON string with the consent properties
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-