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 boolean
containsCreatedAt()
Check if this object contains"created_at"
.boolean
containsIssuer()
Check if this object contains"issuer"
.boolean
containsSerialNumber()
Check if this object contains"serial_number"
.static QES
extract(Map<?,?> map)
Create aQES
instance from the given object.String
getCreatedAt()
Get the time when the signature was created.String
getIssuer()
Get the certification authority that issued the signer's certificate.String
getSerialNumber()
Get the serial number of the certificate.String
removeCreatedAt()
Remove"created_at"
from this object.String
removeIssuer()
Remove"issuer"
from this object.String
removeSerialNumber()
Remove"serial_number"
from this object.QES
setCreatedAt(String createdAt)
Set the time when the signature was created.QES
setIssuer(String issuer)
Set the certification authority that issued the signer's certificate.QES
setSerialNumber(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:
this
object.
-
containsIssuer
public boolean containsIssuer()
Check if this object contains"issuer"
.- Returns:
true
if 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:
this
object.
-
containsSerialNumber
public boolean containsSerialNumber()
Check if this object contains"serial_number"
.- Returns:
true
if 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:
this
object.
-
containsCreatedAt
public boolean containsCreatedAt()
Check if this object contains"created_at"
.- Returns:
true
if 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 aQES
instance from the given object.- Parameters:
map
- A map that represents"qes"
.- Returns:
- A
QES
instance that represents"qes"
. - Throws:
IdentityAssuranceException
- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
-