Class IDDocumentEvidence
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.IDDocumentEvidence
-
- All Implemented Interfaces:
net.minidev.json.JSONAware
@Immutable public final class IDDocumentEvidence extends IdentityEvidence
Identity document used as identity evidence.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 4.1.1.
-
-
Constructor Summary
Constructors Constructor Description IDDocumentEvidence(IdentityVerificationMethod method, IdentityVerifier verifier, DateWithTimeZoneOffset dtz, IDDocumentDescription idDocument)
Creates a new identity document evidence.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IDDocumentDescription
getIdentityDocument()
Returns the identity document description.IdentityVerificationMethod
getVerificationMethod()
Returns the document verification method.DateWithTimeZoneOffset
getVerificationTime()
Returns the document verification timestamp.IdentityVerifier
getVerifier()
Returns the optional verifier if not the OpenID provider itself.static IDDocumentEvidence
parse(net.minidev.json.JSONObject jsonObject)
Parses an identity document used as identity 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
-
IDDocumentEvidence
public IDDocumentEvidence(IdentityVerificationMethod method, IdentityVerifier verifier, DateWithTimeZoneOffset dtz, IDDocumentDescription idDocument)
Creates a new identity document evidence.- Parameters:
method
- The document verification method. Must not benull
.verifier
- Optional verifier if not the OpenID provider itself,null
if none.dtz
- The document verification timestamp,null
if not specified.idDocument
- The identity document description. Must not benull
.
-
-
Method Detail
-
getVerificationMethod
public IdentityVerificationMethod getVerificationMethod()
Returns the document verification method.- Returns:
- The document verification method.
-
getVerificationTime
public DateWithTimeZoneOffset getVerificationTime()
Returns the document verification timestamp.- Returns:
- The document verification timestamp,
null
if not specified.
-
getVerifier
public IdentityVerifier getVerifier()
Returns the optional verifier if not the OpenID provider itself.- Returns:
- The optional verifier if not the OpenID provider itself,
null
if none.
-
getIdentityDocument
public IDDocumentDescription getIdentityDocument()
Returns the identity document description.- Returns:
- The identity document description.
-
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 IDDocumentEvidence parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses an identity document used as identity evidence from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The identity document used as identity evidence.
- Throws:
ParseException
- If parsing failed.
-
-