# PKIXCertPathBuilderResult

public class **PKIXCertPathBuilderResult** extends [PKIXCertPathValidatorResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathValidatorResult.html)  
implements [CertPathBuilderResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPathBuilderResult.html) This class represents the successful result of the PKIX certification
path builder algorithm. All certification paths that are built and
returned using this algorithm are also validated according to the PKIX
certification path validation algorithm.

Instances of `PKIXCertPathBuilderResult` are returned by
the `build` method of `CertPathBuilder`
objects implementing the PKIX algorithm.

All `PKIXCertPathBuilderResult` objects contain the
certification path constructed by the build algorithm, the
valid policy tree and subject public key resulting from the build
algorithm, and 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/CertPathBuilderResult.html`

### Public Constructor Summary

|---|---|
|   | [PKIXCertPathBuilderResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathBuilderResult.html#PKIXCertPathBuilderResult(java.security.cert.CertPath,%20java.security.cert.TrustAnchor,%20java.security.cert.PolicyNode,%20java.security.PublicKey))([CertPath](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPath.html) certPath, [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 `PKIXCertPathBuilderResult` containing the specified parameters. |

### Public Method Summary

|---|---|
| [CertPath](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPath.html) | [getCertPath](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathBuilderResult.html#getCertPath())() Returns the built and validated 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/PKIXCertPathBuilderResult.html#toString())() Return a printable representation of this `PKIXCertPathBuilderResult`. |

### Inherited Method Summary

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

|---|---|
| [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`. |

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`. |

From interface [java.security.cert.CertPathBuilderResult](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPathBuilderResult.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/CertPathBuilderResult.html#clone())() Makes a copy of this `CertPathBuilderResult`. |
| abstract [CertPath](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPath.html) | [getCertPath](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPathBuilderResult.html#getCertPath())() Returns the built certification path. |

## Public Constructors

#### public
**PKIXCertPathBuilderResult**
([CertPath](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CertPath.html) certPath, [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 `PKIXCertPathBuilderResult`
containing the specified parameters.

##### Parameters

| certPath | the validated `CertPath` |
| 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 `certPath`, `trustAnchor` or `subjectPublicKey` parameters are `null` |
|---|---|

## Public Methods

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

Returns the built and validated certification path. The
`CertPath` object does not include the trust anchor.
Instead, use the `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/PKIXCertPathValidatorResult.html#getTrustAnchor()` method to
obtain the `TrustAnchor` that served as the trust anchor
for the certification path.

##### Returns

- the built and validated `CertPath` (never `null`)

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

Return a printable representation of this
`PKIXCertPathBuilderResult`.

##### Returns

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