|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents information about the authentication implemtentation.
| Field Summary | |
static int |
METHOD_ANONYMOUS
Requests an 'anonymous' cloud, with a user with no credentials. |
static int |
METHOD_ASIS
Use the authenticated user which is stored in the session, or if no such user can be found, try to supply 'anonymous'. |
static int |
METHOD_DEFAULT
|
static int |
METHOD_DELEGATE
Delegates authentication completely to the authentication implementation. |
static int |
METHOD_HTTP
Use Http 'Basic' authentication. |
static int |
METHOD_LOGINPAGE
Use a dedicated 'login' jsp, to log in. |
static int |
METHOD_LOGOUT
Remove the authenticated user from the session, and otherwise invalidate the user if necessary (e.g. |
static int |
METHOD_PAGELOGON
Logon with given credentials (only Strings), and don't store this any where (except for the current 'page'). |
static int |
METHOD_SESSIONDELEGATE
Delegates authentication comletely to the authentication implementation METHOD_DELEGATE, but stores the authenticated in the session then. |
static int |
METHOD_SESSIONLOGON
Logon with given credentials (only Strings), and don't store this in the session. |
static int |
METHOD_UNSET
|
static Parameter |
PARAMETER_AUTHENTICATE
|
static Parameter |
PARAMETER_LOGOUT
|
static Parameter |
PARAMETER_PASSWORD
|
static Parameter |
PARAMETER_RANK
|
static Parameter |
PARAMETER_SESSIONNAME
|
static Parameter |
PARAMETER_USERNAME
Common parameters for logon-info |
static Parameter |
PARAMETER_USERNAMES
|
static String |
STRINGS
|
| Method Summary | |
Parameters |
createParameters(String application)
For a given authentication type returns a parameters object to fill with credentials. |
int |
getDefaultMethod(String protocol)
The security implementation can override a default method. |
int |
getMethod(String m)
Several 'methods' to authenticate could be available. |
String[] |
getTypes()
Gives all availabe authentication types. |
String[] |
getTypes(int method)
For a given method, returns the available 'applications'. |
boolean |
isValid(UserContext userContext)
The method returns wether the UserContext has become invalid for some reason (change in security config?) |
| Field Detail |
public static final int METHOD_UNSET
public static final int METHOD_ANONYMOUS
public static final int METHOD_DELEGATE
public static final int METHOD_PAGELOGON
public static final int METHOD_HTTP
public static final int METHOD_ASIS
public static final int METHOD_LOGOUT
public static final int METHOD_LOGINPAGE
public static final int METHOD_SESSIONDELEGATE
METHOD_DELEGATE, but stores the authenticated in the session then. A second request with
this method will simply use the session.
public static final int METHOD_SESSIONLOGON
public static final int METHOD_DEFAULT
public static final String STRINGS
public static final Parameter PARAMETER_USERNAME
public static final Parameter PARAMETER_PASSWORD
public static final Parameter PARAMETER_USERNAMES
public static final Parameter PARAMETER_RANK
public static final Parameter PARAMETER_SESSIONNAME
public static final Parameter PARAMETER_LOGOUT
public static final Parameter PARAMETER_AUTHENTICATE
| Method Detail |
public boolean isValid(UserContext userContext)
throws SecurityException
userContext - The UserContext of which we want to know the rights
true when valid, otherwise false
SecurityException - When something strange happenedpublic int getMethod(String m)
getTypes(int).
m - A String like 'http', 'anonymous', 'loginpage', or 'delegatesession'.
public int getDefaultMethod(String protocol)
Authentication for the 'http' protocol is HTTP
(which means that basic authentication of the http protocol can be used), but may not be
feasible for every implementation (it is e.g. useless if the security implementation does not have
name/password authentication).
protocol - For which protocol or null, which means 'HTTP/1.1'.public String[] getTypes()
public String[] getTypes(int method)
public Parameters createParameters(String application)
Parameters.toMap() can be used as the second argument
for Authentication.login(java.lang.String, java.util.Map, java.lang.Object[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||