Package org.onyx.api
Class Key.Builder
java.lang.Object
org.onyx.api.Key.Builder
- Enclosing class:
Key
Configuration object for creating keys.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setId
Specifies the id for the new key.- Parameters:
id- unique identifier. Will be auto-generated if not provided.- Returns:
- the updated builder
-
create
Creates a key.- Parameters:
client- ledger API connection object- Returns:
- a key object
- Throws:
ChainException
-