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 Summary

    Constructors
    Constructor and Description
    `PfxOptions()` Default constructor
    `PfxOptions(JsonObject json)` Create options from JSON
    `PfxOptions(PfxOptions other)` Copy constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `PfxOptions` | `copy()`
    `PfxOptions` | `setAlias(String alias)` Set the alias for a server certificate when the keystore has more than one.
    `PfxOptions` | `setAliasPassword(String aliasPassword)` Set the password for the server certificate designated by `KeyStoreOptionsBase.getAlias()`.
    `PfxOptions` | `setPassword(String password)` Set the password for the key store
    `PfxOptions` | `setPath(String path)` Set the path to the key store
    `PfxOptions` | `setValue(Buffer value)` Set the key store as a buffer
    `JsonObject` | `toJson()` Convert to JSON

    - ### Methods inherited from class io.vertx.core.net.KeyStoreOptionsBase

      `getAlias, getAliasPassword, getKeyManagerFactory, getPassword, getPath, getProvider, getTrustManagerFactory, getType, getValue, keyManagerMapper, loadKeyStore, setProvider, setType, trustManagerMapper`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface io.vertx.core.net.KeyCertOptions

      `wrap`

    - ### Methods inherited from interface io.vertx.core.net.TrustOptions

      `wrap`

- - ### Constructor Detail

    - #### PfxOptions

          public PfxOptions()

      Default constructor

    - #### PfxOptions

          public PfxOptions(PfxOptions other)

      Copy constructor
      Parameters:
        `other` - the options to copy

    - #### PfxOptions

          public PfxOptions(JsonObject json)

      Create options from JSON
      Parameters:
        `json` - the JSON

  - ### Method Detail

    - #### setPassword

          public PfxOptions setPassword(String password)

      Description copied from class: `KeyStoreOptionsBase`
      Set the password for the key store
      Overrides:
        `setPassword` in class `KeyStoreOptionsBase`
      Parameters:
        `password` - the password
      Returns:
        a reference to this, so the API can be used fluently

    - #### setPath

          public PfxOptions setPath(String path)

      Description copied from class: `KeyStoreOptionsBase`
      Set the path to the key store
      Overrides:
        `setPath` in class `KeyStoreOptionsBase`
      Parameters:
        `path` - the path
      Returns:
        a reference to this, so the API can be used fluently

    - #### setValue

          public PfxOptions setValue(Buffer value)

      Set the key store as a buffer
      Overrides:
        `setValue` in class `KeyStoreOptionsBase`
      Parameters:
        `value` - the key store as a buffer
      Returns:
        a reference to this, so the API can be used fluently

    - #### setAlias

          public PfxOptions setAlias(String alias)

      Description copied from class: `KeyStoreOptionsBase`
      Set the alias for a server certificate when the keystore has more than one.
      Overrides:
        `setAlias` in class `KeyStoreOptionsBase`
      Returns:
        a reference to this, so the API can be used fluently

    - #### setAliasPassword

          public PfxOptions setAliasPassword(String aliasPassword)

      Description copied from class: `KeyStoreOptionsBase`
      Set the password for the server certificate designated by `KeyStoreOptionsBase.getAlias()`.
      Overrides:
        `setAliasPassword` in class `KeyStoreOptionsBase`
      Returns:
        a reference to this, so the API can be used fluently

    - #### copy

          public PfxOptions copy()

      Specified by:
        `copy` in interface `KeyCertOptions`
      Specified by:
        `copy` in interface `TrustOptions`
      Specified by:
        `copy` in class `KeyStoreOptionsBase`
      Returns:
        a copy of these options

    - #### toJson

          public JsonObject toJson()

      Convert to JSON
      Returns:
        the JSON

Copyright © 2021 Eclipse. All rights reserved.