public class JndiStartTLSConnection extends JndiConnection
JndiConnection.JndiExtendedRequest, JndiConnection.JndiExtendedResponse, JndiConnection.JndiSearchIterator
Modifier and Type | Field and Description |
---|---|
private StartTlsResponse |
startTlsResponse
Start TLS response.
|
private boolean |
stopTLSOnClose
Whether to call
StartTlsResponse.close() when close(RequestControl[]) is called. |
AUTHENTICATION, BINARY_ATTRIBUTES, CREDENTIALS, DELETE_RDN, DEREF_ALIASES, logger, PRINCIPAL, REFERRAL, SASL_AUTHZ_ID, SASL_MUTUAL_AUTH, SASL_QOP, SASL_REALM, SASL_STRENGTH, TYPES_ONLY
Constructor and Description |
---|
JndiStartTLSConnection(LdapContext lc,
JndiProviderConfig pc)
Creates a new jndi startTLS connection.
|
JndiStartTLSConnection(LdapContext lc,
JndiProviderConfig pc,
StartTlsResponse tlsResponse)
Creates a new jndi startTLS connection.
|
Modifier and Type | Method and Description |
---|---|
void |
close(RequestControl[] controls)
Tear down this connection to an LDAP.
|
StartTlsResponse |
getStartTlsResponse()
Returns the start tls response used by this connection.
|
boolean |
getStopTLSOnClose()
Returns whether to call
StartTlsResponse.close() when close(RequestControl[]) is called. |
void |
setStartTlsResponse(StartTlsResponse str)
Sets the start tls response.
|
void |
setStopTLSOnClose(boolean b)
Sets whether to call
StartTlsResponse.close() when close(RequestControl[]) is called. |
abandon, add, addUnsolicitedNotificationListener, anonymousBind, bind, compare, createResponse, delete, extendedOperation, getCompareSearchControls, getLdapContext, getSaslProperties, initializeContext, modify, modifyDn, processNamingException, processResponseControls, removeUnsolicitedNotificationListener, saslBind, search, searchAsync, simpleBind
private StartTlsResponse startTlsResponse
private boolean stopTLSOnClose
StartTlsResponse.close()
when close(RequestControl[])
is called.public JndiStartTLSConnection(LdapContext lc, JndiProviderConfig pc)
lc
- ldap contextpc
- provider configurationpublic JndiStartTLSConnection(LdapContext lc, JndiProviderConfig pc, StartTlsResponse tlsResponse)
lc
- ldap contextpc
- provider configurationtlsResponse
- of successful TLS handshakepublic boolean getStopTLSOnClose()
StartTlsResponse.close()
when close(RequestControl[])
is called.public void setStopTLSOnClose(boolean b)
StartTlsResponse.close()
when close(RequestControl[])
is called.b
- stop TLS on closepublic StartTlsResponse getStartTlsResponse()
public void setStartTlsResponse(StartTlsResponse str)
str
- start tls responsepublic void close(RequestControl[] controls) throws LdapException
ProviderConnection
close
in interface ProviderConnection
close
in class JndiConnection
controls
- request controlsLdapException
- if an LDAP error occursCopyright © 2003-2019 Virginia Tech. All Rights Reserved.