Package org.ldaptive.provider.jldap
Class JLdapStartTLSConnection
- java.lang.Object
-
- org.ldaptive.provider.jldap.JLdapConnection
-
- org.ldaptive.provider.jldap.JLdapStartTLSConnection
-
- All Implemented Interfaces:
ProviderConnection
public class JLdapStartTLSConnection extends JLdapConnection
JLDAP provider implementation of ldap operations over TLS.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldaptive.provider.jldap.JLdapConnection
JLdapConnection.AbstractJLdapSearch, JLdapConnection.AggregateUnsolicitedNotificationListener, JLdapConnection.JLdapAsyncRequest, JLdapConnection.JLdapAsyncSearchListener, JLdapConnection.JLdapSearchIterator, JLdapConnection.SearchResultIterator
-
-
Field Summary
Fields Modifier and Type Field Description private booleanstopTlsOnCloseWhether to callLDAPConnection.stopTLS()whenclose(RequestControl[])is called.-
Fields inherited from class org.ldaptive.provider.jldap.JLdapConnection
logger
-
-
Constructor Summary
Constructors Constructor Description JLdapStartTLSConnection(com.novell.ldap.LDAPConnection conn, JLdapProviderConfig pc)Creates a new jldap tls connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(RequestControl[] controls)booleangetStopTlsOnClose()Returns whether to callLDAPConnection.stopTLS()whenclose(RequestControl[])is called.voidsetStopTlsOnClose(boolean b)Sets whether to callLDAPConnection.stopTLS()whenclose(RequestControl[])is called.-
Methods inherited from class org.ldaptive.provider.jldap.JLdapConnection
abandon, add, addUnsolicitedNotificationListener, anonymousBind, bind, compare, createResponse, delete, extendedOperation, getLDAPConnection, getLDAPConstraints, getLDAPConstraints, modify, modifyDn, processLDAPException, removeUnsolicitedNotificationListener, saslBind, search, searchAsync, simpleBind, throwOperationException
-
-
-
-
Field Detail
-
stopTlsOnClose
private boolean stopTlsOnClose
Whether to callLDAPConnection.stopTLS()whenclose(RequestControl[])is called.
-
-
Constructor Detail
-
JLdapStartTLSConnection
public JLdapStartTLSConnection(com.novell.ldap.LDAPConnection conn, JLdapProviderConfig pc)Creates a new jldap tls connection.- Parameters:
conn- ldap connectionpc- provider configuration
-
-
Method Detail
-
getStopTlsOnClose
public boolean getStopTlsOnClose()
Returns whether to callLDAPConnection.stopTLS()whenclose(RequestControl[])is called.- Returns:
- stop TLS on close
-
setStopTlsOnClose
public void setStopTlsOnClose(boolean b)
Sets whether to callLDAPConnection.stopTLS()whenclose(RequestControl[])is called.- Parameters:
b- stop TLS on close
-
close
public void close(RequestControl[] controls) throws LdapException
- Specified by:
closein interfaceProviderConnection- Overrides:
closein classJLdapConnection- Throws:
LdapException
-
-