org.apache.turbine.services.security.ldap
Class LDAPSecurityConstants

java.lang.Object
  extended by org.apache.turbine.services.security.ldap.LDAPSecurityConstants

public class LDAPSecurityConstants
extends java.lang.Object

This is a static class for defining the default ldap confiquration keys used by core Turbine components.

Author:
Jason van Zyl, Humberto Hernandez

Constructor Summary
LDAPSecurityConstants()
           
 
Method Summary
static java.lang.String getAdminPassword()
          Get the value of the property for the administration password.
static java.lang.String getAdminUsername()
          Get the value of the property for the administration username.
static java.lang.String getBaseSearch()
          Get value of the property for the Base Search.
static java.lang.String getEmailAttribute()
          Get the value of the E-Mail Attribute.
static java.lang.String getFirstNameAttribute()
          Get the value of the Firstname Attribute.
static java.lang.String getLastNameAttribute()
          Get the value of the Lastname Attribute.
static java.lang.String getLDAPAuthentication()
          Get the value of the property for the Authentication mechanism.
static java.lang.String getLDAPHost()
          Get the value of the property for the LDAP Host.
static java.lang.String getLDAPPort()
          Get the value of the property for the LDAP Port.
static java.lang.String getLDAPProvider()
          Get the value of the property for the LDAP Provider.
static java.lang.String getNameAttribute()
          Get the value of the Username Attribute.
static java.lang.String getPasswordAttribute()
          Get the value of the Password Attribute.
static java.util.Properties getProperties()
          Get all the properties for the security service.
static java.lang.String getProperty(java.lang.String key)
          Get a property from the LDAP security service.
static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Get a property from the LDAP security service.
static java.lang.String getUserIdAttribute()
          Get the value of the User id Attribute.
static java.lang.String getUserNameAttribute()
          Deprecated. Use getNameAttribute()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPSecurityConstants

public LDAPSecurityConstants()
Method Detail

getProperties

public static java.util.Properties getProperties()
Get all the properties for the security service.

Returns:
all the properties of the security service.

getProperty

public static java.lang.String getProperty(java.lang.String key)
Get a property from the LDAP security service.

Parameters:
key - The key to access the value of the property.
Returns:
The value of the property.

getProperty

public static java.lang.String getProperty(java.lang.String key,
                                           java.lang.String defaultValue)
Get a property from the LDAP security service.

Parameters:
key - The key to access the value of the property.
defaultValue - The value that the property takes when it doesn't exist.
Returns:
The value of the property.

getAdminUsername

public static java.lang.String getAdminUsername()
Get the value of the property for the administration username.

Returns:
the value of the property.

getAdminPassword

public static java.lang.String getAdminPassword()
Get the value of the property for the administration password.

Returns:
the value of the property.

getLDAPHost

public static java.lang.String getLDAPHost()
Get the value of the property for the LDAP Host.

Returns:
the value of the property.

getLDAPPort

public static java.lang.String getLDAPPort()
Get the value of the property for the LDAP Port.

Returns:
the value of the property.

getLDAPProvider

public static java.lang.String getLDAPProvider()
Get the value of the property for the LDAP Provider.

Returns:
the value of the property.

getBaseSearch

public static java.lang.String getBaseSearch()
Get value of the property for the Base Search.

Returns:
the value of the property.

getLDAPAuthentication

public static java.lang.String getLDAPAuthentication()
Get the value of the property for the Authentication mechanism. Valid values are: none, simple,

Returns:
the value of the property.

getUserIdAttribute

public static java.lang.String getUserIdAttribute()
Get the value of the User id Attribute.

Returns:
the value of the property.

getNameAttribute

public static java.lang.String getNameAttribute()
Get the value of the Username Attribute.

Returns:
the value of the property.

getUserNameAttribute

public static java.lang.String getUserNameAttribute()
Deprecated. Use getNameAttribute()

Get the value of the Username Attribute.

Returns:
the value of the property.

getFirstNameAttribute

public static java.lang.String getFirstNameAttribute()
Get the value of the Firstname Attribute.

Returns:
the value of the property.

getLastNameAttribute

public static java.lang.String getLastNameAttribute()
Get the value of the Lastname Attribute.

Returns:
the value of the property.

getPasswordAttribute

public static java.lang.String getPasswordAttribute()
Get the value of the Password Attribute.

Returns:
the value of the property.

getEmailAttribute

public static java.lang.String getEmailAttribute()
Get the value of the E-Mail Attribute.

Returns:
the value of the property.


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.