public class Header extends Object
Modifier and Type | Field and Description |
---|---|
Algorithm |
algorithm |
Map<String,String> |
properties |
String |
type |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
anyGetter()
Special getter used to flatten additional header properties into top level values.
|
boolean |
equals(Object o) |
String |
get(String name) |
int |
hashCode() |
Header |
set(String name,
String value)
Add a property to the JWT header.
|
String |
toString() |
public Header()
public Header(Algorithm algorithm)
public Map<String,String> anyGetter()
public Header set(String name, String value)
name
- The name of the header property.value
- The value of the header property.Copyright © 2021. All rights reserved.