header
Sets a raw extra header parameter using a pre-built JsonElement.
Return
this builder for chaining
Parameters
the header parameter name
the header value as a JsonElement
Sets a typed extra header parameter using an explicit SerializationStrategy.
Return
this builder for chaining
Parameters
the header parameter name
the serialization strategy for T
the header value, or null to remove the parameter
Sets a typed extra header parameter, inferring the serializer from the reified type T.
Return
this builder for chaining
Parameters
the header parameter name
the header value
Configures JOSE header fields using a DSL block applied to JwtHeader.Builder.
Return
this builder for chaining
Parameters
the configuration block
Merges all fields from value into the JOSE header, encoded using serializer.
The object is serialized to a JSON object and each key-value pair is added to the header, overwriting any existing parameter with the same name.
Return
this builder for chaining
Parameters
the serialization strategy for T
the object whose fields should be merged into the header
Merges all fields from value into the JOSE header, inferring the serializer from the reified type T.
The object is serialized to a JSON object and each key-value pair is added to the header, overwriting any existing parameter with the same name.
Return
this builder for chaining
Parameters
the object whose fields should be merged into the header