Class SqlAuthenticationToken

    • Constructor Detail

      • SqlAuthenticationToken

        public SqlAuthenticationToken​(String accessToken,
                                      long expiresOn)
        Contructs a SqlAuthentication token.
        Parameters:
        accessToken - The access token string.
        expiresOn - The expiration date in seconds since the unix epoch.
      • SqlAuthenticationToken

        public SqlAuthenticationToken​(String accessToken,
                                      Date expiresOn)
        Contructs a SqlAuthentication token.
        Parameters:
        accessToken - The access token string.
        expiresOn - The expiration date.
    • Method Detail

      • getExpiresOn

        public Date getExpiresOn()
        Returns the expiration date of the token.
        Returns:
        The token expiration date.
      • getAccessToken

        public String getAccessToken()
        Returns the access token string.
        Returns:
        The access token.