public enum AuthenticationLevel extends Enum<AuthenticationLevel>
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
int |
getLevel()
Returns the integer value of this level (greater value, stronger level).
|
static AuthenticationLevel |
getLevel(int val) |
String |
getName()
Returns the name of this level.
|
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 INVALID
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 getName()
public String toString()
toString
in class Enum<AuthenticationLevel>
public static AuthenticationLevel getLevel(int val)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.