Class SerializedJwt
java.lang.Object
org.apache.kafka.common.security.oauthbearer.secured.SerializedJwt
SerializedJwt provides a modicum of structure and validation around a JWT's serialized form by
splitting and making the three sections (header, payload, and signature) available to the user.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the first section--the JWT header--in its base 64-encoded form.Returns the second section--the JWT payload--in its base 64-encoded form.Returns the third section--the JWT signature--in its base 64-encoded form.getToken()
Returns the entire base 64-encoded JWT.
-
Constructor Details
-
SerializedJwt
-
-
Method Details
-
getToken
Returns the entire base 64-encoded JWT.- Returns:
- JWT
-
getHeader
Returns the first section--the JWT header--in its base 64-encoded form.- Returns:
- Header section of the JWT
-
getPayload
Returns the second section--the JWT payload--in its base 64-encoded form.- Returns:
- Payload section of the JWT
-
getSignature
Returns the third section--the JWT signature--in its base 64-encoded form.- Returns:
- Signature section of the JWT
-