Class MaxCompressedCipherTextLength

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

@Immutable public final class MaxCompressedCipherTextLength extends Object implements JWEDecrypterOption
JSON Web Encryption (JWE) decrypter option to configure the maximum allowed length of compressed cipher text. The default is 100 thousand characters.
Version:
2025-01-04
Author:
Vladimir Dzhuvinov
  • Constructor Details

    • MaxCompressedCipherTextLength

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

    • getMaxLength

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

      public String toString()
      Overrides:
      toString in class Object