| java.lang.Object contrib.winstone.JDBCRealm
JDBCRealm | public class JDBCRealm implements AuthenticationRealm(Code) | | A JDBC authentication realm to be used with Winstone Servelet container.
--JDBCRealm.url and --JDBCRealm.user are required.
author: Rui Damas |
ARGS_DRIVERARGS_URLARGS_USERARGS_PASSWORD | public static String ARGS_DRIVERARGS_URLARGS_USERARGS_PASSWORD(Code) | | |
ARGS_USER_RELARGS_USER_NAME_COLARGS_USER_CRED_COLARGS_USER_ROLE_RELARGS_ROLE_NAME_COL | public static String ARGS_USER_RELARGS_USER_NAME_COLARGS_USER_CRED_COLARGS_USER_ROLE_RELARGS_ROLE_NAME_COL(Code) | | |
DEFAULT_USER_RELDEFAULT_USER_NAME_COLDEFAULT_USER_CRED_COLDEFAULT_USER_ROLE_RELDEFAULT_ROLE_NAME_COL | public static String DEFAULT_USER_RELDEFAULT_USER_NAME_COLDEFAULT_USER_CRED_COLDEFAULT_USER_ROLE_RELDEFAULT_ROLE_NAME_COL(Code) | | |
JDBCRealm | public JDBCRealm(Set rolesAllowed, Map<String, String> args)(Code) | | Creates a new instance of JDBCAuthenticationRealm.
If a "JDBCRealm.driver" exists in the args
map an atempt to load the class will be made and
a success message will be printed to System.out ,
or, if the class fails to load,
an error message will be printed to System.err .
|
authenticateByUsernamePassword | public AuthenticationPrincipal authenticateByUsernamePassword(String userName, String password)(Code) | | Authenticate the user - do we know them ? Return a distinct id once we
know them.
getPrincipal(userName, password, true); |
|
|