Class EvidenceConstraint
- java.lang.Object
-
- com.authlete.common.assurance.constraint.BaseConstraint
-
- com.authlete.common.assurance.constraint.EvidenceConstraint
-
- All Implemented Interfaces:
Constraint
- Direct Known Subclasses:
IDDocumentConstraint,QESConstraint,UtilityBillConstraint
public class EvidenceConstraint extends BaseConstraint
The class that represents the constraint for elements inverified_claims/verification/evidence.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description EvidenceConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EvidenceConstraintextract(List<?> list, int index, String key)Create an instance of a subclass ofEvidenceConstraintfrom an object in the given list.LeafConstraintgetType()Get the constraint fortype.voidsetType(LeafConstraint constraint)Set the constraint fortype.Map<String,Object>toMap()Create aMapinstance that represents this object in the way conforming to the structure defined in 5.
-
-
-
Method Detail
-
getType
public LeafConstraint getType()
Get the constraint fortype.- Returns:
- The constraint for
type.
-
setType
public void setType(LeafConstraint constraint)
Set the constraint fortype.- Parameters:
constraint- The constraint fortype.
-
extract
public static EvidenceConstraint extract(List<?> list, int index, String key) throws ConstraintException
Create an instance of a subclass ofEvidenceConstraintfrom an object in the given list.- Parameters:
list- A list that represents an"evidence"array.index- The position in the list.key- The key that identifies the array. In normal cases, the key is"evidence".- Returns:
- An instance of a subclass of
EvidenceConstraintthat represents the element in the"evidence"array. - Throws:
ConstraintException- The structure of the object does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
toMap
public Map<String,Object> toMap()
Description copied from class:BaseConstraintCreate aMapinstance 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.- Overrides:
toMapin classBaseConstraint- Returns:
- A
Mapinstance that represents this object. IfBaseConstraint.exists()returnsfalseorBaseConstraint.isNull()returnstrue, this method returns null.
-
-