java.lang.Object
org.apache.kafka.common.security.oauthbearer.secured.SerializedJwt

public class SerializedJwt extends Object
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 Details

    • SerializedJwt

      public SerializedJwt(String token)
  • Method Details

    • getToken

      public String getToken()
      Returns the entire base 64-encoded JWT.
      Returns:
      JWT
    • getHeader

      public String getHeader()
      Returns the first section--the JWT header--in its base 64-encoded form.
      Returns:
      Header section of the JWT
    • getPayload

      public String getPayload()
      Returns the second section--the JWT payload--in its base 64-encoded form.
      Returns:
      Payload section of the JWT
    • getSignature

      public String getSignature()
      Returns the third section--the JWT signature--in its base 64-encoded form.
      Returns:
      Signature section of the JWT