Class MaxDecompressedPlainTextLength

java.lang.Object
com.nimbusds.jose.crypto.opts.MaxDecompressedPlainTextLength
All Implemented Interfaces:
JWEDecrypterOption, Option

@Immutable public final class MaxDecompressedPlainTextLength extends Object implements JWEDecrypterOption
JSON Web Encryption (JWE) decrypter option to configure the maximum allowed length of decompressed plain text. The default is 1 million characters.
Version:
2026-09-16.
Author:
Vladimir Dzhuvinov
  • Constructor Details

    • MaxDecompressedPlainTextLength

      public MaxDecompressedPlainTextLength(int maxLength)
      Creates a new maximum decompressed plain text length option.
      Parameters:
      maxLength - The maximum allowed length, in characters. Must be positive
  • Method Details

    • getMaxLength

      public int getMaxLength()
      Returns the maximum allowed decompressed plain text length.
      Returns:
      The maximum length, in characters.
    • toString

      public String toString()
      Overrides:
      toString in class Object