|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.social.core.oauth2.OAuth2Code
public class OAuth2Code
Represents a "code" string in an OAuth 2.0 handshake, including authorization code, access token, or refresh token. These signatures may all expire. They may also be associated with a redirect_url and/or another code.
| Constructor Summary | |
|---|---|
OAuth2Code()
|
|
OAuth2Code(java.lang.String value)
Constructs an OAuth2Code with a value. |
|
OAuth2Code(java.lang.String value,
java.lang.String redirectURI,
long expiration,
java.util.List<java.lang.String> scope)
Constructs an OAuth2Code. |
|
| Method Summary | |
|---|---|
int |
compareTo(OAuth2Code target)
Compares this code to another code. |
OAuth2Client |
getClient()
Returns the client associated with this code. |
long |
getExpiration()
Returns when this code expires. |
java.lang.String |
getRedirectURI()
Returns the redirect URI associated with this code. |
OAuth2Code |
getRelatedAccessToken()
Gets the related access token. |
OAuth2Code |
getRelatedAuthCode()
Returns the authorization code related to this code. |
OAuth2Code |
getRelatedRefreshToken()
Gets the related refresh token. |
java.util.List<java.lang.String> |
getScope()
Returns the scope of this code. |
OAuth2Types.CodeType |
getType()
Returns the type of this code. |
java.lang.String |
getValue()
Returns the value of this code. |
void |
setClient(OAuth2Client client)
Sets the client associated with this code. |
void |
setExpiration(long expiration)
Sets the expiration of this code. |
void |
setRedirectURI(java.lang.String redirectURI)
Sets the redirect URI associated with this code. |
void |
setRelatedAccessToken(OAuth2Code relatedAccessToken)
Sets the related access token. |
void |
setRelatedAuthCode(OAuth2Code code)
Sets the authorization code that this code is related to, if applicable. |
void |
setRelatedRefreshToken(OAuth2Code relatedRefreshToken)
Sets the related refresh token. |
void |
setScope(java.util.List<java.lang.String> scope)
Sets the scope of this code. |
void |
setType(OAuth2Types.CodeType type)
Sets the type of this code; one of AUTHORIZATION_CODE, ACCESS_TOKEN, REFRESH_TOKEN |
void |
setValue(java.lang.String value)
Sets the value of this code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OAuth2Code()
public OAuth2Code(java.lang.String value,
java.lang.String redirectURI,
long expiration,
java.util.List<java.lang.String> scope)
value - is the String key that makes up the coderedirectURI - is redirect URI associated with this codeexpiration - indicates when this code expiresscope - indicates the scope of this codepublic OAuth2Code(java.lang.String value)
value - is the String key that makes up the code| Method Detail |
|---|
public java.lang.String getValue()
public void setValue(java.lang.String value)
value - is the value to set this code topublic java.lang.String getRedirectURI()
public void setRedirectURI(java.lang.String redirectURI)
redirectURI - represents the redirect URI of this codepublic long getExpiration()
public void setExpiration(long expiration)
expiration - is when this code will expirepublic int compareTo(OAuth2Code target)
compareTo in interface java.lang.Comparable<OAuth2Code>public java.util.List<java.lang.String> getScope()
public void setScope(java.util.List<java.lang.String> scope)
scope - is this code's authorized scopepublic void setClient(OAuth2Client client)
client - is the client to associate with this codepublic OAuth2Client getClient()
public void setType(OAuth2Types.CodeType type)
type - is this code's typepublic OAuth2Types.CodeType getType()
public void setRelatedAuthCode(OAuth2Code code)
code - is the authorization code to associate with this codepublic OAuth2Code getRelatedAuthCode()
public void setRelatedRefreshToken(OAuth2Code relatedRefreshToken)
relatedRefreshToken - is the refresh token related to this codepublic OAuth2Code getRelatedRefreshToken()
public void setRelatedAccessToken(OAuth2Code relatedAccessToken)
relatedAccessToken - is the access token related to this codepublic OAuth2Code getRelatedAccessToken()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||