Package com.wolfssl

Class WolfSSLCertManager


  • public class WolfSSLCertManager
    extends java.lang.Object
    CertManager class which wraps the native WolfSSL embedded SSL library. This class contains library init and cleanup methods, general callback methods, as well as error codes and general wolfSSL codes.
    Version:
    1.1, February 2019
    Author:
    wolfSSL
    • Method Detail

      • CertManagerLoadCA

        public int CertManagerLoadCA​(java.lang.String f,
                                     java.lang.String d)
      • CertManagerLoadCABuffer

        public int CertManagerLoadCABuffer​(byte[] in,
                                           long sz,
                                           int format)
      • CertManagerLoadCAKeyStore

        public int CertManagerLoadCAKeyStore​(java.security.KeyStore ks)
                                      throws WolfSSLException
        Loads KeyStore certificates into WolfSSLCertManager object.
        Parameters:
        ks - - input KeyStore from which to load CA certs
        Returns:
        WolfSSL.SSL_SUCCESS if at least one cert was loaded successfully, otherwise WolfSSL.SSL_FAILURE.
        Throws:
        WolfSSLException - on exception working with KeyStore
      • CertManagerVerifyBuffer

        public int CertManagerVerifyBuffer​(byte[] in,
                                           long sz,
                                           int format)
      • free

        public void free()
                  throws java.lang.IllegalStateException
        Frees CertManager object
        Throws:
        java.lang.IllegalStateException - WolfSSLContext has been freed
        See Also:
        WolfSSLSession.freeSSL()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable