public final class ClientAuthBlock
extends java.lang.Object
This is similar to the ClntAuthBlock in Firebird. For ease of understanding, and correlating with the
Firebird implementation, this uses the same (or very similar) terms and structure (if it makes sense).
| Constructor and Description |
|---|
ClientAuthBlock(IAttachProperties<?> attachProperties) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationPlugin.AuthStatus |
authenticate() |
void |
authenticateStep0() |
void |
authFillParametersBlock(ConnectionParameterBuffer pb) |
byte[] |
getClientData() |
java.lang.String |
getCurrentPluginName() |
java.lang.String |
getLogin() |
java.lang.String |
getNormalizedLogin() |
java.lang.String |
getPassword() |
java.lang.String |
getPluginNames() |
byte[] |
getSessionKey() |
boolean |
hasPlugin() |
boolean |
isAuthComplete() |
boolean |
isFirstTime() |
void |
resetClient(byte[] serverInfo) |
void |
setAuthComplete(boolean authComplete) |
void |
setFirstTime(boolean firstTime) |
void |
setServerData(byte[] serverData) |
boolean |
supportsEncryption()
TODO Need to handle this differently
|
boolean |
switchPlugin(java.lang.String pluginName) |
void |
writePluginDataTo(java.io.OutputStream userId) |
public ClientAuthBlock(IAttachProperties<?> attachProperties) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getLogin()
public java.lang.String getNormalizedLogin()
public java.lang.String getPassword()
public boolean isAuthComplete()
public void setAuthComplete(boolean authComplete)
public java.lang.String getCurrentPluginName()
public java.lang.String getPluginNames()
public byte[] getClientData()
public void setFirstTime(boolean firstTime)
public boolean isFirstTime()
public void authenticateStep0()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void resetClient(byte[] serverInfo)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setServerData(byte[] serverData)
public void writePluginDataTo(java.io.OutputStream userId)
throws java.io.IOException
java.io.IOExceptionpublic boolean switchPlugin(java.lang.String pluginName)
public boolean hasPlugin()
public AuthenticationPlugin.AuthStatus authenticate() throws java.sql.SQLException
java.sql.SQLExceptionpublic void authFillParametersBlock(ConnectionParameterBuffer pb) throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean supportsEncryption()
throws java.sql.SQLException
true if the encryption is supportedjava.sql.SQLException - If it is impossible to determine if encryption is supported (eg there is no current auth plugin)public byte[] getSessionKey()
throws java.sql.SQLException
java.sql.SQLException - If a session key cannot be providedCopyright © 2001-2023 Jaybird (Firebird JDBC/JCA) team. All rights reserved.