Class WindowsCertificateException

All Implemented Interfaces:
Serializable

public final class WindowsCertificateException extends IllegalStateException
A CryptoAPI call failed. Replaces JNA's Win32Exception: carries the Win32 error code / HRESULT (from GetLastError or from CERT_CHAIN_POLICY_STATUS.dwError) and the system message text for it.
See Also:
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Returns:
      Win32 error code or HRESULT, e.g. Crypt32Ext.CERT_E_UNTRUSTEDROOT