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.
|
private ClassLoader |
classLoader
Context class loader.
|
private Map<String,Object> |
environment
Context environment.
|
private 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 SSLSocketFactory |
sslSocketFactory
ldap socket factory used for SSL and startTLS.
|
private OutputStream |
tracePackets
Stream to print LDAP ASN.1 BER packets.
|
logger
Constructor and Description |
---|
JndiProviderConfig()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader()
Returns the class loader to use when creating JNDI contexts.
|
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 |
setClassLoader(ClassLoader cl)
Sets the class loader to use when creating JNDI contexts.
|
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() |
getControlProcessor, getOperationExceptionResultCodes, getProperties, setControlProcessor, setOperationExceptionResultCodes
checkImmutable, checkStringInput, makeImmutable
protected static final String ALLOW_ANY_HOSTNAME
private OutputStream tracePackets
private boolean removeDnUrls
private ResultCode[] searchIgnoreResultCodes
private ClassLoader classLoader
private SSLSocketFactory sslSocketFactory
private HostnameVerifier hostnameVerifier
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 ClassLoader getClassLoader()
public void setClassLoader(ClassLoader cl)
cl
- class loaderpublic 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 © 2003-2019 Virginia Tech. All Rights Reserved.