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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContextcreateSSLContext(String protocol, String keyStore, String keyStorePassword, String trustStore, String trustStorePassword, TransportStateReference transportStateReference, TLSTM.TLSTMTrustManagerFactory trustManagerFactory, boolean useClientMode, TlsTmSecurityCallback<X509Certificate> securityCallback, String localCertificateAlias) static OctetStringstatic OctetStringgetIpAddressFromSubjAltName(Collection<List<?>> altNames) static ObjectgetSubjAltName(Collection<List<?>> subjAltNames, int type) static booleanisMatchingFingerprint(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
 
 -