public class MySQLAuthOptions extends Object
Constructor and Description |
---|
MySQLAuthOptions() |
MySQLAuthOptions(JsonObject json) |
MySQLAuthOptions(MySQLAuthOptions other) |
Modifier and Type | Method and Description |
---|---|
MySQLAuthOptions |
addProperty(String key,
String value)
Add a property for this client, which will be sent to server at the re-authentication.
|
String |
getCharset()
Get the charset for the connection.
|
String |
getCollation()
Get the collation for the connection.
|
String |
getDatabase()
Get the database name for the re-authentication.
|
String |
getPassword()
Get the user password to be used for the authentication.
|
Map<String,String> |
getProperties() |
String |
getServerRsaPublicKeyPath()
Get the path of the server RSA public key.
|
Buffer |
getServerRsaPublicKeyValue()
Get the value of the server RSA public key.
|
String |
getUser()
Get the user account to be used for the authentication.
|
MySQLAuthOptions |
setCharset(String charset)
Set the charset for the connection.
|
MySQLAuthOptions |
setCollation(String collation)
Set the collation for the connection.
|
MySQLAuthOptions |
setDatabase(String database)
Specify the default database for the re-authentication.
|
MySQLAuthOptions |
setPassword(String password)
Specify the user password to be used for the authentication.
|
MySQLAuthOptions |
setProperties(Map<String,String> properties)
Set connection attributes which will be sent to server at the re-authentication.
|
MySQLAuthOptions |
setServerRsaPublicKeyPath(String serverRsaPublicKeyPath)
Set the path of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication.
|
MySQLAuthOptions |
setServerRsaPublicKeyValue(Buffer serverRsaPublicKeyValue)
Set the value of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication.
|
MySQLAuthOptions |
setUser(String user)
Specify the user account to be used for the authentication.
|
JsonObject |
toJson() |
public MySQLAuthOptions()
public MySQLAuthOptions(JsonObject json)
public MySQLAuthOptions(MySQLAuthOptions other)
public String getUser()
public MySQLAuthOptions setUser(String user)
user
- the user to specifypublic String getPassword()
public MySQLAuthOptions setPassword(String password)
password
- the password to specifypublic String getDatabase()
public MySQLAuthOptions setDatabase(String database)
database
- the database name to specifypublic Map<String,String> getProperties()
public MySQLAuthOptions setProperties(Map<String,String> properties)
properties
- the value of properties to specifypublic MySQLAuthOptions addProperty(String key, String value)
key
- the value of property keyvalue
- the value of property valuepublic String getCollation()
public MySQLAuthOptions setCollation(String collation)
collation
- the collation to setpublic String getCharset()
public MySQLAuthOptions setCharset(String charset)
charset
- the charset to setpublic String getServerRsaPublicKeyPath()
public MySQLAuthOptions setServerRsaPublicKeyPath(String serverRsaPublicKeyPath)
serverRsaPublicKeyPath
- the path of the server RSA public keypublic Buffer getServerRsaPublicKeyValue()
public MySQLAuthOptions setServerRsaPublicKeyValue(Buffer serverRsaPublicKeyValue)
serverRsaPublicKeyValue
- the path of the server RSA public keypublic JsonObject toJson()
Copyright © 2022 Eclipse. All rights reserved.