Class JksOptions
java.lang.Object
io.vertx.core.net.KeyStoreOptionsBase
io.vertx.core.net.JksOptions
- All Implemented Interfaces:
KeyCertOptions, TrustOptions
Key or trust store options configuring private key and/or certificates based on Java Keystore files.
- Author:
- Julien Viet, Tim Fox
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorJksOptions(JsonObject json) Create options from JSONJksOptions(JksOptions other) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()Set the alias for a server certificate when the keystore has more than one.setAliasPassword(String aliasPassword) Set the password for the server certificate designated byKeyStoreOptionsBase.getAlias().setPassword(String password) Set the password for the key storeSet the path to the key storeSet the key store as a buffertoJson()Convert to JSONMethods inherited from class KeyStoreOptionsBase
equals, getAlias, getAliasPassword, getHelper, getKeyManagerFactory, getPassword, getPath, getProvider, getTrustManagerFactory, getType, getValue, hashCode, keyManagerFactoryMapper, loadKeyStore, setProvider, setType, trustManagerMapper
-
Constructor Details
-
JksOptions
public JksOptions()Default constructor -
JksOptions
-
JksOptions
-
-
Method Details
-
setPassword
Description copied from class:KeyStoreOptionsBaseSet the password for the key store- Overrides:
setPasswordin classKeyStoreOptionsBase- Parameters:
password- the password- Returns:
- a reference to this, so the API can be used fluently
-
setPath
Description copied from class:KeyStoreOptionsBaseSet the path to the key store- Overrides:
setPathin classKeyStoreOptionsBase- Parameters:
path- the path- Returns:
- a reference to this, so the API can be used fluently
-
setValue
Set the key store as a buffer- Overrides:
setValuein classKeyStoreOptionsBase- Parameters:
value- the key store as a buffer- Returns:
- a reference to this, so the API can be used fluently
-
setAlias
Description copied from class:KeyStoreOptionsBaseSet the alias for a server certificate when the keystore has more than one.- Overrides:
setAliasin classKeyStoreOptionsBase- Returns:
- a reference to this, so the API can be used fluently
-
setAliasPassword
Description copied from class:KeyStoreOptionsBaseSet the password for the server certificate designated byKeyStoreOptionsBase.getAlias().- Overrides:
setAliasPasswordin classKeyStoreOptionsBase- Returns:
- a reference to this, so the API can be used fluently
-
copy
- Specified by:
copyin interfaceKeyCertOptions- Specified by:
copyin interfaceTrustOptions- Specified by:
copyin classKeyStoreOptionsBase- Returns:
- a copy of these options
-
toJson
-