public class JndiProviderConfig extends ProviderConfig<javax.naming.ldap.Control>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ALLOW_ANY_HOSTNAME
Boolean property that indicates whether hostname verification should be disabled for StartTLS connections.
|
private java.util.Map<java.lang.String,java.lang.Object> |
environment
Context environment.
|
private javax.net.ssl.HostnameVerifier |
hostnameVerifier
hostname verifier for startTLS connections.
|
private boolean |
removeDnUrls
Whether to remove the URL from any DNs which are not relative.
|
private ResultCode[] |
searchIgnoreResultCodes
Search result codes to ignore.
|
private javax.net.ssl.SSLSocketFactory |
sslSocketFactory
ldap socket factory used for SSL and startTLS.
|
private java.io.OutputStream |
tracePackets
Stream to print LDAP ASN.1 BER packets.
|
logger| Constructor and Description |
|---|
JndiProviderConfig()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getEnvironment()
Returns the context environment.
|
javax.net.ssl.HostnameVerifier |
getHostnameVerifier()
Returns the hostname verifier to use for startTLS connections.
|
boolean |
getRemoveDnUrls()
Returns whether the URL will be removed from any DNs which are not relative.
|
ResultCode[] |
getSearchIgnoreResultCodes()
Returns the search ignore result codes.
|
javax.net.ssl.SSLSocketFactory |
getSslSocketFactory()
Returns the SSL socket factory to use for SSL and startTLS connections.
|
java.io.OutputStream |
getTracePackets()
Returns the output stream used to print ASN.1 BER packets.
|
void |
setEnvironment(java.util.Map<java.lang.String,java.lang.Object> env)
Sets the context environment.
|
void |
setHostnameVerifier(javax.net.ssl.HostnameVerifier verifier)
Sets the hostname verifier to use for startTLS connections.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
Sets provider specific properties.
|
void |
setRemoveDnUrls(boolean b)
Sets whether the URL will be removed from any DNs which are not relative The default value is true.
|
void |
setSearchIgnoreResultCodes(ResultCode... codes)
Sets the search ignore result codes.
|
void |
setSslSocketFactory(javax.net.ssl.SSLSocketFactory sf)
Sets the SSL socket factory to use for SSL and startTLS connections.
|
void |
setTracePackets(java.io.OutputStream stream)
Sets the output stream to print ASN.1 BER packets to.
|
java.lang.String |
toString() |
getConnectionStrategy, getControlProcessor, getOperationExceptionResultCodes, getProperties, setConnectionStrategy, setControlProcessor, setOperationExceptionResultCodescheckImmutable, checkStringInput, makeImmutableprotected static final java.lang.String ALLOW_ANY_HOSTNAME
private java.util.Map<java.lang.String,java.lang.Object> environment
private java.io.OutputStream tracePackets
private boolean removeDnUrls
private ResultCode[] searchIgnoreResultCodes
private javax.net.ssl.SSLSocketFactory sslSocketFactory
private javax.net.ssl.HostnameVerifier hostnameVerifier
public java.util.Map<java.lang.String,java.lang.Object> getEnvironment()
public void setEnvironment(java.util.Map<java.lang.String,java.lang.Object> env)
env - ldap context environmentpublic java.io.OutputStream getTracePackets()
public void setTracePackets(java.io.OutputStream stream)
stream - to output topublic boolean getRemoveDnUrls()
public void setRemoveDnUrls(boolean b)
b - whether the URL will be removed from DNspublic ResultCode[] getSearchIgnoreResultCodes()
public void setSearchIgnoreResultCodes(ResultCode... codes)
codes - to ignorepublic javax.net.ssl.SSLSocketFactory getSslSocketFactory()
public void setSslSocketFactory(javax.net.ssl.SSLSocketFactory sf)
sf - SSL socket factorypublic javax.net.ssl.HostnameVerifier getHostnameVerifier()
public void setHostnameVerifier(javax.net.ssl.HostnameVerifier verifier)
verifier - for hostnamespublic void setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
ProviderConfigsetProperties in class ProviderConfig<javax.naming.ldap.Control>props - map of additional provider propertiespublic java.lang.String toString()
toString in class ProviderConfig<javax.naming.ldap.Control>