|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LDAPTLSSocketFactory
Used to construct a TLS socket and used by the startTLS method of LDAPConnection.
Programmers needing to provide or use specialized socket connections for startTLS can provide an implementation of this interface. Any socketFactory to be used by startTLS must implement this factory. An implementation of this factory can be set per connection or globally for all connections.
LDAPConnection.LDAPConnection(LDAPSocketFactory)
,
LDAPConnection.setSocketFactory(com.novell.ldap.LDAPSocketFactory)
Method Summary | |
---|---|
java.net.Socket |
createSocket(java.net.Socket clearTextSocket)
Called by startTLS and returns a TLS secured socket which is layered over the specified socket. |
Methods inherited from interface com.novell.ldap.LDAPSocketFactory |
---|
createSocket |
Method Detail |
---|
java.net.Socket createSocket(java.net.Socket clearTextSocket) throws java.io.IOException, java.net.UnknownHostException
Implementations of this interface MUST return a TLS secured socket which, when closed, does not close the underlying socket.
RFC2830 - the LDAP draft explaining how TLS should work in LDAP, maindates that the connection identity must match the identify in the certificate returned from the server. For more information see rfc2830 section 5.2
clearTextSocket
- The socket on which TLS is to be negotiated.
java.io.IOException
- The socket to the specified host and port
could not be created.
java.net.UnknownHostException
- The specified host could not be found.LDAPConnection.startTLS()
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |