Class SSLCertificateApprovalCallback.ValidityStatus

  • Enclosing interface:
    SSLCertificateApprovalCallback

    public static class SSLCertificateApprovalCallback.ValidityStatus
    extends java.lang.Object
    This class holds details about the errors for each cert in the chain that the server presented To use this class, getReasons(), then iterate over the enumeration
    • Constructor Detail

      • ValidityStatus

        public ValidityStatus()
    • Method Detail

      • addReason

        public void addReason​(int newReason,
                              PK11Cert cert,
                              int depth)
        add a new failure reason to this enumeration. This is called from the native code callback when it does a verify on the cert chain
        Parameters:
        newReason - sslerr.h error code - see constants defined above;
        cert - a reference to the cert - so you can see the subject name, etc
        depth - the index of this cert in the chain. 0 is the server cert.