10Duke Java Core
|
Interface for providing functionality for handling JWTs.
Public Member Functions | |
String | signingKeyId () |
Returns the key id for the private key that is used to sign JWT's. | |
String | verificationKeyId () |
Returns the key id for the public key that is used to validate JWT's. | |
String | buildAndSign (Map< String, Object > claims) |
Builds and signs a JWT. | |
String | buildAndSign (String data) |
Builds and signs a JWT. | |
JwtToken | parse (String jwt) |
Parses a String to a JwtToken and validates the signature. | |
JwtToken | parseNoVerify (String jwt) |
Parses a String to a JwtToken and skips signature verification. | |
JwtService | withTypHeaderValidationDisabled () |
Disables JWT typ header claim validation. | |
![]() | |
String | readKeyIdHeader (String jwt) |
Reads a key id from the JWT header. | |
Additional Inherited Members | |
![]() | |
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. | |
String tenduke.sdk.core.service.JwtService.buildAndSign | ( | Map< String, Object > | claims | ) |
Builds and signs a JWT.
claims | A map with key value pairs to use as JWT body JSON data definition. |
Implemented in tenduke.sdk.core.service.impl.DefaultJwtService.
String tenduke.sdk.core.service.JwtService.buildAndSign | ( | String | data | ) |
Builds and signs a JWT.
data | Data to use as such for the JWT body. |
Implemented in tenduke.sdk.core.service.impl.DefaultJwtService.
JwtToken tenduke.sdk.core.service.JwtService.parse | ( | String | jwt | ) |
Parses a String to a JwtToken and validates the signature.
jwt | The String to parse and validate. |
Implemented in tenduke.sdk.core.service.impl.DefaultJwtService.
JwtToken tenduke.sdk.core.service.JwtService.parseNoVerify | ( | String | jwt | ) |
Parses a String to a JwtToken and skips signature verification.
jwt | The String to parse and validate. |
Implemented in tenduke.sdk.core.service.impl.DefaultJwtService.
String tenduke.sdk.core.service.JwtService.signingKeyId | ( | ) |
Returns the key id for the private key that is used to sign JWT's.
Implemented in tenduke.sdk.core.service.impl.DefaultJwtService.
String tenduke.sdk.core.service.JwtService.verificationKeyId | ( | ) |
Returns the key id for the public key that is used to validate JWT's.
Implemented in tenduke.sdk.core.service.impl.DefaultJwtService.
JwtService tenduke.sdk.core.service.JwtService.withTypHeaderValidationDisabled | ( | ) |
Disables JWT typ header claim validation.
Implemented in tenduke.sdk.core.service.impl.DefaultJwtService.