org.ldaptive.provider.jndi
Class JndiProviderConfig

java.lang.Object
  extended by org.ldaptive.AbstractConfig
      extended by org.ldaptive.provider.ProviderConfig<Control>
          extended by org.ldaptive.provider.jndi.JndiProviderConfig

public class JndiProviderConfig
extends ProviderConfig<Control>

Contains configuration data for the JNDI provider.

Version:
$Revision: 2990 $ $Date: 2014-06-02 16:52:22 -0400 (Mon, 02 Jun 2014) $
Author:
Middleware Services

Field Summary
protected static String ALLOW_ANY_HOSTNAME
          Boolean property that indicates whether hostname verification should be disabled for StartTLS connections.
 
Fields inherited from class org.ldaptive.provider.ProviderConfig
logger
 
Constructor Summary
JndiProviderConfig()
          Default constructor.
 
Method Summary
 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()
          
 
Methods inherited from class org.ldaptive.provider.ProviderConfig
getConnectionStrategy, getControlProcessor, getOperationExceptionResultCodes, getProperties, setConnectionStrategy, setControlProcessor, setOperationExceptionResultCodes
 
Methods inherited from class org.ldaptive.AbstractConfig
checkImmutable, checkStringInput, makeImmutable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALLOW_ANY_HOSTNAME

protected static final String ALLOW_ANY_HOSTNAME
Boolean property that indicates whether hostname verification should be disabled for StartTLS connections. The value of this constant is "jndi.starttls.allowAnyHostname".

See Also:
Constant Field Values
Constructor Detail

JndiProviderConfig

public JndiProviderConfig()
Default constructor.

Method Detail

getEnvironment

public Map<String,Object> getEnvironment()
Returns the context environment.

Returns:
ldap context environment

setEnvironment

public void setEnvironment(Map<String,Object> env)
Sets the context environment.

Parameters:
env - ldap context environment

getTracePackets

public OutputStream getTracePackets()
Returns the output stream used to print ASN.1 BER packets.

Returns:
output stream

setTracePackets

public void setTracePackets(OutputStream stream)
Sets the output stream to print ASN.1 BER packets to.

Parameters:
stream - to output to

getRemoveDnUrls

public boolean getRemoveDnUrls()
Returns whether the URL will be removed from any DNs which are not relative. The default value is true.

Returns:
whether the URL will be removed from DNs

setRemoveDnUrls

public void setRemoveDnUrls(boolean b)
Sets whether the URL will be removed from any DNs which are not relative The default value is true.

Parameters:
b - whether the URL will be removed from DNs

getSearchIgnoreResultCodes

public ResultCode[] getSearchIgnoreResultCodes()
Returns the search ignore result codes.

Returns:
result codes to ignore

setSearchIgnoreResultCodes

public void setSearchIgnoreResultCodes(ResultCode... codes)
Sets the search ignore result codes.

Parameters:
codes - to ignore

getSslSocketFactory

public SSLSocketFactory getSslSocketFactory()
Returns the SSL socket factory to use for SSL and startTLS connections.

Returns:
SSL socket factory

setSslSocketFactory

public void setSslSocketFactory(SSLSocketFactory sf)
Sets the SSL socket factory to use for SSL and startTLS connections.

Parameters:
sf - SSL socket factory

getHostnameVerifier

public HostnameVerifier getHostnameVerifier()
Returns the hostname verifier to use for startTLS connections.

Returns:
hostname verifier

setHostnameVerifier

public void setHostnameVerifier(HostnameVerifier verifier)
Sets the hostname verifier to use for startTLS connections.

Parameters:
verifier - for hostnames

setProperties

public void setProperties(Map<String,Object> props)
Sets provider specific properties.

Overrides:
setProperties in class ProviderConfig<Control>
Parameters:
props - map of additional provider properties

toString

public String toString()

Overrides:
toString in class ProviderConfig<Control>


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.