| Modifier and Type | Method and Description |
|---|---|
Key |
build()
Builds a new
Key. |
Key.Builder |
certificate(String certificate)
Initializes the value for the
certificate attribute. |
Key.Builder |
from(Key instance)
Fill a builder with attribute values from the provided
Key instance. |
Key.Builder |
key(String key)
Initializes the value for the
key attribute. |
Key.Builder |
passphrase(String passphrase)
Initializes the value for the
passphrase attribute. |
public final Key.Builder from(Key instance)
Key instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Key.Builder certificate(String certificate)
certificate attribute.certificate - The value for certificate (can be null)this builder for use in a chained invocationpublic final Key.Builder key(String key)
key attribute.key - The value for key (can be null)this builder for use in a chained invocationpublic final Key.Builder passphrase(String passphrase)
passphrase attribute.passphrase - The value for passphrase (can be null)this builder for use in a chained invocationpublic Key build()
Key.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.