public class DocumentConstraint extends BaseConstraint
id_document/document.| Constructor and Description |
|---|
DocumentConstraint() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentConstraint |
extract(Map<?,?> map,
String key)
Create a
DocumentConstraint instance from an object in the given map. |
LeafConstraint |
getDateOfExpiry()
Get the constraint for
date_of_expiry. |
LeafConstraint |
getDateOfIssuance()
Get the constraint for
date_of_issuance. |
IssuerConstraint |
getIssuer()
Get the constraint for
issuer. |
LeafConstraint |
getNumber()
Get the constraint for
number. |
LeafConstraint |
getType()
Get the constraint for
type. |
void |
setDateOfExpiry(LeafConstraint constraint)
Set the constraint for
date_of_expiry. |
void |
setDateOfIssuance(LeafConstraint constraint)
Set the constraint for
date_of_issuance. |
void |
setIssuer(IssuerConstraint constraint)
Set the constraint for
issuer. |
void |
setNumber(LeafConstraint constraint)
Set the constraint for
number. |
void |
setType(LeafConstraint constraint)
Set the constraint for
type. |
Map<String,Object> |
toMap()
Create a
Map instance that represents this object in the way
conforming to the structure defined in 5. |
public LeafConstraint getType()
type.type.public void setType(LeafConstraint constraint)
type.constraint - The constraint for type.public LeafConstraint getNumber()
number.number.public void setNumber(LeafConstraint constraint)
number.constraint - The constraint for number.public IssuerConstraint getIssuer()
issuer.issuer.public void setIssuer(IssuerConstraint constraint)
issuer.constraint - The constraint for issuer.public LeafConstraint getDateOfIssuance()
date_of_issuance.date_of_issuance.public void setDateOfIssuance(LeafConstraint constraint)
date_of_issuance.constraint - The constraint for date_of_issuance.public LeafConstraint getDateOfExpiry()
date_of_expiry.date_of_expiry.public void setDateOfExpiry(LeafConstraint constraint)
date_of_expiry.constraint - The constraint for date_of_expiry.public static DocumentConstraint extract(Map<?,?> map, String key) throws ConstraintException
DocumentConstraint instance from an object in the given map.map - A map that may contain "document".key - The key that identifies the object in the map. In normal cases,
the key is "document".DocumentConstraint instance that represents "document".
Even if the map does not contain the given key, an instance of
DocumentConstraint is returned.ConstraintException - The structure of the map does not conform to the specification
(OpenID Connect for Identity Assurance 1.0).public Map<String,Object> toMap()
BaseConstraintMap 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.toMap in class BaseConstraintMap instance that represents this object.
If BaseConstraint.exists() returns false or BaseConstraint.isNull()
returns true, this method returns null.Copyright © 2020. All rights reserved.