Instances of PKIXCertPathValidatorResult are returned by the
validate method of
CertPathValidator objects implementing the PKIX algorithm.
All PKIXCertPathValidatorResult objects contain the
valid policy tree and subject public key resulting from the
validation algorithm, as well as a TrustAnchor describing
the certification authority (CA) that served as a trust anchor for the
certification path.
Concurrent Access
Unless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.
CertPathValidatorResult
| Modifier and Type | Field and Description |
|---|---|
| private final PolicyNode | |
| private final PublicKey | |
| private final TrustAnchor |
| Access | Constructor and Description |
|---|---|
| public | PKIXCertPathValidatorResult(TrustAnchor
a trustAnchor, PolicyNode TrustAnchor describing the CA that
served as a trust anchor for the certification paththe immutable valid policy tree, or policyTree, PublicKey null
if there are no valid policiesthe public key of the subject subjectPublicKey)Creates an instance of |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the copyOverrides java. Implements java. Returns a copy of this object. |
| public PolicyNode | Returns: the root node of the valid policy tree, ornull
if there are no valid policiesReturns the root node of the valid policy tree resulting from the PKIX certification path validation algorithm. |
| public PublicKey | Returns: the public key of the subject (nevernull)Returns the public key of the subject (target) of the certification path, including any inherited public key parameters if applicable. |
| public TrustAnchor | Returns: theTrustAnchor (never null)Returns the |
| public String | Returns: aString describing the contents of this
PKIXCertPathValidatorResultOverrides java. Return a printable representation of this
|
| policyTree | back to summary |
|---|---|
| private final PolicyNode policyTree | |
| subjectPublicKey | back to summary |
|---|---|
| private final PublicKey subjectPublicKey | |
| trustAnchor | back to summary |
|---|---|
| private final TrustAnchor trustAnchor | |
| PKIXCertPathValidatorResult | back to summary |
|---|---|
| public PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey) Creates an instance of
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Implements java. Returns a copy of this object.
| |
| getPolicyTree | back to summary |
|---|---|
| public PolicyNode getPolicyTree() Returns the root node of the valid policy tree resulting from the
PKIX certification path validation algorithm. The
Most applications will not need to examine the valid policy tree.
They can achieve their policy processing goals by setting the
policy-related parameters in
| |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey() Returns the public key of the subject (target) of the certification path, including any inherited public key parameters if applicable.
| |
| getTrustAnchor | back to summary |
|---|---|
| public TrustAnchor getTrustAnchor() Returns the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a printable representation of this
| |