com.atlassian.user.impl.ldap.properties
Class DefaultLdapConnectionProperties
java.lang.Object
com.atlassian.user.impl.ldap.properties.DefaultLdapConnectionProperties
- All Implemented Interfaces:
- LdapConnectionProperties
public class DefaultLdapConnectionProperties
- extends Object
- implements LdapConnectionProperties
DEFAULT_LDAP_PORT
public static final int DEFAULT_LDAP_PORT
- See Also:
- Constant Field Values
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE
- See Also:
- Constant Field Values
DEFAULT_CONNECT_TIMEOUT_MILLIS
public static final int DEFAULT_CONNECT_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
DEFAULT_READ_TIMEOUT_MILLIS
public static final int DEFAULT_READ_TIMEOUT_MILLIS
- See Also:
- Constant Field Values
DEFAULT_AUTHENTICATION
public static final String DEFAULT_AUTHENTICATION
- See Also:
- Constant Field Values
DefaultLdapConnectionProperties
public DefaultLdapConnectionProperties()
getSecurityPrincipal
public String getSecurityPrincipal()
- Specified by:
getSecurityPrincipal in interface LdapConnectionProperties
- Returns:
- the user to be used for authenticating to the LDAP server
- See Also:
Context.SECURITY_PRINCIPAL
getSecurityCredential
public String getSecurityCredential()
- Specified by:
getSecurityCredential in interface LdapConnectionProperties
- Returns:
- the password to be used for authenticating to the LDAP server
- See Also:
Context.SECURITY_CREDENTIALS
getProviderURL
public String getProviderURL()
- If the provider URL has been set explicitly by
setProviderURL(String) returns that value,
otherwise returns a concatenation of protocol, host and port in the form 'ldaps://localhost:389'.
- Specified by:
getProviderURL in interface LdapConnectionProperties
- Returns:
- the configured provider URL
- See Also:
Context.PROVIDER_URL
getJNDIInitialContextFactoryIdentifier
public String getJNDIInitialContextFactoryIdentifier()
- Specified by:
getJNDIInitialContextFactoryIdentifier in interface LdapConnectionProperties
- Returns:
- the fully-qualified class name of the JNDI
InitialContextFactory to use for opening the
connection - See Also:
Context.INITIAL_CONTEXT_FACTORY
getSearchBatchSize
public int getSearchBatchSize()
- Specified by:
getSearchBatchSize in interface LdapConnectionProperties
- Returns:
- the batch size used for search results returned from the LDAP server
- See Also:
Context.BATCHSIZE
getSecurityAuthentication
public String getSecurityAuthentication()
- Specified by:
getSecurityAuthentication in interface LdapConnectionProperties
- Returns:
- the type of security to use for authentication, for example "simple"
- See Also:
Context.SECURITY_AUTHENTICATION
getSecurityProtocol
public String getSecurityProtocol()
- Specified by:
getSecurityProtocol in interface LdapConnectionProperties
- Returns:
- the type of security to use for the LDAP connection, for example "ssl"
- See Also:
Context.SECURITY_PROTOCOL
isPoolingOn
public boolean isPoolingOn()
- Specified by:
isPoolingOn in interface LdapConnectionProperties
- Returns:
true if LDAP connection pooling is enabled, otherwise false.
getConnectTimeoutMillis
public int getConnectTimeoutMillis()
- Specified by:
getConnectTimeoutMillis in interface LdapConnectionProperties
- Returns:
- the time limit in milliseconds to be used when connecting to the LDAP server
getReadTimeoutMillis
public int getReadTimeoutMillis()
- Specified by:
getReadTimeoutMillis in interface LdapConnectionProperties
- Returns:
- the time limit in milliseconds to be used when reading data from the LDAP server
setSecurityPrincipal
public void setSecurityPrincipal(String securityPrincipal)
setSecurityCredential
public void setSecurityCredential(String securityCredential)
setHost
public void setHost(String host)
setPort
public void setPort(int port)
setJndiInitialContextFactoryIdentifier
public void setJndiInitialContextFactoryIdentifier(String jndiInitialContextFactoryIdentifier)
setSearchBatchSize
public void setSearchBatchSize(int searchBatchSize)
setSecurityAuthentication
public void setSecurityAuthentication(String securityAuthentication)
setSecurityProtocol
public void setSecurityProtocol(String securityProtocol)
setPoolingOn
public void setPoolingOn(boolean poolingOn)
setProviderURL
public void setProviderURL(String providerURL)
setConnectTimeoutMillis
public void setConnectTimeoutMillis(int connectTimeoutMillis)
setReadTimeoutMillis
public void setReadTimeoutMillis(int readTimeoutMillis)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.