public interface AuthenticationPlugin
Modifier and Type | Method and Description |
---|---|
void |
initialize(java.lang.String authenticationData,
byte[] seed,
Options options)
Plugin initialization.
|
default boolean |
mustUseSsl()
Indicate if use of this plugins need SSL enabled.
|
java.lang.String |
name()
Authentication plugin name.
|
Buffer |
process(PacketOutputStream out,
PacketInputStream in,
java.util.concurrent.atomic.AtomicInteger sequence)
Process plugin authentication.
|
java.lang.String |
type()
Authentication plugin type.
|
java.lang.String name()
java.lang.String type()
default boolean mustUseSsl()
void initialize(java.lang.String authenticationData, byte[] seed, Options options)
authenticationData
- authentication data (password/token)seed
- server provided seedoptions
- Connection string optionsBuffer process(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence) throws java.io.IOException, java.sql.SQLException
out
- out streamin
- in streamsequence
- packet sequencejava.io.IOException
- if socket errorjava.sql.SQLException
- if plugin exception