Constructors
constructor
-
-
Parameters
Methods
getAlias
-
Returns string
getAliasPassword
- getAliasPassword(): string
-
Returns string
getPassword
-
Returns string
getPath
-
Returns string
getProvider
-
Returns string
getType
-
Returns string
getValue
-
setAlias
-
Parameters
setAliasPassword
-
Parameters
setPassword
-
Parameters
setPath
-
Parameters
setProvider
-
Parameters
setType
-
Parameters
setValue
-
Parameters
toJson
-
Returns {}
Key or trust store options configuring private key and/or certificates based on
KeyStore.The store can either be loaded by Vert.x from the filesystem:
HttpServerOptions options = HttpServerOptions.httpServerOptions(); options.setKeyCertOptions(new KeyStoreOptions().setType("JKS").setPath("/mykeystore.jks").setPassword("foo"));Or directly provided as a buffer:
Buffer store = vertx.fileSystem().readFileBlocking("/mykeystore.jks"); options.setKeyCertOptions(new KeyStoreOptions().setType("JKS").setValue(store).setPassword("foo"));You can also use specific subclasses JksOptions or PfxOptions that will set the KeyStoreOptions for you:
HttpServerOptions options = HttpServerOptions.httpServerOptions(); options.setKeyCertOptions(new JksOptions().setPath("/mykeystore.jks").setPassword("foo"));