The Header class represents the 1st part of the JWT, where the Header value is held.
| 4 | * The Header class represents the 1st part of the JWT, where the Header value is held. |
| 5 | */ |
| 6 | public interface Header { |
| 7 | |
| 8 | /** |
| 9 | * Getter for the Algorithm "alg" claim defined in the JWT's Header. If the claim is missing it will return null. |
| 10 | * |
| 11 | * @return the Algorithm defined or null. |
| 12 | */ |
| 13 | String getAlgorithm(); |
| 14 | |
| 15 | /** |
| 16 | * Getter for the Type "typ" claim defined in the JWT's Header. If the claim is missing it will return null. |
| 17 | * |
| 18 | * @return the Type defined or null. |
| 19 | */ |
| 20 | String getType(); |
| 21 | |
| 22 | /** |
| 23 | * Getter for the Content Type "cty" claim defined in the JWT's Header. If the claim is missing it will return null. |
| 24 | * |
| 25 | * @return the Content Type defined or null. |
| 26 | */ |
| 27 | String getContentType(); |
| 28 | |
| 29 | /** |
| 30 | * Get the value of the "kid" claim, or null if it's not available. |
| 31 | * |
| 32 | * @return the Key ID value or null. |
| 33 | */ |
| 34 | String getKeyId(); |
| 35 | |
| 36 | /** |
| 37 | * Get a Private Claim given it's name. If the Claim wasn't specified in the Header, a 'null claim' will be |
| 38 | * returned. All the methods of that claim will return {@code null}. |
| 39 | * |
| 40 | * @param name the name of the Claim to retrieve. |
| 41 | * @return a non-null Claim. |
| 42 | */ |
| 43 | Claim getHeaderClaim(String name); |
| 44 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…