|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.cert.PKIXCertPathValidatorResult | +--java.security.cert.PKIXCertPathBuilderResult
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 the certificate containing the public key of the
"most-trusted CA" that was used as a trust anchor by the build algorithm.
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.
CertPathBuilderResult
Constructor Summary | |
PKIXCertPathBuilderResult(CertPath certPath,
Certificate trustedCert,
PolicyNode policyTree,
PublicKey subjectPublicKey)
Creates an instance of PKIXCertPathBuilderResult
containing the specified parameters. |
Method Summary | |
Object |
clone()
Returns a copy of this object. |
boolean |
equals(Object other)
Compares this object for equality with the specified object. |
CertPath |
getCertPath()
Returns the built and validated certification path. |
int |
hashCode()
Returns a hash code value for this object. |
String |
toString()
Return a printable representation of this PKIXCertPathBuilderResult . |
Methods inherited from class java.security.cert.PKIXCertPathValidatorResult |
getPolicyTree, getPublicKey, getTrustedCert |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PKIXCertPathBuilderResult(CertPath certPath, Certificate trustedCert, PolicyNode policyTree, PublicKey subjectPublicKey)
PKIXCertPathBuilderResult
containing the specified parameters.certPath
- the validated CertPath
trustedCert
- the Certificate
containing the
public key of the most-trusted CA. Specify null
when
the public key is not supplied in the form of a certificate.policyTree
- the valid policy tree, or null
if there are no valid policiessubjectPublicKey
- the public key of the subjectNullPointerException
- if certPath
or
subjectPublicKey
are null
Method Detail |
public CertPath getCertPath()
CertPath
object does not include the certificate
containing the most-trusted CA's public key. Instead, use the
getTrustedCert()
method to obtain
the most-trusted CA certificate.getCertPath
in interface CertPathBuilderResult
CertPath
(never
null
)public int hashCode()
hashCode
in class PKIXCertPathValidatorResult
public boolean equals(Object other)
PKIXCertPathBuilderResult
,
return false
. Otherwise, return true
if the
parameters of the objects are equal.equals
in class PKIXCertPathValidatorResult
other
- the object to test for equalitytrue
if the objects are equal,
false
otherwisepublic Object clone()
clone
in interface CertPathBuilderResult
clone
in class PKIXCertPathValidatorResult
public String toString()
PKIXCertPathBuilderResult
.toString
in class PKIXCertPathValidatorResult
String
describing the contents of this
PKIXCertPathBuilderResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |