public class AuthenticationMethod
extends java.lang.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 special-case internal login used by job queue, etc.
|
private java.lang.String |
method |
private static java.util.Map<java.lang.String,AuthenticationMethod> |
methods |
static AuthenticationMethod |
PASSWORD
This is the regular internal username/password verification authentication method.
|
Modifier | Constructor and Description |
---|---|
private |
AuthenticationMethod(java.lang.String method) |
Modifier and Type | Method and Description |
---|---|
static AuthenticationMethod |
getInstance(java.lang.String method)
Get an instance of this class for the given authentication method.
|
java.lang.String |
getMethod()
Get the name of the authentication method.
|
java.lang.String |
toString() |
private static java.util.Map<java.lang.String,AuthenticationMethod> methods
public static AuthenticationMethod INTERNAL
public static AuthenticationMethod PASSWORD
public static AuthenticationMethod EXTERNAL
AuthenticationManager
:s are
encouraged to define their own authentication methods.private final java.lang.String method
public static final AuthenticationMethod getInstance(java.lang.String method)
method
- The name of the methodpublic java.lang.String getMethod()
public java.lang.String toString()
toString
in class java.lang.Object