Top Description Methods
org.hsqldb.auth

public Interface AuthFunctionBean

Known Direct Implementers
org.hsqldb.auth.HsqldbSlaveAuthBean, org.hsqldb.auth.JaasAuthBean, org.hsqldb.auth.LdapAuthBean

AuthFunctionBeans are NOT directly usable as HyperSQL Authentication Function methods, they are POJO beans to be managed by AuthBeanMultiplexer (which does have a real HyperSQL Authentication Function static method).
Author
Blaine Simpson (blaine dot simpson at admc dot com)
Since
2.0.1
See Also
{@link AuthBeanMultiplexer} for how these beans are used.

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

null or String[] according to the contract of HyperSQL authentication function contract, except that the role/schema list is returned as a String[] instead of a java.sql.Array.
authenticate
(String
String
userName
,
String
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.

Method Detail

authenticateback to summary
public String[] authenticate(String userName, String password) throws Exception

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. A return value of String[0] is different from returning null, and means that the user should not be granted any roles.

Parameters
userName:String

String

password:String

String

Returns:String[]

null or String[] according to the contract of HyperSQL authentication function contract, except that the role/schema list is returned as a String[] instead of a java.sql.Array.

Exceptions
Exception:
If user should not be allowed access to the specified database. Other registered AuthFunctionBeans will not be attempted.
RuntimeException:
Upon system problem. The exception will be logged to the HyperSQL application logger and other registered AuthFunctionBeans (if any) will be attempted.