public class JndiProviderConfig extends ProviderConfig<Control>
Modifier and Type | Field and Description |
---|---|
protected static String |
ALLOW_ANY_HOSTNAME
Boolean property that indicates whether hostname verification should be disabled for StartTLS connections.
|
logger
Constructor and Description |
---|
JndiProviderConfig()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getEnvironment()
Returns the context environment.
|
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.
|
SSLSocketFactory |
getSslSocketFactory()
Returns the SSL socket factory to use for SSL and startTLS connections.
|
OutputStream |
getTracePackets()
Returns the output stream used to print ASN.1 BER packets.
|
void |
setEnvironment(Map<String,Object> env)
Sets the context environment.
|
void |
setHostnameVerifier(HostnameVerifier verifier)
Sets the hostname verifier to use for startTLS connections.
|
void |
setProperties(Map<String,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(SSLSocketFactory sf)
Sets the SSL socket factory to use for SSL and startTLS connections.
|
void |
setTracePackets(OutputStream stream)
Sets the output stream to print ASN.1 BER packets to.
|
String |
toString() |
getConnectionStrategy, getControlProcessor, getOperationExceptionResultCodes, getProperties, setConnectionStrategy, setControlProcessor, setOperationExceptionResultCodes
checkImmutable, checkStringInput, makeImmutable
protected static final String ALLOW_ANY_HOSTNAME
public Map<String,Object> getEnvironment()
public void setEnvironment(Map<String,Object> env)
env
- ldap context environmentpublic OutputStream getTracePackets()
public void setTracePackets(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 SSLSocketFactory getSslSocketFactory()
public void setSslSocketFactory(SSLSocketFactory sf)
sf
- SSL socket factorypublic HostnameVerifier getHostnameVerifier()
public void setHostnameVerifier(HostnameVerifier verifier)
verifier
- for hostnamespublic void setProperties(Map<String,Object> props)
ProviderConfig
setProperties
in class ProviderConfig<Control>
props
- map of additional provider propertiespublic String toString()
toString
in class ProviderConfig<Control>
Copyright © 2023. All rights reserved.