|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.security.cert.PKIXCertPathValidatorResult
This class represents the successful result of the PKIX certification path validation algorithm.
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 the certificate containing the
public key of the "most-trusted CA" that was used as a trust anchor by
the validation 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.
CertPathValidatorResult| Constructor Summary | |
PKIXCertPathValidatorResult(Certificate trustedCert,
PolicyNode policyTree,
PublicKey subjectPublicKey)
Creates an instance of PKIXCertPathValidatorResult
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. |
PolicyNode |
getPolicyTree()
Returns the valid policy tree resulting from the PKIX certification path validation algorithm. |
PublicKey |
getPublicKey()
Returns the public key of the subject (target) of the certification path, including any inherited public key parameters if applicable. |
Certificate |
getTrustedCert()
Returns the certificate containing the public key of the most-trusted CA. |
int |
hashCode()
Returns a hash code value for this object. |
String |
toString()
Return a printable representation of this PKIXCertPathValidatorResult. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PKIXCertPathValidatorResult(Certificate trustedCert,
PolicyNode policyTree,
PublicKey subjectPublicKey)
PKIXCertPathValidatorResult
containing the specified parameters.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 subjectPublicKey
is null| Method Detail |
public Certificate getTrustedCert()
null when the trusted
public key is not supplied in the form of a certificate.Certificate containing the public key
of the most-trusted CA (or null)public PolicyNode getPolicyTree()
PolicyNode object that
is returned and any field that it returns through public methods
is immutable.null
if there are no valid policiespublic PublicKey getPublicKey()
null)public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
PKIXCertPathValidatorResult,
return false. Otherwise, return true if the
parameters of the objects are equal.equals in class Objectother - the object to test for equalitytrue if the objects are equal,
false otherwisepublic Object clone()
clone in interface CertPathValidatorResultclone in class Objectpublic String toString()
PKIXCertPathValidatorResult.toString in class ObjectString describing the contents of this
PKIXCertPathValidatorResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||