Package com.wolfssl
Class WolfSSLCertManager
- java.lang.Object
-
- com.wolfssl.WolfSSLCertManager
-
public class WolfSSLCertManager extends java.lang.ObjectCertManager 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
-
-
Constructor Summary
Constructors Constructor Description WolfSSLCertManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intCertManagerLoadCA(java.lang.String f, java.lang.String d)intCertManagerLoadCABuffer(byte[] in, long sz, int format)intCertManagerLoadCAKeyStore(java.security.KeyStore ks)Loads KeyStore certificates into WolfSSLCertManager object.intCertManagerVerifyBuffer(byte[] in, long sz, int format)protected voidfinalize()voidfree()Frees CertManager object
-
-
-
Constructor Detail
-
WolfSSLCertManager
public WolfSSLCertManager() throws WolfSSLException- Throws:
WolfSSLException
-
-
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 WolfSSLExceptionLoads 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.IllegalStateExceptionFrees CertManager object- Throws:
java.lang.IllegalStateException- WolfSSLContext has been freed- See Also:
WolfSSLSession.freeSSL()
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-