Class PKISocketFactory

  • All Implemented Interfaces:
    netscape.ldap.LDAPSocketFactory, netscape.ldap.LDAPSSLSocketFactoryExt

    public class PKISocketFactory
    extends java.lang.Object
    implements netscape.ldap.LDAPSSLSocketFactoryExt
    Uses HCL ssl socket.
    Author:
    Lily Hsiao lhsiao@netscape.com
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getCipherSuites()  
      void init()  
      void init​(IConfigStore cs)  
      boolean isClientAuth()  
      void log​(int level, java.lang.String msg)  
      java.net.Socket makeSocket​(java.lang.String host, int port)  
      org.mozilla.jss.ssl.SSLSocket makeSSLSocket​(java.lang.String host, int port)  
      • Methods inherited from class java.lang.Object

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

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • PKISocketFactory

        public PKISocketFactory()
      • PKISocketFactory

        public PKISocketFactory​(boolean secure)
      • PKISocketFactory

        public PKISocketFactory​(java.lang.String certNickname)
      • PKISocketFactory

        public PKISocketFactory​(java.lang.String certNickname,
                                boolean external)
    • Method Detail

      • init

        public void init()
      • makeSSLSocket

        public org.mozilla.jss.ssl.SSLSocket makeSSLSocket​(java.lang.String host,
                                                           int port)
                                                    throws java.net.UnknownHostException,
                                                           java.io.IOException
        Throws:
        java.net.UnknownHostException
        java.io.IOException
      • makeSocket

        public java.net.Socket makeSocket​(java.lang.String host,
                                          int port)
                                   throws netscape.ldap.LDAPException
        Specified by:
        makeSocket in interface netscape.ldap.LDAPSocketFactory
        Throws:
        netscape.ldap.LDAPException
      • isClientAuth

        public boolean isClientAuth()
        Specified by:
        isClientAuth in interface netscape.ldap.LDAPSSLSocketFactoryExt
      • getCipherSuites

        public java.lang.Object getCipherSuites()
        Specified by:
        getCipherSuites in interface netscape.ldap.LDAPSSLSocketFactoryExt
      • log

        public void log​(int level,
                        java.lang.String msg)