Class OAuthClient
- java.lang.Object
- 
- com.ibm.websphere.security.oauth20.store.OAuthClient
 
- 
 public class OAuthClient extends java.lang.ObjectAn OAuth client implementation used for storing or retrieving entries from anOAuthStoreimplementation.
- 
- 
Constructor SummaryConstructors Constructor Description OAuthClient(java.lang.String providerId, java.lang.String clientId, java.lang.String clientSecret, java.lang.String displayName, boolean enabled, java.lang.String clientMetadata)Constructs a newOAuthClientdata 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.StringgetClientMetadata()Gets the meta data as a JSON string.java.lang.StringgetClientSecret()Gets the encoded client secret.java.lang.StringgetDisplayName()Gets the display name.java.lang.StringgetProviderId()Gets the OAuth provider id.inthashCode()booleanisEnabled()Returns whether this client can participate in an OAuth flow or not.
 
- 
- 
- 
Method Detail- 
getProviderIdpublic java.lang.String getProviderId() Gets the OAuth provider id.- Returns:
- the id of the OAuth provider this client is registered with
 
 - 
getClientIdpublic java.lang.String getClientId() Gets the client id.- Returns:
- the client id
 
 - 
getClientSecretpublic java.lang.String getClientSecret() Gets the encoded client secret.- Returns:
- the client secret
 
 - 
getDisplayNamepublic java.lang.String getDisplayName() Gets the display name.- Returns:
- the display name
 
 - 
isEnabledpublic 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
 
 - 
getClientMetadatapublic java.lang.String getClientMetadata() Gets the meta data as a JSON string.- Returns:
- the JSON string with the client meta data
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-