Package com.authlete.common.assurance
Class QES
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.authlete.common.assurance.Evidence
-
- com.authlete.common.assurance.QES
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class QES extends Evidence
The class that representsqes.QES is verification based on an eIDAS Qualified Electronic Signature.
- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description QES()The constructor that construct evidence whose type is"qes".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsCreatedAt()Check if this object contains"created_at".booleancontainsIssuer()Check if this object contains"issuer".booleancontainsSerialNumber()Check if this object contains"serial_number".static QESextract(Map<?,?> map)Create aQESinstance from the given object.StringgetCreatedAt()Get the time when the signature was created.StringgetIssuer()Get the certification authority that issued the signer's certificate.StringgetSerialNumber()Get the serial number of the certificate.StringremoveCreatedAt()Remove"created_at"from this object.StringremoveIssuer()Remove"issuer"from this object.StringremoveSerialNumber()Remove"serial_number"from this object.QESsetCreatedAt(String createdAt)Set the time when the signature was created.QESsetIssuer(String issuer)Set the certification authority that issued the signer's certificate.QESsetSerialNumber(String serialNumber)Set the serial number of the certificate.-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
getIssuer
public String getIssuer()
Get the certification authority that issued the signer's certificate.- Returns:
- The certification authority.
-
setIssuer
public QES setIssuer(String issuer)
Set the certification authority that issued the signer's certificate.- Parameters:
issuer- The certification authority.- Returns:
thisobject.
-
containsIssuer
public boolean containsIssuer()
Check if this object contains"issuer".- Returns:
trueif this object contains"issuer".
-
removeIssuer
public String removeIssuer()
Remove"issuer"from this object.- Returns:
- The old value that may have existed before removal.
-
getSerialNumber
public String getSerialNumber()
Get the serial number of the certificate.- Returns:
- The serial number of the certificate.
-
setSerialNumber
public QES setSerialNumber(String serialNumber)
Set the serial number of the certificate.- Parameters:
serialNumber- The serial number of the certificate.- Returns:
thisobject.
-
containsSerialNumber
public boolean containsSerialNumber()
Check if this object contains"serial_number".- Returns:
trueif this object contains"serial_number".
-
removeSerialNumber
public String removeSerialNumber()
Remove"serial_number"from this object.- Returns:
- The old value that may have existed before removal.
-
getCreatedAt
public String getCreatedAt()
Get the time when the signature was created.- Returns:
- The time when the signature was created.
-
setCreatedAt
public QES setCreatedAt(String createdAt)
Set the time when the signature was created.- Parameters:
createdAt- The time when the signature was created.- Returns:
thisobject.
-
containsCreatedAt
public boolean containsCreatedAt()
Check if this object contains"created_at".- Returns:
trueif this object contains"created_at".
-
removeCreatedAt
public String removeCreatedAt()
Remove"created_at"from this object.- Returns:
- The old value that may have existed before removal.
-
extract
public static QES extract(Map<?,?> map) throws IdentityAssuranceException
Create aQESinstance from the given object.- Parameters:
map- A map that represents"qes".- Returns:
- A
QESinstance that represents"qes". - Throws:
IdentityAssuranceException- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
-