Methods Summary |
---|
public java.lang.Object | clone()Clones this {@code PKIXCertPathValidatorResult} instance.
try {
return super.clone();
} catch (CloneNotSupportedException e) {
// Actually, the exception will not be thrown out.
throw new Error(e);
}
|
public java.security.cert.PolicyNode | getPolicyTree()Returns the valid policy tree from the validation.
return policyTree;
|
public java.security.PublicKey | getPublicKey()Returns the subject public key from the validation.
return subjectPublicKey;
|
public java.security.cert.TrustAnchor | getTrustAnchor()Returns the trust anchor describing the certification authority (CA) that
served as trust anchor for this certification path.
return trustAnchor;
|
public java.lang.String | toString()Returns a string representation for this {@code
PKIXCertPathValidatorResult} instance.
StringBuffer sb = new StringBuffer(super.toString());
sb.append(": [\n Trust Anchor: "); //$NON-NLS-1$
sb.append(trustAnchor.toString());
sb.append("\n Policy Tree: "); //$NON-NLS-1$
sb.append(policyTree == null ? "no valid policy tree\n" //$NON-NLS-1$
: policyTree.toString());
sb.append("\n Subject Public Key: "); //$NON-NLS-1$
sb.append(subjectPublicKey.toString());
sb.append("\n]"); //$NON-NLS-1$
return sb.toString();
|