|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hsqldb.auth.HsqldbSlaveAuthBean
public class HsqldbSlaveAuthBean
Delegates authentication decisions, and optionally determination of user roles and schema, to a different HyperSQL catalog, which may be in the same JVM or remote. For now, at least, this class uses DriverManager to make the ephemeral database connections.
AuthFunctionBean| Constructor Summary | |
|---|---|
HsqldbSlaveAuthBean()
|
|
| Method Summary | |
|---|---|
String[] |
authenticate(String userName,
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(String masterJdbcUrl)
|
void |
setValidationPassword(String validationPassword)
Use this method and setValidationUser if you want access to the master database to be verified upon instance initialization. |
void |
setValidationUser(String validationUser)
Use this method and setValidationPassword if you want access to the master database to be verified upon instance initialization. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HsqldbSlaveAuthBean()
| Method Detail |
|---|
public void setValidationUser(String validationUser)
public void setValidationPassword(String validationPassword)
public void setMasterJdbcUrl(String masterJdbcUrl)
public void setDelegateRolesSchema(boolean doDelegateRolesSchema)
public void init()
throws SQLException
IllegalStateException - if any required setting has not been set.
SQLException - if properties 'validationUser' and
'validationPassword' have been set, but we fail to connect to the
master database.
public String[] authenticate(String userName,
String password)
throws org.hsqldb.auth.DenyException
AuthFunctionBean
authenticate in interface AuthFunctionBeanorg.hsqldb.auth.DenyExceptionAuthFunctionBean.authenticate(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||