Class SSLCertificateApprovalCallback.ValidityStatus

java.lang.Object
org.mozilla.jss.ssl.SSLCertificateApprovalCallback.ValidityStatus
Enclosing interface:
SSLCertificateApprovalCallback

public static class SSLCertificateApprovalCallback.ValidityStatus extends 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
  • Field Details

  • Constructor Details

    • ValidityStatus

      public ValidityStatus()
  • Method Details

    • 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.
    • getReasons

      returns an enumeration. The elements in the enumeration are all of type 'ValidityItem'