Package org.snmp4j.transport.tls
Class TLSTMUtil
java.lang.Object
org.snmp4j.transport.tls.TLSTMUtil
The
TLSTMUtil
class implements common functions for TLSTM
.- Since:
- 3.0
- Version:
- 2.8.0
- Author:
- Frank Fock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContext
createSSLContext
(String protocol, String keyStore, String keyStorePassword, String trustStore, String trustStorePassword, TransportStateReference transportStateReference, TLSTM.TLSTMTrustManagerFactory trustManagerFactory, boolean useClientMode, TlsTmSecurityCallback<X509Certificate> securityCallback, String localCertificateAlias) static OctetString
static OctetString
getIpAddressFromSubjAltName
(Collection<List<?>> altNames) static Object
getSubjAltName
(Collection<List<?>> subjAltNames, int type) static boolean
isMatchingFingerprint
(X509Certificate[] x509Certificates, OctetString fingerprint, boolean useClientMode, CounterSupport tlstmCounters, LogAdapter logger, Object eventSource)
-
Constructor Details
-
TLSTMUtil
public TLSTMUtil()
-
-
Method Details
-
getFingerprint
-
isMatchingFingerprint
public static boolean isMatchingFingerprint(X509Certificate[] x509Certificates, OctetString fingerprint, boolean useClientMode, CounterSupport tlstmCounters, LogAdapter logger, Object eventSource) throws CertificateException - Throws:
CertificateException
-
getSubjAltName
-
getIpAddressFromSubjAltName
-
createSSLContext
public static SSLContext createSSLContext(String protocol, String keyStore, String keyStorePassword, String trustStore, String trustStorePassword, TransportStateReference transportStateReference, TLSTM.TLSTMTrustManagerFactory trustManagerFactory, boolean useClientMode, TlsTmSecurityCallback<X509Certificate> securityCallback, String localCertificateAlias) throws GeneralSecurityException - Throws:
GeneralSecurityException
-