Class IDDocumentConstraint
- java.lang.Object
-
- com.authlete.common.assurance.constraint.BaseConstraint
-
- com.authlete.common.assurance.constraint.EvidenceConstraint
-
- com.authlete.common.assurance.constraint.IDDocumentConstraint
-
- All Implemented Interfaces:
Constraint
public class IDDocumentConstraint extends EvidenceConstraint
The class that represents the constraint forid_document
.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description IDDocumentConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IDDocumentConstraint
extract(Map<?,?> map)
Create anIDDocumentConstraint
instance from the given object.DocumentConstraint
getDocument()
Get the constraint fordocument
.LeafConstraint
getMethod()
Get the constraint formethod
.TimeConstraint
getTime()
Get the constraint fortime
.VerifierConstraint
getVerifier()
Get the constraint forverifier
.void
setDocument(DocumentConstraint constraint)
Set the constraint fordocument
.void
setMethod(LeafConstraint constraint)
Set the constraint formethod
.void
setTime(TimeConstraint constraint)
Set the constraint fortime
.void
setVerifier(VerifierConstraint constraint)
Set the constraint forverifier
.Map<String,Object>
toMap()
Create aMap
instance that represents this object in the way conforming to the structure defined in 5.-
Methods inherited from class com.authlete.common.assurance.constraint.EvidenceConstraint
extract, getType, setType
-
-
-
-
Method Detail
-
getMethod
public LeafConstraint getMethod()
Get the constraint formethod
.- Returns:
- The constraint for
method
.
-
setMethod
public void setMethod(LeafConstraint constraint)
Set the constraint formethod
.- Parameters:
constraint
- The constraint formethod
.
-
getVerifier
public VerifierConstraint getVerifier()
Get the constraint forverifier
.- Returns:
- The constraint for
verifier
.
-
setVerifier
public void setVerifier(VerifierConstraint constraint)
Set the constraint forverifier
.- Parameters:
constraint
- The constraint forverifier
.
-
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
.
-
getDocument
public DocumentConstraint getDocument()
Get the constraint fordocument
.- Returns:
- The constraint for
document
.
-
setDocument
public void setDocument(DocumentConstraint constraint)
Set the constraint fordocument
.- Parameters:
constraint
- The constraint fordocument
.
-
extract
public static IDDocumentConstraint extract(Map<?,?> map) throws ConstraintException
Create anIDDocumentConstraint
instance from the given object.- Parameters:
map
- A map that represents"id_document"
.- Returns:
- An
IDDocumentConstraint
instance that represents"id_document"
. - 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 classEvidenceConstraint
- Returns:
- A
Map
instance that represents this object. IfBaseConstraint.exists()
returnsfalse
orBaseConstraint.isNull()
returnstrue
, this method returns null.
-
-