Package com.wolfssl
Class WolfSSLCertManager
- java.lang.Object
-
- com.wolfssl.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
-
-
Constructor Summary
Constructors Constructor Description WolfSSLCertManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
CertManagerLoadCA(java.lang.String f, java.lang.String d)
int
CertManagerLoadCABuffer(byte[] in, long sz, int format)
int
CertManagerLoadCAKeyStore(java.security.KeyStore ks)
Loads KeyStore certificates into WolfSSLCertManager object.int
CertManagerVerifyBuffer(byte[] in, long sz, int format)
protected void
finalize()
void
free()
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 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 classjava.lang.Object
- Throws:
java.lang.Throwable
-
-