Package de.mtg.jzlint.lints.cabf_br
Class AlgorithmIdentifierImproperEncoding
java.lang.Object
de.mtg.jzlint.lints.cabf_br.AlgorithmIdentifierImproperEncoding
- All Implemented Interfaces:
JavaLint
This lint refers to CAB Baseline
Requirements (Version 1.7.4) chapter 7.1.3.1, which defines the
required encodings of AlgorithmObjectIdentifiers inside a SubjectPublicKeyInfo field.
Section 7.1.3.1.1: When encoded, the AlgorithmIdentifier for RSA keys MUST be byte-for-byte
identical with the following hex-encoded bytes: 300d06092a864886f70d0101010500
Section 7.1.3.1.2: When encoded, the AlgorithmIdentifier for ECDSA keys MUST be
byte-for-byte identical with the following hex-encoded bytes:
For P-256 keys: 301306072a8648ce3d020106082a8648ce3d030107
For P-384 keys: 301006072a8648ce3d020106052b81040022
For P-521 keys: 301006072a8648ce3d020106052b81040023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckApplies(X509Certificate certificate) execute(X509Certificate certificate)
-
Constructor Details
-
AlgorithmIdentifierImproperEncoding
public AlgorithmIdentifierImproperEncoding()
-
-
Method Details
-
execute
-
checkApplies
- Specified by:
checkAppliesin interfaceJavaLint
-