Enum Class CAdESLevel

java.lang.Object
java.lang.Enum<CAdESLevel>
org.bouncycastle.cades.CAdESLevel
All Implemented Interfaces:
Serializable, Comparable<CAdESLevel>, Constable

public enum CAdESLevel extends Enum<CAdESLevel>
CAdES baseline profile levels per ETSI EN 319 122-1, with the older RFC 5126 names alongside for callers that still target the legacy specification. Each level is a strict superset of the one before it.
  • B_B (BES) — basic electronic signature: CMS SignedData with the mandatory ESS signing-certificate(-v2) reference and optional commitment-type, signature-policy, signer-location and content-hints signed attributes.
  • B_T (T) — B-B plus an id-aa-signatureTimeStampToken unsigned attribute carrying an RFC 3161 token over the SignerInfo signature value.
  • B_LT (C / X-L) — B-T plus complete certificate / revocation references and the corresponding certificate / revocation value sets needed for offline long-term validation.
  • B_LTA (A) — B-LT plus one or more id-aa-ets-archiveTimestampV3 unsigned attributes that protect the entire signature against weakening of the original signature algorithm.
  • Enum Constant Details

    • B_B

      public static final CAdESLevel B_B
      ETSI EN 319 122-1 B-B / RFC 5126 BES.
    • B_T

      public static final CAdESLevel B_T
      ETSI EN 319 122-1 B-T / RFC 5126 T.
    • B_LT

      public static final CAdESLevel B_LT
      ETSI EN 319 122-1 B-LT / RFC 5126 C-X-L.
    • B_LTA

      public static final CAdESLevel B_LTA
      ETSI EN 319 122-1 B-LTA / RFC 5126 A.
  • Field Details

    • BES

      public static final CAdESLevel BES
      Legacy RFC 5126 alias for B_B.
    • T

      public static final CAdESLevel T
      Legacy RFC 5126 alias for B_T.
  • Method Details

    • values

      public static CAdESLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CAdESLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null