Class PKIXCertPathValidatorResult

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

public class PKIXCertPathValidatorResult
extends Object
implements CertPathValidatorResult
The implementation of the result of the PKIX certification path validation.
See Also:
CertPathValidator, CertPathValidator.validate(CertPath, CertPathParameters)
  • Constructor Details

    • PKIXCertPathValidatorResult

      public PKIXCertPathValidatorResult​(TrustAnchor trustAnchor, PolicyNode policyTree, PublicKey subjectPublicKey)
      Creates a new PKIXCertPathValidatorResult with the specified trust anchor, the valid policy tree and the subject public key.
      Parameters:
      trustAnchor - the trust anchor describing the certification authority (CA) that served as trust anchor for the certification path.
      policyTree - the valid policy tree from the validation.
      subjectPublicKey - the subject public key from the validation.
  • Method Details

    • getPolicyTree

      public PolicyNode getPolicyTree()
      Returns the valid policy tree from the validation.
      Returns:
      the valid policy tree from the validation.
    • getPublicKey

      public PublicKey getPublicKey()
      Returns the subject public key from the validation.
      Returns:
      the subject public key from the validation.
    • getTrustAnchor

      public TrustAnchor getTrustAnchor()
      Returns the trust anchor describing the certification authority (CA) that served as trust anchor for this certification path.
      Returns:
      the trust anchor.
    • clone

      public Object clone()
      Clones this PKIXCertPathValidatorResult instance.
      Specified by:
      clone in interface CertPathValidatorResult
      Overrides:
      clone in class Object
      Returns:
      the cloned instance.
    • toString

      public String toString()
      Returns a string representation for this PKIXCertPathValidatorResult instance.
      Overrides:
      toString in class Object
      Returns:
      a string representation for this PKIXCertPathValidatorResult instance.