Class VouchEvidence
java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
com.nimbusds.openid.connect.sdk.assurance.evidences.VouchEvidence
- All Implemented Interfaces:
net.minidev.json.JSONAware
Vouch used as identity evidence.
Related specifications:
- OpenID Connect for Identity Assurance 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionVouchEvidence
(ValidationMethod validationMethod, VerificationMethod verificationMethod, IdentityVerifier verifier, DateWithTimeZoneOffset time, Attestation attestation, List<Attachment> attachments) Creates a new vouch evidence. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the attestation.Returns the vouch validation method.Returns the person verification method.Returns the vouch verification timestamp.Returns the optional verifier if not the OpenID provider itself.int
hashCode()
static VouchEvidence
parse
(net.minidev.json.JSONObject jsonObject) Parses a vouch evidence from the specified JSON object.net.minidev.json.JSONObject
Returns a JSON object representation of this evidence.Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
ensureType, getAttachments, getEvidenceType, toDocumentEvidence, toElectronicRecordEvidence, toElectronicSignatureEvidence, toIDDocumentEvidence, toJSONString, toQESEvidence, toUtilityBillEvidence, toVouchEvidence
-
Constructor Details
-
VouchEvidence
public VouchEvidence(ValidationMethod validationMethod, VerificationMethod verificationMethod, IdentityVerifier verifier, DateWithTimeZoneOffset time, Attestation attestation, List<Attachment> attachments) Creates a new vouch evidence.- Parameters:
validationMethod
- The vouch validation method,null
if not specified.verificationMethod
- The person verification method,null
if not specified.verifier
- Optional verifier if not the OpenID provider itself,null
if none.time
- The vouch verification timestamp,null
if not specified.attestation
- The attestation,null
if not specified.attachments
- The optional attachments,null
if not specified.
-
-
Method Details
-
getValidationMethod
Returns the vouch validation method.- Returns:
- The vouch validation method,
null
if not specified.
-
getVerificationMethod
Returns the person verification method.- Returns:
- The person verification method,
null
if not specified.
-
getVerifier
Returns the optional verifier if not the OpenID provider itself.- Returns:
- The optional verifier if not the OpenID provider itself,
null
if none.
-
getVerificationTime
Returns the vouch verification timestamp.- Returns:
- The vouch verification timestamp,
null
if not specified.
-
getAttestation
Returns the attestation.- Returns:
- The attestation,
null
if not specified.
-
toJSONObject
Description copied from class:IdentityEvidence
Returns a JSON object representation of this evidence.- Overrides:
toJSONObject
in classIdentityEvidence
- Returns:
- The JSON object.
-
equals
-
hashCode
-
parse
Parses a vouch evidence from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The vouch evidence.
- Throws:
ParseException
- If parsing failed.
-