java.security.cert
Class PKIXCertPathValidatorResult

java.lang.Object
  extended by java.security.cert.PKIXCertPathValidatorResult
All Implemented Interfaces:
Cloneable, CertPathValidatorResult
Direct Known Subclasses:
PKIXCertPathBuilderResult

public class PKIXCertPathValidatorResult
extends Object
implements CertPathValidatorResult

Results returned by the CertPathValidator.validate(java.security.cert.CertPath,java.security.cert.CertPathParameters) method for PKIX CertPathValidators.

See Also:
CertPathValidator

Constructor Summary
PKIXCertPathValidatorResult(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
          Creates a new PKIXCertPathValidatorResult.
 
Method Summary
 Object clone()
          Returns a copy of this object.
 PolicyNode getPolicyTree()
          Returns the root node of the policy tree.
 PublicKey getPublicKey()
          Returns the subject public key.
 TrustAnchor getTrustAnchor()
          Returns the trust anchor.
 String toString()
          Returns a printable string representation of this result.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

getTrustAnchor

public TrustAnchor getTrustAnchor()
Returns the trust anchor.

Returns:
The trust anchor.

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.

clone

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

Specified by:
clone in interface CertPathValidatorResult
Overrides:
clone in class Object
Returns:
The copy.
See Also:
Cloneable

toString

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

Overrides:
toString in class Object
Returns:
A printable string representation of this result.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)