public class PKCS12Options extends Object implements KeyStoreOptions, TrustStoreOptions, Cloneable
Key or trust store options configuring private key and/or certificates based on PKCS#12 files.<p> 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 accepted certificates.<p>
The store can either be loaded by Vert.x from the filesystem:<p> <pre> HttpServerOptions options = new HttpServerOptions(); options.setKeyStore(new PKCS12Options().setPath("/mykeystore.p12").setPassword("foo")); </pre>
Or directly provided as a buffer:<p>
<pre> Buffer store = vertx.fileSystem().readFileSync("/mykeystore.p12"); options.setKeyStore(new PKCS12Options().setValue(store).setPassword("foo")); </pre>
Constructor and Description |
---|
PKCS12Options() |
PKCS12Options(JsonObject json) |
PKCS12Options(PKCS12Options other) |
Modifier and Type | Method and Description |
---|---|
PKCS12Options |
clone() |
String |
getPassword() |
String |
getPath() |
Buffer |
getValue() |
PKCS12Options |
setPassword(String password) |
PKCS12Options |
setPath(String path) |
PKCS12Options |
setValue(Buffer value) |
public PKCS12Options()
public PKCS12Options(PKCS12Options other)
public PKCS12Options(JsonObject json)
public String getPassword()
public PKCS12Options setPassword(String password)
public String getPath()
public PKCS12Options setPath(String path)
public Buffer getValue()
public PKCS12Options setValue(Buffer value)
public PKCS12Options clone()
clone
in interface KeyStoreOptions
clone
in interface TrustStoreOptions
clone
in class Object
Copyright © 2014. All Rights Reserved.