Class JsonCredential
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
Object>
A JSON credential consists of one or more fields in a JSON document. The JSON document
is represented as a Map object, which will be converted to a JSON document
before sending to CredHub.
- Author:
- Scott Frederick
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionCreate aJsonCredential
.JsonCredential
(int initialCapacity) Create aJsonCredential
with the specified initial capacity.JsonCredential
(int initialCapacity, float loadFactor) Create aJsonCredential
with the specified initial capacity and load factor.JsonCredential
(Map<? extends String, ?> m) Create aJsonCredential
from the provided Map. -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
JsonCredential
public JsonCredential()Create aJsonCredential
.- See Also:
-
JsonCredential
public JsonCredential(int initialCapacity) Create aJsonCredential
with the specified initial capacity.- Parameters:
initialCapacity
- the initial capacity- See Also:
-
JsonCredential
public JsonCredential(int initialCapacity, float loadFactor) Create aJsonCredential
with the specified initial capacity and load factor.- Parameters:
initialCapacity
- the initial capacityloadFactor
- the load factor- See Also:
-
JsonCredential
Create aJsonCredential
from the provided Map.- Parameters:
m
- the map whose mappings are to be placed in this map- See Also:
-