public static class Prelogin.Encryption extends Prelogin.Token
| Modifier and Type | Field and Description |
|---|---|
static byte |
ENCRYPT_NOT_SUP
Encryption not supported.
|
static byte |
ENCRYPT_OFF
Disabled encryption but enabled/required for login with credentials.
|
static byte |
ENCRYPT_ON
Encryption enabled.
|
static byte |
ENCRYPT_REQ
Encryption required.
|
static byte |
TYPE |
| Constructor and Description |
|---|
Encryption(byte encryption)
Create a new
Prelogin.Encryption token. |
| Modifier and Type | Method and Description |
|---|---|
static Prelogin.Encryption |
decode(io.r2dbc.mssql.message.token.Prelogin.TokenDecodingState toDecode)
Decode the
Prelogin.Encryption token. |
void |
encodeStream(io.netty.buffer.ByteBuf buffer) |
byte |
getEncryption() |
boolean |
requiresConnectionSslHandshake()
Returns
true if a SSL handshake is required to enable SSL for the entire connection. |
boolean |
requiresLoginSslHandshake()
Returns
true if a SSL handshake is required to enable SSL for sending the Login packet only. |
boolean |
requiresSslHandshake()
Returns
true if the subsequent communication requires a SSL handshake. |
String |
toString() |
encodeTokenpublic static final byte TYPE
public static final byte ENCRYPT_OFF
public static final byte ENCRYPT_ON
public static final byte ENCRYPT_NOT_SUP
public static final byte ENCRYPT_REQ
public Encryption(byte encryption)
Prelogin.Encryption token.encryption - encryption capability flag.public static Prelogin.Encryption decode(io.r2dbc.mssql.message.token.Prelogin.TokenDecodingState toDecode)
Prelogin.Encryption token.toDecode - the state to decode.Prelogin.Encryption.public byte getEncryption()
public void encodeStream(io.netty.buffer.ByteBuf buffer)
encodeStream in class Prelogin.Tokenpublic boolean requiresSslHandshake()
true if the subsequent communication requires a SSL handshake.true if the subsequent communication requires a SSL handshake.public boolean requiresLoginSslHandshake()
true if a SSL handshake is required to enable SSL for sending the Login packet only.true if a SSL handshake is required to enable SSL for sending the Login packet only.public boolean requiresConnectionSslHandshake()
true if a SSL handshake is required to enable SSL for the entire connection.true if a SSL handshake is required to enable SSL for the entire connection.Copyright © 2023. All rights reserved.