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 SummaryConstructors 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 SummaryAll 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- 
getClientIdpublic java.lang.String getClientId() Gets the client id.- Returns:
- the id of the client granted consent to access the resource
 
 - 
getUserpublic java.lang.String getUser() Gets the user name.- Returns:
- the user that gave consent
 
 - 
getScopepublic java.lang.String getScope() Gets the scope.- Returns:
- the scope values the user consented to
 
 - 
getResourcepublic java.lang.String getResource() Gets the resource.- Returns:
- the resource the client was granted consent to
 
 - 
getProviderIdpublic java.lang.String getProviderId() Gets the OAuth provider id.- Returns:
- the id of the OAuth provider from which consent was given
 
 - 
getExpirespublic long getExpires() Gets the time the consent expires.- Returns:
- the timestamp in milliseconds since the epoch when this consent expires
 
 - 
getConsentPropertiespublic java.lang.String getConsentProperties() Gets the consent properties as a JSON string.- Returns:
- the JSON string with the consent properties
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-