public enum AuthenticationLevel extends Enum<AuthenticationLevel>
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
int |
getLevel() |
static AuthenticationLevel |
getLevel(int val)
Return the AuthenticationLevel associated with the given numeric level.
|
String |
getName() |
String |
toString() |
static AuthenticationLevel |
valueOf(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.
|
public static final AuthenticationLevel NONE
public static final AuthenticationLevel SIMPLE
public static final AuthenticationLevel STRONG
public static final AuthenticationLevel UNAUTHENT
public static AuthenticationLevel[] values()
for (AuthenticationLevel c : AuthenticationLevel.values()) System.out.println(c);
public static AuthenticationLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getLevel()
public String toString()
toString
in class Enum<AuthenticationLevel>
public static AuthenticationLevel getLevel(int val)
val
- The numeric level we are looking atCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.