Package org.onyx.api

Class Key.Builder

java.lang.Object
org.onyx.api.Key.Builder
Enclosing class:
Key

public static class Key.Builder extends Object
Configuration object for creating keys.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setId

      public Key.Builder setId(String id)
      Specifies the id for the new key.
      Parameters:
      id - unique identifier. Will be auto-generated if not provided.
      Returns:
      the updated builder
    • create

      public Key create(Client client) throws ChainException
      Creates a key.
      Parameters:
      client - ledger API connection object
      Returns:
      a key object
      Throws:
      ChainException