Package org.mariadb.jdbc.plugin
Interface AuthenticationPlugin
- All Known Implementing Classes:
CachingSha2PasswordPlugin
,ClearPasswordPlugin
,Ed25519PasswordPlugin
,NativePasswordPlugin
,SendGssApiAuthPacket
,SendPamAuthPacket
public interface AuthenticationPlugin
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(String authenticationData, byte[] seed, Configuration conf) Plugin initialization.process
(PacketWriter encoder, PacketReader decoder, Context context) Process plugin authentication.type()
Authentication plugin type.
-
Method Details
-
type
String type()Authentication plugin type.- Returns:
- authentication plugin type. ex: mysql_native_password
-
initialize
Plugin initialization.- Parameters:
authenticationData
- authentication data (password/token)seed
- server provided seedconf
- Connection options
-
process
ReadableByteBuf process(PacketWriter encoder, PacketReader decoder, Context context) throws IOException, SQLException Process plugin authentication.- Parameters:
encoder
- out streamdecoder
- in streamcontext
- connection context- Returns:
- response packet
- Throws:
IOException
- if socket errorSQLException
- if plugin exception
-