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:HeaderGetter for the Algorithm "alg" claim defined in the JWT's Header. If the claim is missing it will return null.- Specified by:
getAlgorithmin interfaceHeader- Returns:
- the Algorithm defined or null.
-
getType
Description copied from interface:HeaderGetter 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:HeaderGetter for the Content Type "cty" claim defined in the JWT's Header. If the claim is missing it will return null.- Specified by:
getContentTypein interfaceHeader- Returns:
- the Content Type defined or null.
-
getKeyId
Description copied from interface:HeaderGet the value of the "kid" claim, or null if it's not available. -
getHeaderClaim
Description copied from interface:HeaderGet a Private Claim given it's name. If the Claim wasn't specified in the Header, a NullClaim will be returned.- Specified by:
getHeaderClaimin interfaceHeader- Parameters:
name- the name of the Claim to retrieve.- Returns:
- a non-null Claim.
-