Class AccessTokenInfo


  • public class AccessTokenInfo
    extends Object
    Details about an Access Token.
    • Constructor Detail

      • AccessTokenInfo

        public AccessTokenInfo()
    • 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)
      • addParameter

        public void addParameter​(String paramName,
                                 Object paramValue)
      • getParameter

        public Object getParameter​(String paramName)
      • 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)