Class SendGssApiAuthPacket
java.lang.Object
org.mariadb.jdbc.plugin.authentication.addon.SendGssApiAuthPacket
- All Implemented Interfaces:
AuthenticationPlugin
GSSAPI plugin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(String authenticationData, byte[] seed, Configuration conf) Initialization.Process gssapi plugin authentication.type()
Authentication plugin type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mariadb.jdbc.plugin.AuthenticationPlugin
hash, isMitMProof
-
Field Details
-
gssapiAuth
-
seed
private byte[] seed -
optionServicePrincipalName
-
-
Constructor Details
-
SendGssApiAuthPacket
public SendGssApiAuthPacket()
-
-
Method Details
-
type
Description copied from interface:AuthenticationPlugin
Authentication plugin type.- Specified by:
type
in interfaceAuthenticationPlugin
- Returns:
- authentication plugin type. ex: mysql_native_password
-
initialize
Initialization.- Specified by:
initialize
in interfaceAuthenticationPlugin
- Parameters:
authenticationData
- authentication data (password/token)seed
- server provided seedconf
- Connection string options
-
process
public ReadableByteBuf process(Writer out, Reader in, Context context) throws IOException, SQLException Process gssapi plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-gssapi/- Specified by:
process
in interfaceAuthenticationPlugin
- Parameters:
out
- out streamin
- in streamcontext
- context- Returns:
- response packet
- Throws:
IOException
- if socket errorSQLException
- if plugin exception
-