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

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

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

An enumeration that represents the level of authentication.

Version:
$Rev: 586526 $, $Date: 2007-10-19 12:44:16 -0400 (Fri, 19 Oct 2007) $
Author:
Apache Directory Project

Enum Constant Summary
NONE
          No authentication (anonymous access)
SIMPLE
          Simple authentication (bound with plain-text credentials)
STRONG
          Strong authentication (bound with encrypted cerdentials)
 
Method Summary
 int getLevel()
          Returns the integer value of this level (greater value, stronger level).
 java.lang.String getName()
          Returns the name of this level.
 java.lang.String toString()
           
static AuthenticationLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AuthenticationLevel[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final AuthenticationLevel NONE
No authentication (anonymous access)


SIMPLE

public static final AuthenticationLevel SIMPLE
Simple authentication (bound with plain-text credentials)


STRONG

public static final AuthenticationLevel STRONG
Strong authentication (bound with encrypted cerdentials)

Method Detail

values

public static AuthenticationLevel[] 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 (AuthenticationLevel c : AuthenticationLevel.values())
    System.out.println(c);

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

valueOf

public static AuthenticationLevel 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

getLevel

public int getLevel()
Returns the integer value of this level (greater value, stronger level).


getName

public java.lang.String getName()
Returns the name of this level.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<AuthenticationLevel>


Copyright © 2007-2008 The Apache Software Foundation. All Rights Reserved.