Class JsonWebToken.Header

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String contentType
      Content type header parameter used to declare structural information about the JWT or null for none.
      private java.lang.String type
      Type header parameter used to declare the type of this object or null for none.
    • Constructor Summary

      Constructors 
      Constructor Description
      Header()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JsonWebToken.Header clone()
      Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.
      java.lang.String getContentType()
      Returns the content type header parameter used to declare structural information about the JWT or null for none.
      java.lang.String getType()
      Returns the type header parameter used to declare the type of this object or null for none.
      JsonWebToken.Header set​(java.lang.String fieldName, java.lang.Object value)
      Sets the given field value (may be null) for the given field name.
      JsonWebToken.Header setContentType​(java.lang.String contentType)
      Sets the content type header parameter used to declare structural information about the JWT or null for none.
      JsonWebToken.Header setType​(java.lang.String type)
      Sets the type header parameter used to declare the type of this object or null for none.
      • Methods inherited from class java.util.AbstractMap

        clear, containsKey, containsValue, isEmpty, keySet, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Field Detail

      • type

        private java.lang.String type
        Type header parameter used to declare the type of this object or null for none.
      • contentType

        private java.lang.String contentType
        Content type header parameter used to declare structural information about the JWT or null for none.
    • Constructor Detail

      • Header

        public Header()
    • Method Detail

      • getType

        public final java.lang.String getType()
        Returns the type header parameter used to declare the type of this object or null for none.
      • setType

        public JsonWebToken.Header setType​(java.lang.String type)
        Sets the type header parameter used to declare the type of this object or null for none.

        Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

      • getContentType

        public final java.lang.String getContentType()
        Returns the content type header parameter used to declare structural information about the JWT or null for none.
      • setContentType

        public JsonWebToken.Header setContentType​(java.lang.String contentType)
        Sets the content type header parameter used to declare structural information about the JWT or null for none.

        Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

      • set

        public JsonWebToken.Header set​(java.lang.String fieldName,
                                       java.lang.Object value)
        Description copied from class: GenericData
        Sets the given field value (may be null) for the given field name. Any existing value for the field will be overwritten. It may be more slightly more efficient than GenericData.put(String, Object) because it avoids accessing the field's original value.

        Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.

        Overrides:
        set in class GenericJson
      • clone

        public JsonWebToken.Header clone()
        Description copied from class: GenericData
        Makes a "deep" clone of the generic data, in which the clone is completely independent of the original.
        Overrides:
        clone in class GenericJson