org.apache.directory.shared.ldap.constants
Enum LdapSecurityConstants

java.lang.Object
  extended by java.lang.Enum<LdapSecurityConstants>
      extended by org.apache.directory.shared.ldap.constants.LdapSecurityConstants
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LdapSecurityConstants>

public enum LdapSecurityConstants
extends java.lang.Enum<LdapSecurityConstants>

An enum to store all the security constants used in the server

Version:
$Rev:$
Author:
Apache Directory Project

Enum Constant Summary
HASH_METHOD_CRYPT
           
HASH_METHOD_MD5
           
HASH_METHOD_SHA
           
HASH_METHOD_SMD5
           
HASH_METHOD_SSHA
           
 
Method Summary
static LdapSecurityConstants getAlgorithm(java.lang.String name)
          Get the associated constant from a string
 java.lang.String getName()
          Return the name associated with the constant.
static LdapSecurityConstants valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LdapSecurityConstants[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HASH_METHOD_SHA

public static final LdapSecurityConstants HASH_METHOD_SHA

HASH_METHOD_SSHA

public static final LdapSecurityConstants HASH_METHOD_SSHA

HASH_METHOD_MD5

public static final LdapSecurityConstants HASH_METHOD_MD5

HASH_METHOD_SMD5

public static final LdapSecurityConstants HASH_METHOD_SMD5

HASH_METHOD_CRYPT

public static final LdapSecurityConstants HASH_METHOD_CRYPT
Method Detail

values

public static LdapSecurityConstants[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LdapSecurityConstants c : LdapSecurityConstants.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LdapSecurityConstants valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()
Return the name associated with the constant.


getAlgorithm

public static LdapSecurityConstants getAlgorithm(java.lang.String name)
Get the associated constant from a string

Parameters:
name - The algorithm's name
Returns:
The associated constant


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.