Apache CXF API

org.apache.cxf.rs.security.oauth2.tokens.refresh
Class RefreshToken

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.common.AccessToken
      extended by org.apache.cxf.rs.security.oauth2.common.ServerAccessToken
          extended by org.apache.cxf.rs.security.oauth2.tokens.refresh.RefreshToken
All Implemented Interfaces:
Serializable

public class RefreshToken
extends ServerAccessToken

Simple Refresh Token implementation

See Also:
Serialized Form

Constructor Summary
RefreshToken()
           
RefreshToken(Client client, long lifetime)
           
RefreshToken(Client client, String tokenKey, long lifetime, long issuedAt)
           
RefreshToken(ServerAccessToken token, String key, List<String> accessTokens)
           
 
Method Summary
 void addAccessToken(String token)
           
 List<String> getAccessTokens()
           
 boolean removeAccessToken(String token)
           
 void setAccessTokens(List<String> accessTokens)
           
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.common.ServerAccessToken
getAudience, getClient, getGrantType, getScopes, getSubject, setAudience, setClient, setGrantType, setScopes, setSubject, validateTokenType
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.common.AccessToken
getExpiresIn, getIssuedAt, getParameters, getRefreshToken, getTokenKey, getTokenType, setExpiresIn, setIssuedAt, setParameters, setRefreshToken, setTokenKey, setTokenType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefreshToken

public RefreshToken(Client client,
                    long lifetime)

RefreshToken

public RefreshToken(Client client,
                    String tokenKey,
                    long lifetime,
                    long issuedAt)

RefreshToken

public RefreshToken(ServerAccessToken token,
                    String key,
                    List<String> accessTokens)

RefreshToken

public RefreshToken()
Method Detail

getAccessTokens

public List<String> getAccessTokens()

setAccessTokens

public void setAccessTokens(List<String> accessTokens)

addAccessToken

public void addAccessToken(String token)

removeAccessToken

public boolean removeAccessToken(String token)

Apache CXF API

Apache CXF