public class OAuthProviderTokenImpl extends Object implements OAuthAccessProviderToken
Constructor and Description |
---|
OAuthProviderTokenImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getCallbackUrl()
The callback url associated with this token.
|
String |
getConsumerKey()
The consumer key associated with this oauth token.
|
String |
getSecret()
The token secret.
|
long |
getTimestamp()
Timestamp associated with this token.
|
org.springframework.security.core.Authentication |
getUserAuthentication()
The authentication of the user who granted the access token.
|
String |
getValue()
The value of the token.
|
String |
getVerifier()
The verifier string for this token.
|
boolean |
isAccessToken()
Whether this is an OAuth access token.
|
void |
setAccessToken(boolean accessToken)
Whether this is an OAuth access token.
|
void |
setCallbackUrl(String callbackUrl)
The callback url associated with this token.
|
void |
setConsumerKey(String consumerKey)
The consumer key associated with this oauth token.
|
void |
setSecret(String secret)
The token secret.
|
void |
setTimestamp(long timestamp)
Timestamp associated with this token.
|
void |
setUserAuthentication(org.springframework.security.core.Authentication userAuthentication)
The authentication of the user who granted the access token.
|
void |
setValue(String value)
The value of the token.
|
void |
setVerifier(String verifier)
The verifier string for this (access) token.
|
public String getValue()
getValue
in interface OAuthProviderToken
public void setValue(String value)
value
- The value of the token.public String getSecret()
getSecret
in interface OAuthProviderToken
public void setSecret(String secret)
secret
- The token secret.public String getConsumerKey()
getConsumerKey
in interface OAuthProviderToken
public void setConsumerKey(String consumerKey)
consumerKey
- The consumer key associated with this oauth token.public String getCallbackUrl()
getCallbackUrl
in interface OAuthProviderToken
public void setCallbackUrl(String callbackUrl)
callbackUrl
- The callback url associated with this token.public boolean isAccessToken()
isAccessToken
in interface OAuthProviderToken
public void setAccessToken(boolean accessToken)
accessToken
- Whether this is an OAuth access token.public String getVerifier()
getVerifier
in interface OAuthProviderToken
public void setVerifier(String verifier)
verifier
- The verifier string for this (access) token.public org.springframework.security.core.Authentication getUserAuthentication()
getUserAuthentication
in interface OAuthAccessProviderToken
public void setUserAuthentication(org.springframework.security.core.Authentication userAuthentication)
userAuthentication
- The authentication of the user who granted the access token.public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- Timestamp associated with this token.Copyright © 2019. All rights reserved.