PfxOptions

Key or trust store options configuring private key and/or certificates based on PKCS#12 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 accepted certificates.

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

HttpServerOptions options = new HttpServerOptions();
options.setPfxKeyCertOptions(new PfxOptions().setPath("/mykeystore.p12").setPassword("foo"));
Or directly provided as a buffer:

Buffer store = vertx.fileSystem().readFileSync("/mykeystore.p12");
options.setPfxKeyCertOptions(new PfxOptions().setValue(store).setPassword("foo"));
package

Default

Methods

PfxOptions constructor

__construct( $pfxOptions = null) 

Arguments

$pfxOptions

mixed | null

getPassword

getPassword() : string

Response

string

getPath

getPath() : string

Response

string

getValue

getValue() : \io\vertx\jphp\core\buffer\Buffer

setPassword

setPassword( $password) : $this

Arguments

$password

string

Response

$this

setPath

setPath( $path) : $this

Arguments

$path

string

Response

$this

setValue

setValue( $value) : $this

Arguments

$value

Buffer

Response

$this