Class Oauth2Token


  • public class Oauth2Token
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Oauth2Token​(java.lang.String accessToken, java.lang.Integer expiresIn)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAccessToken()  
      boolean isExpired()
      Checks if this is expired or will be expired in less than 10 seconds.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Oauth2Token

        public Oauth2Token​(java.lang.String accessToken,
                           java.lang.Integer expiresIn)
        Parameters:
        accessToken - the access token String for the Authorization header
        expiresIn - number of seconds before the token expires
    • Method Detail

      • isExpired

        public boolean isExpired()
        Checks if this is expired or will be expired in less than 10 seconds.
        Returns:
        true, this is expired or will be expired in less than 10 seconds
      • getAccessToken

        public java.lang.String getAccessToken()