public final class Sha256PasswordPacket extends Object implements ClientMessage
| Constructor and Description |
|---|
Sha256PasswordPacket(Sequencer sequencer,
CharSequence password,
byte[] seed,
PublicKey publicKey) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
encode(org.mariadb.r2dbc.client.Context context,
io.netty.buffer.ByteBufAllocator allocator) |
static byte[] |
encrypt(PublicKey publicKey,
CharSequence password,
byte[] seed)
Encode password with seed and public key.
|
Sequencer |
getSequencer() |
public Sha256PasswordPacket(Sequencer sequencer, CharSequence password, byte[] seed, PublicKey publicKey)
public static byte[] encrypt(PublicKey publicKey, CharSequence password, byte[] seed) throws io.r2dbc.spi.R2dbcException
publicKey - public keypassword - passwordseed - seedio.r2dbc.spi.R2dbcException - if cannot encode passwordpublic io.netty.buffer.ByteBuf encode(org.mariadb.r2dbc.client.Context context,
io.netty.buffer.ByteBufAllocator allocator)
encode in interface ClientMessagepublic Sequencer getSequencer()
getSequencer in interface ClientMessageCopyright © 2020 MariaDB Corporation Ab. All rights reserved.