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 EvidenceConstraint
extract(List<?> list, int index, String key)
Create an instance of a subclass ofEvidenceConstraint
from an object in the given list.LeafConstraint
getType()
Get the constraint fortype
.void
setType(LeafConstraint constraint)
Set the constraint fortype
.Map<String,Object>
toMap()
Create aMap
instance 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 ofEvidenceConstraint
from 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
EvidenceConstraint
that 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:BaseConstraint
Create aMap
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.- Overrides:
toMap
in classBaseConstraint
- Returns:
- A
Map
instance that represents this object. IfBaseConstraint.exists()
returnsfalse
orBaseConstraint.isNull()
returnstrue
, this method returns null.
-
-