org.surfnet.oaaas.model
Class AccessTokenResponse

java.lang.Object
  extended by org.surfnet.oaaas.model.AccessTokenResponse

public class AccessTokenResponse
extends Object

Bean representation of a Access Token response. See this section of the spec for more info.


Constructor Summary
AccessTokenResponse()
           
AccessTokenResponse(String accessToken, String tokenType, long expiresIn, String refreshToken, String scope)
           
 
Method Summary
 String getAccessToken()
           
 long getExpiresIn()
           
 String getRefreshToken()
           
 String getScope()
           
 String getTokenType()
           
 void setAccessToken(String accessToken)
           
 void setExpiresIn(long expiresIn)
           
 void setRefreshToken(String refreshToken)
           
 void setScope(String scope)
           
 void setTokenType(String tokenType)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessTokenResponse

public AccessTokenResponse()

AccessTokenResponse

public AccessTokenResponse(String accessToken,
                           String tokenType,
                           long expiresIn,
                           String refreshToken,
                           String scope)
Method Detail

getAccessToken

public String getAccessToken()
Returns:
the accessToken

setAccessToken

public void setAccessToken(String accessToken)
Parameters:
accessToken - the accessToken to set

getTokenType

public String getTokenType()
Returns:
the tokenType

setTokenType

public void setTokenType(String tokenType)
Parameters:
tokenType - the tokenType to set

getExpiresIn

public long getExpiresIn()
Returns:
the expiresIn

setExpiresIn

public void setExpiresIn(long expiresIn)
Parameters:
expiresIn - the expiresIn to set

getRefreshToken

public String getRefreshToken()
Returns:
the refreshToken

setRefreshToken

public void setRefreshToken(String refreshToken)
Parameters:
refreshToken - the refreshToken to set

getScope

public String getScope()
Returns:
the scope

setScope

public void setScope(String scope)
Parameters:
scope - the scope to set

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.