Top Description Fields Methods
org.apache.derby.iapi.jdbc

public Interface AuthenticationService

Known Direct Implementers
org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase
Imports
java.util.Properties, java.sql.SQLException

The AuthenticationService provides a mechanism for authenticating users willing to access JBMS.

There can be different and user defined authentication schemes, as long the expected interface here below is implementing and registered as a module when JBMS starts-up.

Field Summary

Modifier and TypeField and Description
public static final String

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if authentication succeeded
authenticate
(String
The name of the database
databaseName
,
Properties
Connection properties info.
info
)

Authenticate a User inside Derby.

public String

Returns:

the name of the system-wide credentials database
getSystemCredentialsDatabaseName
()

Get the name of the credentials database used to authenticate system-wide operations.

Field Detail

MODULEback to summary
public static final String MODULE

Method Detail

authenticateback to summary
public boolean authenticate(String databaseName, Properties info) throws SQLException

Authenticate a User inside Derby.

Parameters
databaseName:String

The name of the database

info:Properties

Connection properties info.

Returns:boolean

true if authentication succeeded

Exceptions
SQLException:
on error
getSystemCredentialsDatabaseNameback to summary
public String getSystemCredentialsDatabaseName()

Get the name of the credentials database used to authenticate system-wide operations. This returns null for all implementations except NATIVE authentication.

Returns:String

the name of the system-wide credentials database