public interface WSOAuth20Token
Modifier and Type | Field and Description |
---|---|
static java.security.SecurityPermission |
GET_OAUTH_PERM |
static java.security.SecurityPermission |
UPDATE_OAUTH_PERM |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String key)
Get the oauth 2.0 token attribute by given key
|
java.util.Map |
getAttributes()
Get the oauth 2.0 token attributes
|
java.lang.String |
getCacheKey()
Get Token cache key
|
java.lang.String |
getClientID()
Get OAuth 2.0 client_id
|
long |
getExpirationTime()
Get the expiration time for the access_token
|
java.lang.String |
getProperty(java.lang.String key)
Get the custom property value by given key
|
java.lang.String |
getProvider()
Retrieves the OAuth 2.0 service provider name associated with the token
|
java.lang.String[] |
getScope()
Get OAuth 2.0 scopes authorized by resource owner
|
java.lang.String |
getTokenString()
Get OAuth 2.0 'access_token' issued by authorization server
|
java.lang.String |
getUser()
Get the resource owner name
|
boolean |
isValid()
Retrieves the flag that indicates validity of the access_token.
|
static final java.security.SecurityPermission GET_OAUTH_PERM
static final java.security.SecurityPermission UPDATE_OAUTH_PERM
java.lang.String getUser()
java.lang.String getTokenString()
java.lang.String getClientID()
java.lang.String[] getScope()
long getExpirationTime()
java.lang.String getProperty(java.lang.String key)
java.lang.Object getAttribute(java.lang.String key)
java.util.Map getAttributes()
java.lang.String getCacheKey()
boolean isValid()
java.lang.String getProvider()