org.springframework.security.oauth2.common
Class DefaultOAuth2RefreshToken

java.lang.Object
  extended by org.springframework.security.oauth2.common.DefaultOAuth2RefreshToken
All Implemented Interfaces:
Serializable, OAuth2RefreshToken
Direct Known Subclasses:
DefaultExpiringOAuth2RefreshToken

public class DefaultOAuth2RefreshToken
extends Object
implements Serializable, OAuth2RefreshToken

An OAuth 2 refresh token.

Author:
Ryan Heaton, Dave Syer
See Also:
Serialized Form

Constructor Summary
DefaultOAuth2RefreshToken(String value)
          Create a new refresh token.
 
Method Summary
 boolean equals(Object o)
           
 String getValue()
          The value of the token.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultOAuth2RefreshToken

public DefaultOAuth2RefreshToken(String value)
Create a new refresh token.

Method Detail

getValue

public String getValue()
Description copied from interface: OAuth2RefreshToken
The value of the token.

Specified by:
getValue in interface OAuth2RefreshToken
Returns:
The value of the token.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.