MCPcopy Index your code
hub / github.com/auth0/java-jwt / Header

Interface Header

lib/src/main/java/com/auth0/jwt/interfaces/Header.java:6–44  ·  view source on GitHub ↗

The Header class represents the 1st part of the JWT, where the Header value is held.

Source from the content-addressed store, hash-verified

4 * The Header class represents the 1st part of the JWT, where the Header value is held.
5 */
6public 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}

Implementers 2

BasicHeaderlib/src/main/java/com/auth0/jwt/impl/B
JWTDecoderlib/src/main/java/com/auth0/jwt/JWTDec

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…