Class Key

    • Method Detail

      • fromJson

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

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

        public final String getSid()
      • getUrl

        public final URI getUrl()
      • getFriendlyName

        public final String getFriendlyName()
      • getFleetSid

        public final String getFleetSid()
      • getAccountSid

        public final String getAccountSid()
      • getDeviceSid

        public final String getDeviceSid()
      • getSecret

        public final String getSecret()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object