public class HsqldbSlaveAuthBean extends java.lang.Object implements AuthFunctionBean
AuthFunctionBean
Constructor and Description |
---|
HsqldbSlaveAuthBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
authenticate(java.lang.String userName,
java.lang.String password)
Return a list of authorized roles or null to indicate that the
implementation does not intend to produce a specific role list but only
to indicate whether to allow access or not.
|
void |
init() |
void |
setDelegateRolesSchema(boolean doDelegateRolesSchema)
Defaults to true.
|
void |
setMasterJdbcUrl(java.lang.String masterJdbcUrl) |
void |
setValidationPassword(java.lang.String validationPassword)
Use this method and setValidationUser if you want access to the
master database to be verified upon instance initialization.
|
void |
setValidationUser(java.lang.String validationUser)
Use this method and setValidationPassword if you want access to the
master database to be verified upon instance initialization.
|
public void setValidationUser(java.lang.String validationUser)
public void setValidationPassword(java.lang.String validationPassword)
public void setMasterJdbcUrl(java.lang.String masterJdbcUrl)
public void setDelegateRolesSchema(boolean doDelegateRolesSchema)
public void init() throws java.sql.SQLException
java.lang.IllegalStateException
- if any required setting has not been set.java.sql.SQLException
- if properties 'validationUser' and
'validationPassword' have been set, but we fail to connect to the
master database.public java.lang.String[] authenticate(java.lang.String userName, java.lang.String password) throws org.hsqldb.auth.DenyException
AuthFunctionBean
authenticate
in interface AuthFunctionBean
org.hsqldb.auth.DenyException
AuthFunctionBean.authenticate(String, String)
Copyright �� 2001 - 2010 HSQL Development Group.