public class Document extends LinkedHashMap<String,Object>
id_document/document.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Document() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDateOfExpiry()
Check if this object contains
"date_of_expiry". |
boolean |
containsDateOfIssuance()
Check if this object contains
"date_of_issuance". |
boolean |
containsIssuer()
Check if this object contains
"issuer". |
boolean |
containsNumber()
Check if this object contains
"number". |
boolean |
containsType()
Check if this object contains
"type". |
static Document |
extract(Map<?,?> map,
String key)
Create a
Document instance from an object in the given map. |
String |
getDateOfExpiry()
Get the date of expiry of the document.
|
String |
getDateOfIssuance()
Get the date of issuance of the document.
|
Issuer |
getIssuer()
Get the issuer of the document.
|
String |
getNumber()
Get the number of the document.
|
String |
getType()
Get the type of the document.
|
String |
removeDateOfExpiry()
Remove
"date_of_expiry" from this object. |
String |
removeDateOfIssuance()
Remove
"date_of_issuance" from this object. |
Issuer |
removeIssuer()
Remove
"issuer" from this object. |
String |
removeNumber()
Remove
"number" from this object. |
String |
removeType()
Remove
"type" from this object. |
Document |
setDateOfExpiry(String date)
Set the date of expiry of the document.
|
Document |
setDateOfIssuance(String date)
Set the date of issuance of the document.
|
Document |
setIssuer(Issuer issuer)
Set the issuer of the document.
|
Document |
setNumber(String number)
Set the number of the document.
|
Document |
setType(String type)
Set the type of the document.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic String getType()
public Document setType(String type)
type - The type of the document.this object.public boolean containsType()
"type".true if this object contains "type".public String removeType()
"type" from this object.public String getNumber()
public Document setNumber(String number)
number - The number of the document.this object.public boolean containsNumber()
"number".true if this object contains "number".public String removeNumber()
"number" from this object.public Issuer getIssuer()
public Document setIssuer(Issuer issuer)
issuer - The issuer of the document.this object.public boolean containsIssuer()
"issuer".true if this object contains "issuer".public Issuer removeIssuer()
"issuer" from this object.public String getDateOfIssuance()
public Document setDateOfIssuance(String date)
date - The date of issuance of the document.this object.public boolean containsDateOfIssuance()
"date_of_issuance".true if this object contains "date_of_issuance".public String removeDateOfIssuance()
"date_of_issuance" from this object.public String getDateOfExpiry()
public Document setDateOfExpiry(String date)
date - The date of expiry of the document.this object.public boolean containsDateOfExpiry()
"date_of_expiry".true if this object contains "date_of_expiry".public String removeDateOfExpiry()
"date_of_expiry" from this object.public static Document extract(Map<?,?> map, String key) throws IdentityAssuranceException
Document 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".Document instance that represents "document".
If the map does not contain the given key, null is returned.IdentityAssuranceException - The structure of the map does not conform to the specification
(OpenID Connect for Identity Assurance 1.0).Copyright © 2020. All rights reserved.