public enum AuthenticationLevel extends java.lang.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 | Field and Description |
|---|---|
private int |
level
The internal numeric value
|
private java.lang.String |
name
The level name
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel() |
static AuthenticationLevel |
getLevel(int val)
Return the AuthenticationLevel associated with the given numeric level.
|
java.lang.String |
getName() |
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.
|
public static final AuthenticationLevel NONE
public static final AuthenticationLevel SIMPLE
public static final AuthenticationLevel STRONG
public static final AuthenticationLevel UNAUTHENT
private int level
private final java.lang.String name
public static AuthenticationLevel[] values()
for (AuthenticationLevel c : AuthenticationLevel.values()) System.out.println(c);
public static AuthenticationLevel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getLevel()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Enum<AuthenticationLevel>public static AuthenticationLevel getLevel(int val)
val - The numeric level we are looking at