Interface AuthenticationPlugin
- All Known Implementing Classes:
CachingSha2PasswordPlugin, ClearPasswordPlugin, Ed25519PasswordPlugin, NativePasswordPlugin, ParsecPasswordPlugin, SendGssApiAuthPacket, SendPamAuthPacket
public interface AuthenticationPlugin
Authentication plugin descriptor
-
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]hash(Credential credential) Return Hashdefault booleanCan plugins are MitM-proof, permitting returning HASHorg.mariadb.jdbc.client.ReadableByteBufprocess(Writer encoder, Reader decoder, org.mariadb.jdbc.client.Context context, boolean sslFingerPrintValidation) Process plugin authentication.
-
Method Details
-
process
org.mariadb.jdbc.client.ReadableByteBuf process(Writer encoder, Reader decoder, org.mariadb.jdbc.client.Context context, boolean sslFingerPrintValidation) throws IOException, SQLException Process plugin authentication.- Parameters:
encoder- out streamdecoder- in streamcontext- connection contextsslFingerPrintValidation- true if SSL certificate fingerprint validation is enabled- Returns:
- response packet
- Throws:
IOException- if socket errorSQLException- if plugin exception
-
isMitMProof
default boolean isMitMProof()Can plugins are MitM-proof, permitting returning HASH- Returns:
- true if permitted
-
hash
Return Hash- Parameters:
credential- credential- Returns:
- hash
-