|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.identity.thrift.authentication.internal.persistance.ThriftAuthenticationJDBCPersistenceManager
public class ThriftAuthenticationJDBCPersistenceManager
This class is used for handling authentication meta data persistence in the Thrift Authentication JDBC Store. During the server start-up, it checks whether the database is created, if not it creates one. It reads the data source properties from the thrift-authentication.xml. This is implemented as a singleton. An instance of this class can be obtained through ThriftAuthenticationJDBCPersistenceManager.getInstance() method.
| Method Summary | |
|---|---|
Connection |
getDBConnection()
Returns an database connection for Identity data source. |
static ThriftAuthenticationJDBCPersistenceManager |
getInstance()
Get an instance of the ThriftAuthenticationJDBCPersistenceManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ThriftAuthenticationJDBCPersistenceManager getInstance()
throws AuthenticationException
AuthenticationException - Error when reading the data source configurations
public Connection getDBConnection()
throws AuthenticationException
AuthenticationException - Exception occurred when getting the data source.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||