Esri Geoportal Server
1.0

com.esri.gpt.framework.security.identity.ldap
Class LdapConnectionProperties

java.lang.Object
  extended by com.esri.gpt.framework.security.identity.ldap.LdapConnectionProperties

public class LdapConnectionProperties
extends Object

Defines the configured properties for an LDAP connection.


Constructor Summary
LdapConnectionProperties()
          Default constructor.
 
Method Summary
 String getInitialContextFactoryName()
          Gets the initial context factory name.
 String getProviderUrl()
          Gets the LDAP provider url.
 String getSecurityAuthenticationLevel()
          Gets the LDAP security authentication level.
 String getSecurityProtocol()
          Gets the LDAP security protocol.
 Credentials getServiceAccountCredentials()
          Gets the credentials for the service account.
 String replace(String pattern, String value)
          Replaces all occurences of {0} within a pattern with the supplied value.
 void setInitialContextFactoryName(String name)
          Sets the initial context factory name.
 void setProviderUrl(String providerUrl)
          Sets the LDAP provider url.
 void setSecurityAuthenticationLevel(String level)
          Sets the LDAP security authentication level.
 void setSecurityProtocol(String protocol)
          Sets the LDAP security protocol.
 void setServiceAccountCredentials(Credentials credentials)
          Sets the credentials for the service account.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapConnectionProperties

public LdapConnectionProperties()
Default constructor.

Method Detail

getInitialContextFactoryName

public String getInitialContextFactoryName()
Gets the initial context factory name.

Returns:
the initial context factory name

setInitialContextFactoryName

public void setInitialContextFactoryName(String name)
Sets the initial context factory name.

Parameters:
name - the initial context factory name

getProviderUrl

public String getProviderUrl()
Gets the LDAP provider url.

Returns:
the LDAP provider url

setProviderUrl

public void setProviderUrl(String providerUrl)
Sets the LDAP provider url.

Parameters:
providerUrl - the LDAP provider url

getServiceAccountCredentials

public Credentials getServiceAccountCredentials()
Gets the credentials for the service account.

Returns:
the credentials

setServiceAccountCredentials

public void setServiceAccountCredentials(Credentials credentials)
Sets the credentials for the service account.

Parameters:
credentials - the credentials

getSecurityAuthenticationLevel

public String getSecurityAuthenticationLevel()
Gets the LDAP security authentication level.
Corresponds to the Context.SECURITY_AUTHENTICATION setting
eg. "none", "simple"

Returns:
the LDAP security authentication level

setSecurityAuthenticationLevel

public void setSecurityAuthenticationLevel(String level)
Sets the LDAP security authentication level.
Corresponds to the Context.SECURITY_AUTHENTICATION setting
eg. "none", "simple"

Parameters:
level - the LDAP security authentication level

getSecurityProtocol

public String getSecurityProtocol()
Gets the LDAP security protocol.
Corresponds to the Context.SECURITY_PROTOCOL setting
eg. null, "ssl"

Returns:
the LDAP security protocol

setSecurityProtocol

public void setSecurityProtocol(String protocol)
Sets the LDAP security protocol.
Corresponds to the Context.SECURITY_PROTOCOL setting
eg. null, "ssl"

Parameters:
protocol - the LDAP security protocol

replace

public String replace(String pattern,
                      String value)
Replaces all occurences of {0} within a pattern with the supplied value.

Parameters:
pattern - the replacement pattern
value - the replacement value

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.