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 VerificationConstraint
extract(Map<?,?> map, String key)
Create aVerificationConstraint
instance from an object in the given map.EvidenceArrayConstraint
getEvidence()
Get the constraint forevidence
.TimeConstraint
getTime()
Get the constraint fortime
.LeafConstraint
getTrustFramework()
Get the constraint fortrust_framework
.LeafConstraint
getVerificationProcess()
Get the constraint forverification_process
.void
setEvidence(EvidenceArrayConstraint constraint)
Set the constraint forevidence
.void
setTime(TimeConstraint constraint)
Set the constraint fortime
.void
setTrustFramework(LeafConstraint constraint)
Set the constraint fortrust_framework
.void
setVerificationProcess(LeafConstraint constraint)
Set the constraint forverification_process
.Map<String,Object>
toMap()
Create aMap
instance 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 aVerificationConstraint
instance 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
VerificationConstraint
instance that represents"verification"
. Even if the map does not contain the given key, an instance ofVerificationConstraint
is 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: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.
-
-