Class Token

    • Method Detail

      • fromJson

        public static Token fromJson​(String json,
                                     com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Token object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Token object represented by the provided JSON
      • fromJson

        public static Token fromJson​(InputStream json,
                                     com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Token object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Token object represented by the provided JSON
      • getAccessToken

        public final String getAccessToken()
      • getRefreshToken

        public final String getRefreshToken()
      • getIdToken

        public final String getIdToken()
      • getRefreshTokenExpiresAt

        public final ZonedDateTime getRefreshTokenExpiresAt()
      • getAccessTokenExpiresAt

        public final ZonedDateTime getAccessTokenExpiresAt()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object