public class KeyAttributesMapBuilder
extends java.lang.Object
KeyAttributesMap.
Method chaining is supported.
KeyAttributesMap| Constructor and Description |
|---|
KeyAttributesMapBuilder()
Constructs a
KeyAttributesMapBuilder for instantiating and populating an instance of
KeyAttributesMap. |
| Modifier and Type | Method and Description |
|---|---|
KeyAttributesMap |
build()
Returns an instance of
KeyAttributesMap created from the fields set on this builder. |
KeyAttributesMapBuilder |
put(KeyAttribute keyAttribute,
java.lang.Object value)
Associates the specified value with the specified key attribute.
|
public KeyAttributesMapBuilder()
KeyAttributesMapBuilder for instantiating and populating an instance of
KeyAttributesMap.KeyAttributesMappublic KeyAttributesMap build()
KeyAttributesMap created from the fields set on this builder.KeyAttributesMap populated with the key attributes and values
provided to the builder's methods.public KeyAttributesMapBuilder put(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.value - Value to be associated with the specified key attribute.KeyAttributesMapBuilder instance, for method chaining.java.security.InvalidParameterException - If either keyAttribute or value
are null.AddAttributeException - If there was a problem adding the specified attribute.