PKIXCertPathChecker
that checks that the
keyCertSign bit is set in the keyUsage extension in an intermediate CA
certificate. It also checks whether the final certificate in a
certification path meets the specified target constraints specified as
a CertSelector in the PKIXParameters passed to the CertPathValidator.
Modifier and Type | Field and Description |
---|---|
private final int | |
private static final Debug | |
private static final int | |
private int | |
private Set | |
private final CertSelector |
Access | Constructor and Description |
---|---|
pack-priv | KeyChecker(int
allowable cert path length certPathLen, CertSelector a CertSelector object specifying the constraints
on the target certificate targetCertSel)Creates a KeyChecker. |
Modifier and Type | Method and Description |
---|---|
public void | check(Certificate
the Certificate cert, Collection<String> the unresolved critical extensions unresCritExts)Implements abstract java. Checks that keyUsage and target constraints are satisfied by the specified certificate. |
public Set | getSupportedExtensions()
Implements abstract java. Returns an immutable |
public void | init(boolean
the order that certificates are presented to
the forward)check method. If true , certificates
are presented from target to most-trusted CA (forward); if
false , from most-trusted CA to target (reverse).Implements abstract java. Implements java. Initializes the internal state of the checker from parameters specified in the constructor |
public boolean | isForwardCheckingSupported()
Implements abstract java. Implements java. Indicates if forward checking is supported. |
pack-priv static void |
certPathLen | back to summary |
---|---|
private final int certPathLen |
debug | back to summary |
---|---|
private static final Debug debug |
KEY_CERT_SIGN | back to summary |
---|---|
private static final int KEY_CERT_SIGN |
remainingCerts | back to summary |
---|---|
private int remainingCerts |
supportedExts | back to summary |
---|---|
private Set<String> supportedExts |
targetConstraints | back to summary |
---|---|
private final CertSelector targetConstraints |
KeyChecker | back to summary |
---|---|
pack-priv KeyChecker(int certPathLen, CertSelector targetCertSel) Creates a KeyChecker.
|
check | back to summary |
---|---|
public void check(Certificate cert, Collection<String> unresCritExts) throws CertPathValidatorException Implements abstract java. Checks that keyUsage and target constraints are satisfied by the specified certificate.
|
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. Initializes the internal state of the checker from parameters specified in the constructor
|
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
|
verifyCAKeyUsage | back to summary |
---|---|
pack-priv static void verifyCAKeyUsage(X509Certificate cert) throws CertPathValidatorException Verifies the key usage extension in a CA cert. The key usage extension, if present, must assert the keyCertSign bit. The extended key usage extension is not checked (see CR 4776794 for more information). |