| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private DataSource | |
| private String | |
| private long | |
| private String | |
| private String | |
| private String | |
| private String | |
| private Server | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Principal | authenticate(String
The username. username, Object The user credentials, normally a String password. credentials, Request The request to be authenticated. Additional
parameters may be extracted or set on this request as needed
for the authentication mechanism (none required for BASIC and
FORM authentication). request)Overrides org. Implements org. |
| public int | |
| private Connection | |
| public String | |
| public String | |
| public String | |
| public Server | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| private void | initDb()
Lookup the datasource for the jndiName and formulate the necessary sql query strings based on the configured table and column names. |
| public synchronized boolean | Returns: True if the user can act in the role.The user, which must be from this realm user, String roleName)Overrides org. Implements org. |
| protected void | loadConfig()
Overrides org. |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| _cacheMs | back to summary |
|---|---|
| private int _cacheMs | |
| _datasource | back to summary |
|---|---|
| private DataSource _datasource | |
| _jndiName | back to summary |
|---|---|
| private String _jndiName | |
| _lastHashPurge | back to summary |
|---|---|
| private long _lastHashPurge | |
| _roleSql | back to summary |
|---|---|
| private String _roleSql | |
| _roleTableKey | back to summary |
|---|---|
| private String _roleTableKey | |
| _roleTableName | back to summary |
|---|---|
| private String _roleTableName | |
| _roleTableRoleField | back to summary |
|---|---|
| private String _roleTableRoleField | |
| _server | back to summary |
|---|---|
| private Server _server | |
| _userRoleTableName | back to summary |
|---|---|
| private String _userRoleTableName | |
| _userRoleTableRoleKey | back to summary |
|---|---|
| private String _userRoleTableRoleKey | |
| _userRoleTableUserKey | back to summary |
|---|---|
| private String _userRoleTableUserKey | |
| _userSql | back to summary |
|---|---|
| private String _userSql | |
| _userTableKey | back to summary |
|---|---|
| private String _userTableKey | |
| _userTableName | back to summary |
|---|---|
| private String _userTableName | |
| _userTablePasswordField | back to summary |
|---|---|
| private String _userTablePasswordField | |
| _userTableUserField | back to summary |
|---|---|
| private String _userTableUserField | |
| DataSourceUserRealm | back to summary |
|---|---|
| public DataSourceUserRealm(String jndiName) | |
| DataSourceUserRealm | back to summary |
|---|---|
| public DataSourceUserRealm() | |
| authenticate | back to summary |
|---|---|
| public Principal authenticate(String username, Object credentials, Request request) Overrides org. Implements org. Check if user is authentic
| |
| getCacheMs | back to summary |
|---|---|
| public int getCacheMs() | |
| getConnection | back to summary |
|---|---|
| private Connection getConnection() throws NamingException, SQLException | |
| getRoleTableKey | back to summary |
|---|---|
| public String getRoleTableKey() | |
| getRoleTableName | back to summary |
|---|---|
| public String getRoleTableName() | |
| getRoleTableRoleField | back to summary |
|---|---|
| public String getRoleTableRoleField() | |
| getServer | back to summary |
|---|---|
| public Server getServer() | |
| getUserRoleTableName | back to summary |
|---|---|
| public String getUserRoleTableName() | |
| getUserRoleTableRoleKey | back to summary |
|---|---|
| public String getUserRoleTableRoleKey() | |
| getUserRoleTableUserKey | back to summary |
|---|---|
| public String getUserRoleTableUserKey() | |
| getUserTableKey | back to summary |
|---|---|
| public String getUserTableKey() | |
| getUserTableName | back to summary |
|---|---|
| public String getUserTableName() | |
| getUserTablePasswordField | back to summary |
|---|---|
| public String getUserTablePasswordField() | |
| getUserTableUserField | back to summary |
|---|---|
| public String getUserTableUserField() | |
| initDb | back to summary |
|---|---|
| private void initDb() throws NamingException Lookup the datasource for the jndiName and formulate the necessary sql query strings based on the configured table and column names. | |
| isUserInRole | back to summary |
|---|---|
| public synchronized boolean isUserInRole(Principal user, String roleName) Overrides org. Implements org. Check if a user is in a role.
| |
| loadConfig | back to summary |
|---|---|
| protected void loadConfig() throws IOException Overrides org. Load database configuration from properties file. This is really here to satisfy the HashUserRealm interface. Setters should be used instead. | |
| loadUser | back to summary |
|---|---|
| private void loadUser(String user) Load user's info from database. | |
| setCacheMs | back to summary |
|---|---|
| public void setCacheMs(int ms) | |
| setRoleTableKey | back to summary |
|---|---|
| public void setRoleTableKey(String tableKey) | |
| setRoleTableName | back to summary |
|---|---|
| public void setRoleTableName(String tableName) | |
| setRoleTableRoleField | back to summary |
|---|---|
| public void setRoleTableRoleField(String tableRoleField) | |
| setServer | back to summary |
|---|---|
| public void setServer(Server server) | |
| setUserRoleTableName | back to summary |
|---|---|
| public void setUserRoleTableName(String roleTableName) | |
| setUserRoleTableRoleKey | back to summary |
|---|---|
| public void setUserRoleTableRoleKey(String roleTableRoleKey) | |
| setUserRoleTableUserKey | back to summary |
|---|---|
| public void setUserRoleTableUserKey(String roleTableUserKey) | |
| setUserTableKey | back to summary |
|---|---|
| public void setUserTableKey(String tableKey) | |
| setUserTableName | back to summary |
|---|---|
| public void setUserTableName(String name) | |
| setUserTablePasswordField | back to summary |
|---|---|
| public void setUserTablePasswordField(String tablePasswordField) | |
| setUserTableUserField | back to summary |
|---|---|
| public void setUserTableUserField(String tableUserField) | |