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: 678285 $, $Date: 2008-07-20 19:01:31 +0200 (So, 20 Jul 2008) $
Author:
Apache Directory Project

Enum Constant Summary
INVALID
          Invalid authentication type
NONE
          No authentication (anonymous access)
SIMPLE
          Simple authentication (bound with plain-text credentials)
STRONG
          Strong authentication (bound with encrypted credentials)
UNAUTHENT
          Unauthentication, if the BIND contains a DN but no credentials
 
Method Summary
 int getLevel()
          Returns the integer value of this level (greater value, stronger level).
static AuthenticationLevel getLevel(int val)
           
 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

INVALID

public static final AuthenticationLevel INVALID
Invalid authentication type


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 credentials)


UNAUTHENT

public static final AuthenticationLevel UNAUTHENT
Unauthentication, if the BIND contains a DN but no credentials

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>

getLevel

public static AuthenticationLevel getLevel(int val)


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