PKIXCertPathChecker that checks
constraints information on a PKIX certificate, namely basic constraints
and name constraints.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final Debug | |
| private int | |
| private int | |
| private NameConstraintsExtension | |
| private Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | ConstraintsChecker(int
the length of the certification path certPathLength)Creates a ConstraintsChecker. |
| Modifier and Type | Method and Description |
|---|---|
| public void | check(Certificate
the cert, Collection<String> Certificate to be checkeda unresCritExts)Collection of OID strings
representing the current set of unresolved critical extensionsImplements abstract java. Performs the basic constraints and name constraints checks on the certificate using its internal state. |
| private void | checkBasicConstraints(X509Certificate currCert)
Internal method to check that a given cert meets basic constraints. |
| 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. |
| pack-priv static int | Returns: the new maximum path length constraint (-1 means no more certificates can follow, Integer.MAX_VALUE means path length is unconstrained)the cert, int X509Certificatethe previous maximum path length maxPathLength)Merges the specified maxPathLength with the pathLenConstraint obtained from the certificate. |
| pack-priv static NameConstraintsExtension | mergeNameConstraints(X509Certificate currCert, NameConstraintsExtension prevNC)
Helper to fold sets of name constraints together |
| private void | verifyNameConstraints(X509Certificate currCert)
Internal method to check the name constraints against a cert |
| certPathLength | back to summary |
|---|---|
| private final int certPathLength | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| i | back to summary |
|---|---|
| private int i | |
| maxPathLength | back to summary |
|---|---|
| private int maxPathLength | |
| prevNC | back to summary |
|---|---|
| private NameConstraintsExtension prevNC | |
| supportedExts | back to summary |
|---|---|
| private Set<String> supportedExts | |
| ConstraintsChecker | back to summary |
|---|---|
| pack-priv ConstraintsChecker(int certPathLength) Creates a ConstraintsChecker.
| |
| check | back to summary |
|---|---|
| public void check(Certificate cert, Collection<String> unresCritExts) throws CertPathValidatorException Implements abstract java. Performs the basic constraints and name constraints checks on the certificate using its internal state.
| |
| checkBasicConstraints | back to summary |
|---|---|
| private void checkBasicConstraints(X509Certificate currCert) throws CertPathValidatorException Internal method to check that a given cert meets basic constraints. | |
| 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
| |
| mergeBasicConstraints | back to summary |
|---|---|
| pack-priv static int mergeBasicConstraints(X509Certificate cert, int maxPathLength) Merges the specified maxPathLength with the pathLenConstraint obtained from the certificate.
| |
| mergeNameConstraints | back to summary |
|---|---|
| pack-priv static NameConstraintsExtension mergeNameConstraints(X509Certificate currCert, NameConstraintsExtension prevNC) throws CertPathValidatorException Helper to fold sets of name constraints together | |
| verifyNameConstraints | back to summary |
|---|---|
| private void verifyNameConstraints(X509Certificate currCert) throws CertPathValidatorException Internal method to check the name constraints against a cert | |