| Modifier and Type | Field and Description |
|---|---|
| private static Map | |
| private static FrameworkLogger | |
| private static AuthBeanMultiplexer |
| Access | Constructor and Description |
|---|---|
| private | AuthBeanMultiplexer()
This sole constructor is purposefully private, so users or frameworks that want to work with instances will be forced to use the singleton instead of creating useless extra instance copies. |
| Modifier and Type | Method and Description |
|---|---|
| public static Array | Returns: Null or java.sql.Array to indicate successful authentication according to the contract for HyperSQL authentication functions.String database, String String user, String String password)HyperSQL Java Function Method. |
| public void | |
| public static AuthBeanMultiplexer | |
| protected static String | |
| public void | setAuthFunctionBean(Connection
Connection c, AuthFunctionBean AuthFunctionBean authFunctionBean)Exactly the same as setAuthFunctionBeans(String, List) other than taking an open Connection to identify the database. |
| public void | setAuthFunctionBean(String
String dbName, AuthFunctionBean AuthFunctionBean authFunctionBean)This is not an "adder" function, but a "setter" function for the specified dbName , so do not use this to add to a database's FunctionBeans, but to assign ths single given AuthFunctionBean as the specified database's authenticator. |
| public void | setAuthFunctionBeans(Map<String, List<AuthFunctionBean>>
Map authFunctionBeanMap)Primary purpose of this class is to manage this static map. |
| public void | setAuthFunctionBeans(Connection
An open Connection to the desired database. c, List<AuthFunctionBean> List authFunctionBeans)Wrapper for |
| public void | setAuthFunctionBeans(String
String dbName, List<AuthFunctionBean> List authFunctionBeans)This is not an "adder" function, but a "setter" function for the specified dbName , so do not use this to add to a database's FunctionBeans, but to assign the entire list for that database. |
| beans | back to summary |
|---|---|
| private static Map<String, List<AuthFunctionBean>> beans | |
| logger | back to summary |
|---|---|
| private static FrameworkLogger logger | |
| singleton | back to summary |
|---|---|
| private static AuthBeanMultiplexer singleton | |
| AuthBeanMultiplexer | back to summary |
|---|---|
| private AuthBeanMultiplexer() This sole constructor is purposefully private, so users or frameworks that want to work with instances will be forced to use the singleton instead of creating useless extra instance copies. | |
| authenticate | back to summary |
|---|---|
| public static Array authenticate(String database, String user, String password) throws Exception HyperSQL Java Function Method. Registered AuthFunctionBeans matching the specified database and password will be tried in order.
| |
| clear | back to summary |
|---|---|
| public void clear() Clear the set of AuthFunctionBeans | |
| getSingleton | back to summary |
|---|---|
| public static AuthBeanMultiplexer getSingleton() | |
| getUniqueNameFor | back to summary |
|---|---|
| protected static String getUniqueNameFor(Connection c) throws SQLException | |
| setAuthFunctionBean | back to summary |
|---|---|
| public void setAuthFunctionBean(Connection c, AuthFunctionBean authFunctionBean) throws SQLException Exactly the same as setAuthFunctionBeans(String, List) other than taking an open Connection to identify the database.
| |
| setAuthFunctionBean | back to summary |
|---|---|
| public void setAuthFunctionBean(String dbName, AuthFunctionBean authFunctionBean) This is not an "adder" function, but a "setter" function for the specified dbName , so do not use this to add to a database's FunctionBeans, but to assign ths single given AuthFunctionBean as the specified database's authenticator. To set up multiple authenticators for a single database for redundancy purposes, use the method setAuthFunctionBeans(String, List) instead.
| |
| setAuthFunctionBeans | back to summary |
|---|---|
| public void setAuthFunctionBeans(Map<String, List<AuthFunctionBean>> authFunctionBeanMap) Primary purpose of this class is to manage this static map. From dbNames to ordered-lists-of-AuthFunctionBeans. This is not an "adder" function, but a "setter" function, so do not use this to add to a partial set, but to assign the entire set. The given entries are copied, to limit side-effects and concurrency issues.
| |
| setAuthFunctionBeans | back to summary |
|---|---|
| public void setAuthFunctionBeans(Connection c, List<AuthFunctionBean> authFunctionBeans) throws SQLException Wrapper for
| |
| setAuthFunctionBeans | back to summary |
|---|---|
| public void setAuthFunctionBeans(String dbName, List<AuthFunctionBean> authFunctionBeans) This is not an "adder" function, but a "setter" function for the specified dbName , so do not use this to add to a database's FunctionBeans, but to assign the entire list for that database. The given entries are copied, to limit side-effects and concurrency issues. Use this method instead of setAuthFunctionBean(String, AuthFunctionBean) in order to set up multiple authenticators for a single database for redundancy purposes.
| |