Module org.snmp4j

Class TLSTMUtil


  • public class TLSTMUtil
    extends java.lang.Object
    The TLSTMUtil class implements common functions for TLSTM and DTLSTM.
    Since:
    3.0
    Author:
    Frank Fock
    • Constructor Summary

      Constructors 
      Constructor Description
      TLSTMUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.net.ssl.SSLContext createSSLContext​(java.lang.String protocol, java.lang.String keyStore, java.lang.String keyStorePassword, java.lang.String trustStore, java.lang.String trustStorePassword, TransportStateReference transportStateReference, TLSTMTrustManagerFactory trustManagerFactory, boolean useClientMode, TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback, java.lang.String localCertificateAlias)  
      static void filterCertificates​(java.security.KeyStore ks, TransportStateReference transportStateReference, TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback, java.lang.String localCertificateAlias)  
      static OctetString getFingerprint​(java.security.cert.X509Certificate cert)  
      static java.lang.Object getSubjAltName​(java.util.Collection<java.util.List<?>> subjAltNames, int type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TLSTMUtil

        public TLSTMUtil()
    • Method Detail

      • getFingerprint

        public static OctetString getFingerprint​(java.security.cert.X509Certificate cert)
      • getSubjAltName

        public static java.lang.Object getSubjAltName​(java.util.Collection<java.util.List<?>> subjAltNames,
                                                      int type)
      • createSSLContext

        public static javax.net.ssl.SSLContext createSSLContext​(java.lang.String protocol,
                                                                java.lang.String keyStore,
                                                                java.lang.String keyStorePassword,
                                                                java.lang.String trustStore,
                                                                java.lang.String trustStorePassword,
                                                                TransportStateReference transportStateReference,
                                                                TLSTMTrustManagerFactory trustManagerFactory,
                                                                boolean useClientMode,
                                                                TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback,
                                                                java.lang.String localCertificateAlias)
                                                         throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • filterCertificates

        public static void filterCertificates​(java.security.KeyStore ks,
                                              TransportStateReference transportStateReference,
                                              TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback,
                                              java.lang.String localCertificateAlias)