Interface Payload

All Known Implementing Classes:
EncryptedJwt, EncryptedThenSignedJwt, JwtClaimsSet, SignedEncryptedJwt, SignedJwt, SignedThenEncryptedJwt

public interface Payload
The interface represents the body of a JWT.

When the JWT is digitally signed or MACed, the bytes of the UTF-8 representation of the Payload are base64url encoded to create the Encoded JWS Payload. When the JWT is encrypted, the bytes of the UTF-8 representation of the Payload are used as the JWE Plaintext.

Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds the JWTs Payload into a String by following the steps specified in the relevant specification according to whether the JWT is being signed and/or encrypted.
    Create a copy of the current payload.