public interface AuthenticationPlugin
| Modifier and Type | Interface and Description |
|---|---|
static class |
AuthenticationPlugin.AuthStatus
Status of authentication.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationPlugin.AuthStatus |
authenticate(ClientAuthBlock clientAuthBlock)
Authenticate using the plugin.
|
boolean |
generatesSessionKey() |
byte[] |
getClientData() |
java.lang.String |
getName() |
byte[] |
getSessionKey()
Session key for encryption.
|
boolean |
hasServerData() |
void |
setServerData(byte[] serverData)
Sets data received from the server.
|
java.lang.String getName()
AuthenticationPlugin.AuthStatus authenticate(ClientAuthBlock clientAuthBlock) throws java.sql.SQLException
The data generated by this method should be stored and available for calls from getClientData().
The method authenticate may be called multiple times depending on the state of the authentication (as indicated
by the returned AuthenticationPlugin.AuthStatus.
clientAuthBlock - Client authentication block.java.sql.SQLException - For authentication failuresbyte[] getClientData()
authenticate(ClientAuthBlock).void setServerData(byte[] serverData)
serverData - Server databoolean hasServerData()
true if plugin has non-null and non-empty server databoolean generatesSessionKey()
true if the plugin generates a session keybyte[] getSessionKey()
throws java.sql.SQLException
java.sql.SQLException - If there is currently no session key or the authentication plugin doesn't support session key
generation.Copyright © 2001-2023 Jaybird (Firebird JDBC) team. All rights reserved.