Class VerifierConstraint
- java.lang.Object
-
- com.authlete.common.assurance.constraint.BaseConstraint
-
- com.authlete.common.assurance.constraint.VerifierConstraint
-
- All Implemented Interfaces:
Constraint
public class VerifierConstraint extends BaseConstraint
The class that represents the constraint forid_document/verifier
.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description VerifierConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerifierConstraint
extract(Map<?,?> map, String key)
Create aVerifierConstraint
instance from an object in the given map.LeafConstraint
getOrganization()
Get the constraint fororganization
.LeafConstraint
getTxn()
Get the constraint fortxn
.void
setOrganization(LeafConstraint constraint)
Set the constraint fororganization
.void
setTxn(LeafConstraint constraint)
Set the constraint fortxn
.Map<String,Object>
toMap()
Create aMap
instance that represents this object in the way conforming to the structure defined in 5.
-
-
-
Method Detail
-
getOrganization
public LeafConstraint getOrganization()
Get the constraint fororganization
.- Returns:
- The constraint for
organization
.
-
setOrganization
public void setOrganization(LeafConstraint constraint)
Set the constraint fororganization
.- Parameters:
constraint
- The constraint fororganization
.
-
getTxn
public LeafConstraint getTxn()
Get the constraint fortxn
.- Returns:
- The constraint for
txn
.
-
setTxn
public void setTxn(LeafConstraint constraint)
Set the constraint fortxn
.- Parameters:
constraint
- The constraint fortxn
.
-
extract
public static VerifierConstraint extract(Map<?,?> map, String key) throws ConstraintException
Create aVerifierConstraint
instance from an object in the given map.- Parameters:
map
- A map that may contain"verifier"
.key
- The key that identifies the object in the map. In normal cases, the key is"verifier"
.- Returns:
- A
VerifierConstraint
instance that represents"verifier"
. Even if the map does not contain the given key, an instance ofVerifierConstraint
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.
-
-