PKIXCertPathChecker implementation to check whether a
specified certificate contains the required algorithm constraints.
Certificate fields such as the subject public key, the signature algorithm, key usage, extended key usage, etc. need to conform to the specified algorithm constraints.
PKIXCertPathChecker, PKIXParameters
| Modifier and Type | Field and Description |
|---|---|
| private TrustAnchor | |
| private final AlgorithmConstraints | |
| private final Date | |
| private static final Debug | |
| private static final Set | |
| private PublicKey | |
| private static final Set | |
| private PublicKey | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | AlgorithmChecker(TrustAnchor
the trust anchor selected to validate the target
certificate anchor, String the Validator variant of the operation. A null value
passed will set it to Validator.GENERIC. variant)Create a new |
| public | AlgorithmChecker(AlgorithmConstraints
the algorithm constraints (or null) constraints, String the Validator variant of the operation. A null value
passed will set it to Validator.GENERIC. variant)Create a new |
| public | AlgorithmChecker(TrustAnchor
the trust anchor selected to validate the target
certificate anchor, AlgorithmConstraints the algorithm constraints (or null) constraints, Date the date specified by the PKIXParameters date, or the
timestamp if JAR files are being validated and the
JAR is timestamped. May be null if no timestamp or
PKIXParameter date is set. date, String the Validator variant of the operation. A null value
passed will set it to Validator.GENERIC. variant)Create a new |
| public | AlgorithmChecker(TrustAnchor
the trust anchor selected to validate the target
certificate anchor, Date the date specified by the PKIXParameters date, or the
timestamp if JAR files are being validated and the
JAR is timestamped. May be null if no timestamp or
PKIXParameter date is set. date, String the Validator variant of the operation. A null value
passed will set it to Validator.GENERIC. variant)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | check(Certificate cert, Collection<String> unresolvedCritExts)
Implements abstract java. Performs the check(s) on the specified certificate using its internal state and removes any critical extensions that it processes from the specified collection of OID strings that represent the unresolved critical extensions. |
| pack-priv static void | check(PublicKey
the public key to verify the CRL signature key, AlgorithmId signature algorithm Algorithm ID algorithmId, String the Validator variant of the operation. A null
value passed will set it to Validator.GENERIC. variant, TrustAnchor the trust anchor selected to validate the public key anchor)Check the signature algorithm with the specified public key. |
| public Set | getSupportedExtensions()
Implements abstract java. Returns an immutable |
| public void | init(boolean forward)
Implements abstract java. Implements java. Initializes the internal state of this |
| public boolean | isForwardCheckingSupported()
Implements abstract java. Implements java. Indicates if forward checking is supported. |
| private void | setTrustAnchorAndKeys(TrustAnchor anchor)
Sets the anchor, trustedPubKey and prevPubKey fields based on the specified trust anchor. |
| pack-priv void | trySetTrustAnchor(TrustAnchor
the trust anchor selected to validate the target
certificate anchor)Try to set the trust anchor of the checker. |
| anchor | back to summary |
|---|---|
| private TrustAnchor anchor | |
| constraints | back to summary |
|---|---|
| private final AlgorithmConstraints constraints | |
| date | back to summary |
|---|---|
| private final Date date | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| KU_PRIMITIVE_SET | back to summary |
|---|---|
| private static final Set<CryptoPrimitive> KU_PRIMITIVE_SET | |
| prevPubKey | back to summary |
|---|---|
| private PublicKey prevPubKey | |
| SIGNATURE_PRIMITIVE_SET | back to summary |
|---|---|
| private static final Set<CryptoPrimitive> SIGNATURE_PRIMITIVE_SET | |
| trustedPubKey | back to summary |
|---|---|
| private PublicKey trustedPubKey | |
| variant | back to summary |
|---|---|
| private final String variant | |
| AlgorithmChecker | back to summary |
|---|---|
| public AlgorithmChecker(TrustAnchor anchor, String variant) Create a new
| |
| AlgorithmChecker | back to summary |
|---|---|
| public AlgorithmChecker(AlgorithmConstraints constraints, String variant) Create a new
| |
| AlgorithmChecker | back to summary |
|---|---|
| public AlgorithmChecker(TrustAnchor anchor, AlgorithmConstraints constraints, Date date, String variant) Create a new
| |
| AlgorithmChecker | back to summary |
|---|---|
| public AlgorithmChecker(TrustAnchor anchor, Date date, String variant) Create a new
| |
| check | back to summary |
|---|---|
| public void check(Certificate cert, Collection<String> unresolvedCritExts) throws CertPathValidatorException Implements abstract java. Doc from java. Performs the check(s) on the specified certificate using its internal
state and removes any critical extensions that it processes from the
specified collection of OID strings that represent the unresolved
critical extensions. The certificates are presented in the order
specified by the
| |
| check | back to summary |
|---|---|
| pack-priv static void check(PublicKey key, AlgorithmId algorithmId, String variant, TrustAnchor anchor) throws CertPathValidatorException Check the signature algorithm with the specified public key.
| |
| getSupportedExtensions | back to summary |
|---|---|
| public Set Implements abstract java. Doc from java. Returns an immutable
Each element of the set is a
All X.509 certificate extensions that a
| |
| init | back to summary |
|---|---|
| public void init(boolean forward) throws CertPathValidatorException Implements abstract java. Implements java. Doc from java. Initializes the internal state of this
The
| |
| isForwardCheckingSupported | back to summary |
|---|---|
| public boolean isForwardCheckingSupported() Implements abstract java. Implements java. Doc from java. Indicates if forward checking is supported. Forward checking refers
to the ability of the
| |
| setTrustAnchorAndKeys | back to summary |
|---|---|
| private void setTrustAnchorAndKeys(TrustAnchor anchor) Sets the anchor, trustedPubKey and prevPubKey fields based on the specified trust anchor. | |
| trySetTrustAnchor | back to summary |
|---|---|
| pack-priv void trySetTrustAnchor(TrustAnchor anchor) Try to set the trust anchor of the checker. If there is no trust anchor specified and the checker has not started, set the trust anchor.
| |