Key or trust store options configuring private key and/or certificates based on Java Keystore files.

When used as a key store, it should point to a store containing a private key and its certificate. When used as a trust store, it should point to a store containing a list of trusted certificates.

The store can either be loaded by Vert.x from the filesystem:

 HttpServerOptions options = HttpServerOptions.httpServerOptions();
 options.setKeyStore(new JKSOptions().setPath("/mykeystore.jks").setPassword("foo"));
 

Or directly provided as a buffer:

 Buffer store = vertx.fileSystem().readFileSync("/mykeystore.jks");
 options.setKeyStore(new JKSOptions().setValue(store).setPassword("foo"));
 
  • JksOptions
    • BaseDataObject
    • Basic
      • Identifiable
      • Object
        • Anything

no subtypes hierarchy

Initializer
JksOptions(String? password = null, String? path = null)
Parameters:
  • password = null

    Set the password for the key store

  • path = null

    Set the path to the key store

Attributes
passwordshared String? password

Set the password for the key store

pathshared String? path

Set the path to the key store

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
toJsonshared actual default JsonObject toJson()
Refines BaseDataObject.toJson
Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: BaseDataObject
toJson