public class KeyPairAttributesMapBuilder
extends java.lang.Object
KeyPairAttributesMap.
Method chaining is supported.
| Constructor and Description |
|---|
KeyPairAttributesMapBuilder()
Constructs a
KeyPairAttributeMapBuilder for instantiating and populating an instance
of KeyPairAttributesMap. |
| Modifier and Type | Method and Description |
|---|---|
KeyPairAttributesMap |
build()
Returns an instance of
KeyPairAttributesMap created from the fields set on this
builder. |
KeyPairAttributesMapBuilder |
withPrivate(KeyAttribute keyAttribute,
java.lang.Object value)
Associates the specified value with the specified key attribute in the private key.
|
KeyPairAttributesMapBuilder |
withPrivate(KeyAttributesMap privateKeyAttributesMap)
Populates the private key with the same key attributes and values as the specified
KeyPairAttributesMap. |
KeyPairAttributesMapBuilder |
withPublic(KeyAttribute keyAttribute,
java.lang.Object value)
Associates the specified value with the specified key attribute in the public key.
|
KeyPairAttributesMapBuilder |
withPublic(KeyAttributesMap publicKeyAttributesMap)
Populates the public key with the same key attributes and values as the specified
KeyPairAttributesMap. |
public KeyPairAttributesMapBuilder()
KeyPairAttributeMapBuilder for instantiating and populating an instance
of KeyPairAttributesMap.public KeyPairAttributesMap build()
KeyPairAttributesMap created from the fields set on this
builder.KeyPairAttributesMap populated with the key pair attributes
and values provided to the builder's methods.public KeyPairAttributesMapBuilder withPublic(KeyAttributesMap publicKeyAttributesMap) throws AddAttributeException
KeyPairAttributesMap.publicKeyAttributesMap - The KeyAttributesMap whose key attributes and
values are to be placed in this KeyPairAttributesMap's public key map.KeyPairAttributesMapBuilder instance, for method chaining.java.lang.NullPointerException - If the specified object is null.AddAttributeException - If there was a problem adding attributes from the public key
map.public KeyPairAttributesMapBuilder withPublic(KeyAttribute keyAttribute, java.lang.Object value) throws AddAttributeException
If the internal map previously contained a mapping for the key attribute, the old value is replaced.
keyAttribute - Key attribute with which the specified value is to be associated in the
public key.value - Value to be associated with the specified key attribute in the public key.KeyPairAttributesMapBuilder instance, for method chaining.AddAttributeException - If there is a problem adding the specified public key
attribute.public KeyPairAttributesMapBuilder withPrivate(KeyAttributesMap privateKeyAttributesMap) throws AddAttributeException
KeyPairAttributesMap.privateKeyAttributesMap - The KeyAttributesMap whose key attributes and
values are to be placed in this KeyPairAttributesMap's private key map.KeyPairAttributesMapBuilder instance, for method chaining.java.lang.NullPointerException - If the specified object is null.AddAttributeException - If there is a problem adding attributes from the private key
map.public KeyPairAttributesMapBuilder withPrivate(KeyAttribute keyAttribute, java.lang.Object value) throws AddAttributeException
If the internal map previously contained a mapping for the key attribute, the old value is replaced.
keyAttribute - Key attribute with which the specified value is to be associated in the
private key.value - Value to be associated with the specified key attribute in the private key.KeyPairAttributesMapBuilder instance, for method chaining.AddAttributeException - If there is a problem adding the specified private key
attribute.