public class AuthenticationMethod extends Object
SessionControl.getAuthenticationMethod()
. The INTERNAL
is method is a static constant used when the regular internal username/password
verification is used. The EXTERNAL
is a generic external verification but
external AuthenticationManager
:s are encouraged to define their own authentication
methods.Modifier and Type | Field and Description |
---|---|
static AuthenticationMethod |
EXTERNAL
This is a generic external authentication method.
|
static AuthenticationMethod |
INTERNAL
This is the regular internal username/password verification authentication method.
|
private String |
method |
private static Map<String,AuthenticationMethod> |
methods |
Modifier | Constructor and Description |
---|---|
private |
AuthenticationMethod(String method) |
Modifier and Type | Method and Description |
---|---|
static AuthenticationMethod |
getInstance(String method)
Get an instance of this class for the given authentication method.
|
String |
getMethod()
Get the name of the authentication method.
|
String |
toString() |
private static Map<String,AuthenticationMethod> methods
public static AuthenticationMethod INTERNAL
public static AuthenticationMethod EXTERNAL
AuthenticationManager
:s are
encouraged to define their own authentication methods.private final String method
private AuthenticationMethod(String method)
public static final AuthenticationMethod getInstance(String method)
method
- The name of the methodpublic String getMethod()