public class LeafConstraint extends BaseConstraint
{
"essential": boolean,
"value": string,
"values": string array
}
| Constructor and Description |
|---|
LeafConstraint() |
| Modifier and Type | Method and Description |
|---|---|
static LeafConstraint |
extract(Map<?,?> map,
String key)
Create a
LeafConstraint instance from an object in the given map. |
String |
getValue()
Get the value of
"value". |
String[] |
getValues()
Get the value of
"values". |
boolean |
isEssential()
Get the value of
"essential" |
void |
setEssential(boolean essential)
Set the value of
"essential" |
void |
setValue(String value)
Set the value of
"value". |
void |
setValues(String[] values)
Set the value of
"values". |
Map<String,Object> |
toMap()
Create a
Map instance that represents this object in the way
conforming to the structure defined in 5. |
public boolean isEssential()
"essential""essential".public void setEssential(boolean essential)
"essential"essential - The value of "essential".public String getValue()
"value"."value".public void setValue(String value)
"value".value - The value of "value".public String[] getValues()
"values"."values".public void setValues(String[] values)
"values".value - The value of "values".public static LeafConstraint extract(Map<?,?> map, String key) throws ConstraintException
LeafConstraint instance from an object in the given map.map - A map that may contain a constraint.key - The key that identifies the object in the map.LeafConstraint instance that represents a constraint.
Even if the map does not contain the given key, an instance of
LeafConstraint is returned.ConstraintException - The structure of the map does not conform to the specification
(OpenID Connect for Identity Assurance 1.0).public Map<String,Object> toMap()
BaseConstraintMap instance that represents this object in the way
conforming to the structure defined in 5. Requesting Verified Claims of OpenID Connect for Identity Assurance 1.0.toMap in class BaseConstraintMap instance that represents this object.
If BaseConstraint.exists() returns false or BaseConstraint.isNull()
returns true, this method returns null.Copyright © 2021. All rights reserved.