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
      • getAccountSid

        public final String getAccountSid()
      • getPassword

        public final String getPassword()
      • getTtl

        public final String getTtl()
      • getUsername

        public final String getUsername()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object