Class CAdESLevelDetector
java.lang.Object
org.bouncycastle.cades.CAdESLevelDetector
Inspect a
SignerInformation and report the highest CAdES baseline
level (per ETSI EN 319 122-1) whose mandatory attributes are
present. The detector does not validate the timestamp token or run cert
path validation — it inspects the attribute table only.
Recognises B-B, B-T, B-LT and B-LTA. The B-LTA check accepts either the
legacy RFC 5126 id-aa-ets-archiveTimestamp (v1) attribute or
the cleaned-up ETSI TS 101 733 v1.7.4
id-aa-ets-archiveTimestampV2; ETSI EN 319 122-1 v3 is not
yet recognised.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CAdESLevelattainedLevel(SignerInformation signer) Return the highest CAdES level whose mandatory attributes are present on the supplied signer, ornullif not even B-B is satisfied (the ESS signing-certificate(-v2) reference is missing).
-
Method Details
-
attainedLevel
Return the highest CAdES level whose mandatory attributes are present on the supplied signer, ornullif not even B-B is satisfied (the ESS signing-certificate(-v2) reference is missing).
-