Class VerificationConstraint
- java.lang.Object
-
- com.authlete.common.assurance.constraint.BaseConstraint
-
- com.authlete.common.assurance.constraint.VerificationConstraint
-
- All Implemented Interfaces:
Constraint
public class VerificationConstraint extends BaseConstraint
The class that represents the constraint forverified_claims/verification.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description VerificationConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerificationConstraintextract(Map<?,?> map, String key)Create aVerificationConstraintinstance from an object in the given map.EvidenceArrayConstraintgetEvidence()Get the constraint forevidence.TimeConstraintgetTime()Get the constraint fortime.LeafConstraintgetTrustFramework()Get the constraint fortrust_framework.LeafConstraintgetVerificationProcess()Get the constraint forverification_process.voidsetEvidence(EvidenceArrayConstraint constraint)Set the constraint forevidence.voidsetTime(TimeConstraint constraint)Set the constraint fortime.voidsetTrustFramework(LeafConstraint constraint)Set the constraint fortrust_framework.voidsetVerificationProcess(LeafConstraint constraint)Set the constraint forverification_process.Map<String,Object>toMap()Create aMapinstance that represents this object in the way conforming to the structure defined in 5.
-
-
-
Method Detail
-
getTrustFramework
public LeafConstraint getTrustFramework()
Get the constraint fortrust_framework.- Returns:
- The constraint for
trust_framework.
-
setTrustFramework
public void setTrustFramework(LeafConstraint constraint)
Set the constraint fortrust_framework.- Parameters:
constraint- The constraint fortrust_framework.
-
getTime
public TimeConstraint getTime()
Get the constraint fortime.- Returns:
- The constraint for
time.
-
setTime
public void setTime(TimeConstraint constraint)
Set the constraint fortime.- Parameters:
constraint- The constraint fortime.
-
getVerificationProcess
public LeafConstraint getVerificationProcess()
Get the constraint forverification_process.- Returns:
- The constraint for
verification_process.
-
setVerificationProcess
public void setVerificationProcess(LeafConstraint constraint)
Set the constraint forverification_process.- Parameters:
constraint- The constraint forverification_process.
-
getEvidence
public EvidenceArrayConstraint getEvidence()
Get the constraint forevidence.- Returns:
- The constraint for
evidence.
-
setEvidence
public void setEvidence(EvidenceArrayConstraint constraint)
Set the constraint forevidence.- Parameters:
constraint- The constraint forevidence.
-
extract
public static VerificationConstraint extract(Map<?,?> map, String key) throws ConstraintException
Create aVerificationConstraintinstance from an object in the given map.- Parameters:
map- A map that may contain"verification".key- The key that identifies the object in the map. In normal cases, the key is"verification".- Returns:
- A
VerificationConstraintinstance that represents"verification". Even if the map does not contain the given key, an instance ofVerificationConstraintis returned. - Throws:
ConstraintException- The structure of the map 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.
-
-