org.mozilla.jss.ssl

Class SSLCertificateApprovalCallback.ValidityItem

Enclosing Class:
SSLCertificateApprovalCallback

public class SSLCertificateApprovalCallback.ValidityItem
extends java.lang.Object

Constructor Summary

ValidityItem(int reason, PK11Cert cert, int depth)

Method Summary

PK11Cert
getCert()
int
getDepth()
int
getReason()

Constructor Details

ValidityItem

public ValidityItem(int reason,
                    PK11Cert cert,
                    int depth)

Method Details

getCert

public PK11Cert getCert()
Returns:
the certificate associated with this error. You can use the X509Certificate functions to get details such as issuer/subject name, serial number, etc.

getDepth

public int getDepth()
Returns:
the index into the cert chain of the certificate which caused this error. In a chain 5-certs long, 0 is the server-cert. 1,2,3 would be the intermediates, and 4 would be the root

getReason

public int getReason()
Returns:
the NSS error code which caused the error - see the list of error codes above for those which could be returned