Class QESEvidence
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.QESEvidence
-
- All Implemented Interfaces:
net.minidev.json.JSONAware
@Immutable public final class QESEvidence extends IdentityEvidence implements net.minidev.json.JSONAware
Qualified electronic signature (QES) used as identity evidence.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 4.1.1.
-
-
Constructor Summary
Constructors Constructor Description QESEvidence(Issuer issuer, String serialNumber, DateWithTimeZoneOffset createdAt)
Creates a new QES used as identity evidence.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateWithTimeZoneOffset
getQESCreationTime()
Returns The QES creation time.Issuer
getQESIssuer()
Returns the QES issuer.String
getQESSerialNumberString()
Returns the QES serial number.static QESEvidence
parse(net.minidev.json.JSONObject jsonObject)
Parses a new QES evidence from the specified JSON object.net.minidev.json.JSONObject
toJSONObject()
Returns a JSON object representation of this evidence.-
Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
ensureType, getEvidenceType, toIDDocumentEvidence, toJSONString, toQESEvidence, toUtilityBillEvidence
-
-
-
-
Constructor Detail
-
QESEvidence
public QESEvidence(Issuer issuer, String serialNumber, DateWithTimeZoneOffset createdAt)
Creates a new QES used as identity evidence.- Parameters:
issuer
- The QES issuer,null
if not specified.serialNumber
- The QES serial number,null
if not specified.createdAt
- The QES creation time,null
if not specified.
-
-
Method Detail
-
getQESIssuer
public Issuer getQESIssuer()
Returns the QES issuer.- Returns:
- The QES issuer,
null
if not specified.
-
getQESSerialNumberString
public String getQESSerialNumberString()
Returns the QES serial number.- Returns:
- The QES serial number string,
null
if not specified.
-
getQESCreationTime
public DateWithTimeZoneOffset getQESCreationTime()
Returns The QES creation time.- Returns:
- The QES creation time,
null
if not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Description copied from class:IdentityEvidence
Returns a JSON object representation of this evidence.- Overrides:
toJSONObject
in classIdentityEvidence
- Returns:
- The JSON object.
-
parse
public static QESEvidence parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses a new QES evidence from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The QES evidence.
- Throws:
ParseException
- If parsing failed.
-
-