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 DocumentConstraint
extract(Map<?,?> map, String key)
Create aDocumentConstraint
instance from an object in the given map.LeafConstraint
getDateOfExpiry()
Get the constraint fordate_of_expiry
.LeafConstraint
getDateOfIssuance()
Get the constraint fordate_of_issuance
.IssuerConstraint
getIssuer()
Get the constraint forissuer
.LeafConstraint
getNumber()
Get the constraint fornumber
.LeafConstraint
getType()
Get the constraint fortype
.void
setDateOfExpiry(LeafConstraint constraint)
Set the constraint fordate_of_expiry
.void
setDateOfIssuance(LeafConstraint constraint)
Set the constraint fordate_of_issuance
.void
setIssuer(IssuerConstraint constraint)
Set the constraint forissuer
.void
setNumber(LeafConstraint constraint)
Set the constraint fornumber
.void
setType(LeafConstraint constraint)
Set the constraint fortype
.Map<String,Object>
toMap()
Create aMap
instance 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 aDocumentConstraint
instance 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
DocumentConstraint
instance that represents"document"
. Even if the map does not contain the given key, an instance ofDocumentConstraint
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.
-
-