Package org.wso2.carbon.apimgt.api.model
Class AccessTokenInfo
- java.lang.Object
-
- org.wso2.carbon.apimgt.api.model.AccessTokenInfo
-
public class AccessTokenInfo extends Object
Details about an Access Token.
-
-
Constructor Summary
Constructors Constructor Description AccessTokenInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(String paramName, Object paramValue)
String
getAccessToken()
String
getConsumerKey()
String
getConsumerSecret()
Get consumer secret corresponding to the access tokenString
getEndUserName()
int
getErrorcode()
long
getIssuedTime()
String
getJSONString()
Sending additional properties as a JSON String.String
getKeyManager()
Object
getParameter(String paramName)
String[]
getScopes()
String
getTokenState()
long
getValidityPeriod()
boolean
isApplicationToken()
boolean
isTokenValid()
void
setAccessToken(String accessToken)
void
setApplicationToken(boolean isApplicationToken)
void
setConsumerKey(String consumerKey)
void
setConsumerSecret(String consumerSecret)
Set consumer secret corresponding to the access tokenvoid
setEndUserName(String endUserName)
void
setErrorcode(int errorcode)
void
setIssuedTime(long issuedTime)
void
setKeyManager(String keyManager)
void
setScope(String[] scope)
void
setTokenState(String tokenState)
void
setTokenValid(boolean isTokenValid)
void
setValidityPeriod(long validityPeriod)
-
-
-
Method Detail
-
getKeyManager
public String getKeyManager()
-
setKeyManager
public void setKeyManager(String keyManager)
-
getScopes
public String[] getScopes()
-
getErrorcode
public int getErrorcode()
-
setErrorcode
public void setErrorcode(int errorcode)
-
setScope
public void setScope(String[] scope)
-
getTokenState
public String getTokenState()
-
setTokenState
public void setTokenState(String tokenState)
-
getAccessToken
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
-
getIssuedTime
public long getIssuedTime()
-
getValidityPeriod
public long getValidityPeriod()
-
getConsumerKey
public String getConsumerKey()
-
setConsumerKey
public void setConsumerKey(String consumerKey)
-
getConsumerSecret
public String getConsumerSecret()
Get consumer secret corresponding to the access token- Returns:
- consumer secret
-
setConsumerSecret
public void setConsumerSecret(String consumerSecret)
Set consumer secret corresponding to the access token- Parameters:
consumerSecret
- consumer secret to set
-
setIssuedTime
public void setIssuedTime(long issuedTime)
-
setValidityPeriod
public void setValidityPeriod(long validityPeriod)
-
isTokenValid
public boolean isTokenValid()
-
setTokenValid
public void setTokenValid(boolean isTokenValid)
-
isApplicationToken
public boolean isApplicationToken()
-
setApplicationToken
public void setApplicationToken(boolean isApplicationToken)
-
getJSONString
public String getJSONString()
Sending additional properties as a JSON String.
-
getEndUserName
public String getEndUserName()
-
setEndUserName
public void setEndUserName(String endUserName)
-
-