Class OAuthConsent
- java.lang.Object
-
- com.ibm.websphere.security.oauth20.store.OAuthConsent
-
public class OAuthConsent extends java.lang.ObjectAn OAuth consent implementation used for storing or retrieving entries from anOAuthStoreimplementation.
-
-
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 newOAuthConsentdata transfer object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetClientId()Gets the client id.java.lang.StringgetConsentProperties()Gets the consent properties as a JSON string.longgetExpires()Gets the time the consent expires.java.lang.StringgetProviderId()Gets the OAuth provider id.java.lang.StringgetResource()Gets the resource.java.lang.StringgetScope()Gets the scope.java.lang.StringgetUser()Gets the user name.inthashCode()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-