Package io.vertx.core.net
Class PfxOptions
- java.lang.Object
- 
- io.vertx.core.net.KeyStoreOptionsBase
- 
- io.vertx.core.net.PfxOptions
 
 
- 
- All Implemented Interfaces:
- KeyCertOptions,- TrustOptions
 
 public class PfxOptions extends KeyStoreOptionsBase Key or trust store options configuring private key and/or certificates based on PKCS#12 files.- Author:
- Julien Viet, Tim Fox
 
- 
- 
Constructor SummaryConstructors Constructor Description PfxOptions()Default constructorPfxOptions(JsonObject json)Create options from JSONPfxOptions(PfxOptions other)Copy constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PfxOptionscopy()PfxOptionssetAlias(String alias)Set the alias for a server certificate when the keystore has more than one.PfxOptionssetAliasPassword(String aliasPassword)Set the password for the server certificate designated byKeyStoreOptionsBase.getAlias().PfxOptionssetPassword(String password)Set the password for the key storePfxOptionssetPath(String path)Set the path to the key storePfxOptionssetValue(Buffer value)Set the key store as a bufferJsonObjecttoJson()Convert to JSON- 
Methods inherited from class io.vertx.core.net.KeyStoreOptionsBaseequals, getAlias, getAliasPassword, getHelper, getKeyManagerFactory, getPassword, getPath, getProvider, getTrustManagerFactory, getType, getValue, hashCode, keyManagerFactoryMapper, loadKeyStore, setProvider, setType, trustManagerMapper
 
- 
 
- 
- 
- 
Constructor Detail- 
PfxOptionspublic PfxOptions() Default constructor
 - 
PfxOptionspublic PfxOptions(PfxOptions other) Copy constructor- Parameters:
- other- the options to copy
 
 - 
PfxOptionspublic PfxOptions(JsonObject json) Create options from JSON- Parameters:
- json- the JSON
 
 
- 
 - 
Method Detail- 
setPasswordpublic PfxOptions setPassword(String password) Description copied from class:KeyStoreOptionsBaseSet the password for the key store- Overrides:
- setPasswordin class- KeyStoreOptionsBase
- Parameters:
- password- the password
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
setPathpublic PfxOptions setPath(String path) Description copied from class:KeyStoreOptionsBaseSet the path to the key store- Overrides:
- setPathin class- KeyStoreOptionsBase
- Parameters:
- path- the path
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
setValuepublic PfxOptions setValue(Buffer value) Set the key store as a buffer- Overrides:
- setValuein class- KeyStoreOptionsBase
- Parameters:
- value- the key store as a buffer
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
setAliaspublic PfxOptions setAlias(String alias) Description copied from class:KeyStoreOptionsBaseSet the alias for a server certificate when the keystore has more than one.- Overrides:
- setAliasin class- KeyStoreOptionsBase
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
setAliasPasswordpublic PfxOptions setAliasPassword(String aliasPassword) Description copied from class:KeyStoreOptionsBaseSet the password for the server certificate designated byKeyStoreOptionsBase.getAlias().- Overrides:
- setAliasPasswordin class- KeyStoreOptionsBase
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
copypublic PfxOptions copy() - Specified by:
- copyin interface- KeyCertOptions
- Specified by:
- copyin interface- TrustOptions
- Specified by:
- copyin class- KeyStoreOptionsBase
- Returns:
- a copy of these options
 
 - 
toJsonpublic JsonObject toJson() Convert to JSON- Returns:
- the JSON
 
 
- 
 
-