Constructor and Description |
---|
TLSTMUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
static OctetString |
getFingerprint(X509Certificate cert) |
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) |
public static OctetString getFingerprint(X509Certificate cert)
public static boolean isMatchingFingerprint(X509Certificate[] x509Certificates, OctetString fingerprint, boolean useClientMode, CounterSupport tlstmCounters, LogAdapter logger, Object eventSource) throws CertificateException
CertificateException
public static Object getSubjAltName(Collection<List<?>> subjAltNames, int type)
public static OctetString getIpAddressFromSubjAltName(Collection<List<?>> altNames)
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
GeneralSecurityException
Copyright © 2022 SNMP4J.org. All rights reserved.