Class SendGssApiAuthPacket
- java.lang.Object
-
- org.mariadb.jdbc.plugin.authentication.addon.SendGssApiAuthPacket
-
- All Implemented Interfaces:
AuthenticationPlugin
public class SendGssApiAuthPacket extends java.lang.Object implements AuthenticationPlugin
GSSAPI plugin
-
-
Field Summary
Fields Modifier and Type Field Description private static GssapiAuthgssapiAuthprivate java.lang.StringoptionServicePrincipalNameprivate byte[]seed
-
Constructor Summary
Constructors Constructor Description SendGssApiAuthPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(java.lang.String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)Initialization.ReadableByteBufprocess(Writer out, Reader in, Context context)Process gssapi plugin authentication.java.lang.Stringtype()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, requireSsl
-
-
-
-
Field Detail
-
gssapiAuth
private static final GssapiAuth gssapiAuth
-
seed
private byte[] seed
-
optionServicePrincipalName
private java.lang.String optionServicePrincipalName
-
-
Method Detail
-
type
public java.lang.String type()
Description copied from interface:AuthenticationPluginAuthentication plugin type.- Specified by:
typein interfaceAuthenticationPlugin- Returns:
- authentication plugin type. ex: mysql_native_password
-
initialize
public void initialize(java.lang.String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)Initialization.- Specified by:
initializein interfaceAuthenticationPlugin- Parameters:
authenticationData- authentication data (password/token)seed- server provided seedconf- Connection string optionshostAddress- host information
-
process
public ReadableByteBuf process(Writer out, Reader in, Context context) throws java.io.IOException, java.sql.SQLException
Process gssapi plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-gssapi/- Specified by:
processin interfaceAuthenticationPlugin- Parameters:
out- out streamin- in streamcontext- context- Returns:
- response packet
- Throws:
java.io.IOException- if socket errorjava.sql.SQLException- if plugin exception
-
-