public class LegacyAuthenticationPlugin extends java.lang.Object implements AuthenticationPlugin
AuthenticationPlugin.AuthStatus| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LEGACY_AUTH_NAME |
static java.lang.String |
LEGACY_PASSWORD_SALT |
| Constructor and Description |
|---|
LegacyAuthenticationPlugin() |
| 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 |
toString() |
public static final java.lang.String LEGACY_AUTH_NAME
public static final java.lang.String LEGACY_PASSWORD_SALT
public java.lang.String getName()
getName in interface AuthenticationPluginpublic AuthenticationPlugin.AuthStatus authenticate(ClientAuthBlock clientAuthBlock) throws java.sql.SQLException
AuthenticationPlugin
The data generated by this method should be stored and available for calls from AuthenticationPlugin.getClientData().
The method authenticate may be called multiple times depending on the state of the authentication (as indicated
by the returned AuthenticationPlugin.AuthStatus.
authenticate in interface AuthenticationPluginclientAuthBlock - Client authentication block.java.sql.SQLException - For authentication failurespublic byte[] getClientData()
getClientData in interface AuthenticationPluginAuthenticationPlugin.authenticate(ClientAuthBlock).public void setServerData(byte[] serverData)
AuthenticationPluginsetServerData in interface AuthenticationPluginserverData - Server datapublic boolean hasServerData()
hasServerData in interface AuthenticationPlugintrue if plugin has non-null and non-empty server datapublic boolean generatesSessionKey()
generatesSessionKey in interface AuthenticationPlugintrue if the plugin generates a session keypublic byte[] getSessionKey()
throws java.sql.SQLException
AuthenticationPlugingetSessionKey in interface AuthenticationPluginjava.sql.SQLException - If there is currently no session key or the authentication plugin doesn't support session key
generation.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2018 Jaybird (Firebird JDBC/JCA) team. All rights reserved.