Class MySQLAuthOptions
java.lang.Object
io.vertx.mysqlclient.MySQLAuthOptions
Authentication options for MySQL authentication which can be used for CHANGE_USER command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProperty(String key, String value) Add a property for this client, which will be sent to server at the re-authentication.Get the charset for the connection.Get the collation for the connection.Get the database name for the re-authentication.Get the user password to be used for the authentication.Get the path of the server RSA public key.Get the value of the server RSA public key.getUser()Get the user account to be used for the authentication.setCharset(String charset) Set the charset for the connection.setCollation(String collation) Set the collation for the connection.setDatabase(String database) Specify the default database for the re-authentication.setPassword(String password) Specify the user password to be used for the authentication.setProperties(Map<String, String> properties) Set connection attributes which will be sent to server at the re-authentication.setServerRsaPublicKeyPath(String serverRsaPublicKeyPath) Set the path of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication.setServerRsaPublicKeyValue(Buffer serverRsaPublicKeyValue) Set the value of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication.Specify the user account to be used for the authentication.toJson()
-
Constructor Details
-
MySQLAuthOptions
public MySQLAuthOptions() -
MySQLAuthOptions
-
MySQLAuthOptions
-
-
Method Details
-
getUser
-
setUser
Specify the user account to be used for the authentication.- Parameters:
user- the user to specify- Returns:
- a reference to this, so the API can be used fluently
-
getPassword
Get the user password to be used for the authentication.- Returns:
- the password
-
setPassword
Specify the user password to be used for the authentication.- Parameters:
password- the password to specify- Returns:
- a reference to this, so the API can be used fluently
-
getDatabase
Get the database name for the re-authentication.- Returns:
- the database name
-
setDatabase
Specify the default database for the re-authentication.- Parameters:
database- the database name to specify- Returns:
- a reference to this, so the API can be used fluently
-
getProperties
-
setProperties
Set connection attributes which will be sent to server at the re-authentication.- Parameters:
properties- the value of properties to specify- Returns:
- a reference to this, so the API can be used fluently
-
addProperty
Add a property for this client, which will be sent to server at the re-authentication.- Parameters:
key- the value of property keyvalue- the value of property value- Returns:
- a reference to this, so the API can be used fluently
-
getCollation
-
setCollation
Set the collation for the connection.- Parameters:
collation- the collation to set- Returns:
- a reference to this, so the API can be used fluently
-
getCharset
-
setCharset
Set the charset for the connection.- Parameters:
charset- the charset to set- Returns:
- a reference to this, so the API can be used fluently
-
getServerRsaPublicKeyPath
Get the path of the server RSA public key.- Returns:
- a reference to this, so the API can be used fluently
-
setServerRsaPublicKeyPath
Set the path of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication.- Parameters:
serverRsaPublicKeyPath- the path of the server RSA public key- Returns:
- a reference to this, so the API can be used fluently
-
getServerRsaPublicKeyValue
Get the value of the server RSA public key.- Returns:
- a reference to this, so the API can be used fluently
-
setServerRsaPublicKeyValue
Set the value of server RSA public key which is mostly used for encrypting password under insecure connections when performing authentication.- Parameters:
serverRsaPublicKeyValue- the path of the server RSA public key- Returns:
- a reference to this, so the API can be used fluently
-
toJson
-