# PKIXCertPathValidatorResult

public class **PKIXCertPathValidatorResult** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
implements [CertPathValidatorResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPathValidatorResult.html)

|---|---|---|
| Known Direct Subclasses [PKIXCertPathBuilderResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathBuilderResult.html) |---|---| | [PKIXCertPathBuilderResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathBuilderResult.html) | This class represents the successful result of the PKIX certification path builder algorithm. | |||

This class represents the successful result of the PKIX certification
path validation algorithm.

Instances of `PKIXCertPathValidatorResult` are returned by the
`https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPathValidator.html#validate(java.security.cert.CertPath,%20java.security.cert.CertPathParameters)` 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.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPathValidatorResult.html`

### Public Constructor Summary

|---|---|
|   | [PKIXCertPathValidatorResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathValidatorResult.html#PKIXCertPathValidatorResult(java.security.cert.TrustAnchor,%20java.security.cert.PolicyNode,%20java.security.PublicKey))([TrustAnchor](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/TrustAnchor.html) trustAnchor, [PolicyNode](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PolicyNode.html) policyTree, [PublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/PublicKey.html) subjectPublicKey) Creates an instance of `PKIXCertPathValidatorResult` containing the specified parameters. |

### Public Method Summary

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathValidatorResult.html#clone())() Returns a copy of this object. |
| [PolicyNode](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PolicyNode.html) | [getPolicyTree](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathValidatorResult.html#getPolicyTree())() Returns the root node of the valid policy tree resulting from the PKIX certification path validation algorithm. |
| [PublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/PublicKey.html) | [getPublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathValidatorResult.html#getPublicKey())() Returns the public key of the subject (target) of the certification path, including any inherited public key parameters if applicable. |
| [TrustAnchor](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/TrustAnchor.html) | [getTrustAnchor](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathValidatorResult.html#getTrustAnchor())() Returns the `TrustAnchor` describing the CA that served as a trust anchor for the certification path. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathValidatorResult.html#toString())() Return a printable representation of this `PKIXCertPathValidatorResult`. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [java.security.cert.CertPathValidatorResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPathValidatorResult.html)

|---|---|
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPathValidatorResult.html#clone())() Makes a copy of this `CertPathValidatorResult`. |

## Public Constructors

#### public
**PKIXCertPathValidatorResult**
([TrustAnchor](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/TrustAnchor.html) trustAnchor, [PolicyNode](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PolicyNode.html) policyTree, [PublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/PublicKey.html) subjectPublicKey)

Creates an instance of `PKIXCertPathValidatorResult`
containing the specified parameters.

##### Parameters

| trustAnchor | a `TrustAnchor` describing the CA that served as a trust anchor for the certification path |
| policyTree | the immutable valid policy tree, or `null` if there are no valid policies |
| subjectPublicKey | the public key of the subject |
|---|---|

##### Throws

| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if the `subjectPublicKey` or `trustAnchor` parameters are `null` |
|---|---|

## Public Methods

#### public [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**clone**
()

Returns a copy of this object.

##### Returns

- the copy

#### public [PolicyNode](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PolicyNode.html)
**getPolicyTree**
()

Returns the root node of the valid policy tree resulting from the
PKIX certification path validation algorithm. The
`PolicyNode` object that is returned and any objects that
it returns through public methods are immutable.

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 `PKIXParameters`. However, more
sophisticated applications, especially those that process policy
qualifiers, may need to traverse the valid policy tree using the
`https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PolicyNode.html#getParent()` and
`https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PolicyNode.html#getChildren()` methods.

##### Returns

- the root node of the valid policy tree, or `null` if there are no valid policies

#### public [PublicKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/PublicKey.html)
**getPublicKey**
()

Returns the public key of the subject (target) of the certification
path, including any inherited public key parameters if applicable.

##### Returns

- the public key of the subject (never `null`)

#### public [TrustAnchor](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/TrustAnchor.html)
**getTrustAnchor**
()

Returns the `TrustAnchor` describing the CA that served
as a trust anchor for the certification path.

##### Returns

- the `TrustAnchor` (never `null`)

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**toString**
()

Return a printable representation of this
`PKIXCertPathValidatorResult`.

##### Returns

- a `String` describing the contents of this `PKIXCertPathValidatorResult`