java.security.cert

Class PKIXCertPathValidatorResult

public class PKIXCertPathValidatorResult extends Object implements CertPathValidatorResult

Results returned by the {@link CertPathValidator#validate(java.security.cert.CertPath,java.security.cert.CertPathParameters)} method for PKIX {@link CertPathValidator}s.

See Also: CertPathValidator

Constructor Summary
PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
Creates a new PKIXCertPathValidatorResult.
Method Summary
Objectclone()
Returns a copy of this object.
PolicyNodegetPolicyTree()
Returns the root node of the policy tree.
PublicKeygetPublicKey()
Returns the subject public key.
TrustAnchorgetTrustAnchor()
Returns the trust anchor.
StringtoString()
Returns a printable string representation of this result.

Constructor Detail

PKIXCertPathValidatorResult

public PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
Creates a new PKIXCertPathValidatorResult.

Parameters: trustAnchor The trust anchor. policyTree The root node of the policy tree. subjectPublicKey The public key.

Throws: NullPointerException If either trustAnchor or subjectPublicKey is null.

Method Detail

clone

public Object clone()
Returns a copy of this object.

Returns: The copy.

getPolicyTree

public PolicyNode getPolicyTree()
Returns the root node of the policy tree.

Returns: The root node of the policy tree.

getPublicKey

public PublicKey getPublicKey()
Returns the subject public key.

Returns: The subject public key.

getTrustAnchor

public TrustAnchor getTrustAnchor()
Returns the trust anchor.

Returns: The trust anchor.

toString

public String toString()
Returns a printable string representation of this result.

Returns: A printable string representation of this result.