Class DocumentConstraint
- java.lang.Object
-
- com.authlete.common.assurance.constraint.BaseConstraint
-
- com.authlete.common.assurance.constraint.DocumentConstraint
-
- All Implemented Interfaces:
Constraint
public class DocumentConstraint extends BaseConstraint
The class that represents the constraint forid_document/document.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description DocumentConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentConstraintextract(Map<?,?> map, String key)Create aDocumentConstraintinstance from an object in the given map.LeafConstraintgetDateOfExpiry()Get the constraint fordate_of_expiry.LeafConstraintgetDateOfIssuance()Get the constraint fordate_of_issuance.IssuerConstraintgetIssuer()Get the constraint forissuer.LeafConstraintgetNumber()Get the constraint fornumber.LeafConstraintgetType()Get the constraint fortype.voidsetDateOfExpiry(LeafConstraint constraint)Set the constraint fordate_of_expiry.voidsetDateOfIssuance(LeafConstraint constraint)Set the constraint fordate_of_issuance.voidsetIssuer(IssuerConstraint constraint)Set the constraint forissuer.voidsetNumber(LeafConstraint constraint)Set the constraint fornumber.voidsetType(LeafConstraint constraint)Set the constraint fortype.Map<String,Object>toMap()Create aMapinstance 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.
-
getNumber
public LeafConstraint getNumber()
Get the constraint fornumber.- Returns:
- The constraint for
number.
-
setNumber
public void setNumber(LeafConstraint constraint)
Set the constraint fornumber.- Parameters:
constraint- The constraint fornumber.
-
getIssuer
public IssuerConstraint getIssuer()
Get the constraint forissuer.- Returns:
- The constraint for
issuer.
-
setIssuer
public void setIssuer(IssuerConstraint constraint)
Set the constraint forissuer.- Parameters:
constraint- The constraint forissuer.
-
getDateOfIssuance
public LeafConstraint getDateOfIssuance()
Get the constraint fordate_of_issuance.- Returns:
- The constraint for
date_of_issuance.
-
setDateOfIssuance
public void setDateOfIssuance(LeafConstraint constraint)
Set the constraint fordate_of_issuance.- Parameters:
constraint- The constraint fordate_of_issuance.
-
getDateOfExpiry
public LeafConstraint getDateOfExpiry()
Get the constraint fordate_of_expiry.- Returns:
- The constraint for
date_of_expiry.
-
setDateOfExpiry
public void setDateOfExpiry(LeafConstraint constraint)
Set the constraint fordate_of_expiry.- Parameters:
constraint- The constraint fordate_of_expiry.
-
extract
public static DocumentConstraint extract(Map<?,?> map, String key) throws ConstraintException
Create aDocumentConstraintinstance from an object in the given map.- Parameters:
map- A map that may contain"document".key- The key that identifies the object in the map. In normal cases, the key is"document".- Returns:
- A
DocumentConstraintinstance that represents"document". Even if the map does not contain the given key, an instance ofDocumentConstraintis 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.
-
-