Default implementation of the JwtMetadataParser
for reading and validating JWT headers and their data.
|
String | HEADER_SIGNATURE_ALGORITHM = "alg" |
| Header claim name for signature algorithm.
|
|
String | HEADER_KEY_ID = "kid" |
| Header claim name for key id.
|
|
String | HEADER_TYPE = "typ" |
| Header claim name for token type.
|
|
String | TOKEN_TYPE_JWT = "JWT" |
| Header claim type that denotes a JWT.
|
|
String | SIGNATURE_ALGORITHM_RSA_SHA = "RS256" |
| Header value for alg claim, denotes RSA-SHA algorithm used for JWT signatures.
|
|
◆ assertJwtHeadersAreValid()
void tenduke.sdk.core.service.impl.DefaultJwtMetadataParser.assertJwtHeadersAreValid |
( |
final String | jwt | ) |
|
|
protected |
Checks that headers are sane.
NOTE: algorithm check is made by Jose lib.
- Parameters
-
jwt | The JWT to validate the header in. |
◆ readKeyIdHeader()
String tenduke.sdk.core.service.impl.DefaultJwtMetadataParser.readKeyIdHeader |
( |
final String | jwt | ) |
|
◆ withTypHeaderValidationDisabled()
The documentation for this class was generated from the following file:
- service-impl/src/main/java/tenduke/sdk/core/service/impl/DefaultJwtMetadataParser.java