Package com.auth0.jwt.impl
Class BasicHeader
java.lang.Object
com.auth0.jwt.impl.BasicHeader
- All Implemented Interfaces:
Header
The BasicHeader class implements the Header interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the Algorithm "alg" claim defined in the JWT's Header.Getter for the Content Type "cty" claim defined in the JWT's Header.getHeaderClaim
(String name) Get a Private Claim given it's name.getKeyId()
Get the value of the "kid" claim, or null if it's not available.getTree()
getType()
Getter for the Type "typ" claim defined in the JWT's Header.
-
Field Details
-
algorithm
-
type
-
contentType
-
keyId
-
tree
-
objectReader
private final com.fasterxml.jackson.databind.ObjectReader objectReader
-
-
Constructor Details
-
BasicHeader
-
-
Method Details
-
getTree
-
getAlgorithm
Description copied from interface:Header
Getter for the Algorithm "alg" claim defined in the JWT's Header. If the claim is missing it will return null.- Specified by:
getAlgorithm
in interfaceHeader
- Returns:
- the Algorithm defined or null.
-
getType
Description copied from interface:Header
Getter for the Type "typ" claim defined in the JWT's Header. If the claim is missing it will return null. -
getContentType
Description copied from interface:Header
Getter for the Content Type "cty" claim defined in the JWT's Header. If the claim is missing it will return null.- Specified by:
getContentType
in interfaceHeader
- Returns:
- the Content Type defined or null.
-
getKeyId
Description copied from interface:Header
Get the value of the "kid" claim, or null if it's not available. -
getHeaderClaim
Description copied from interface:Header
Get a Private Claim given it's name. If the Claim wasn't specified in the Header, a NullClaim will be returned.- Specified by:
getHeaderClaim
in interfaceHeader
- Parameters:
name
- the name of the Claim to retrieve.- Returns:
- a non-null Claim.
-