Class Attestation
java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.evidences.Attestation
Attestation.
Related specifications:
- OpenID Connect for Identity Assurance 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionAttestation
(VouchType type, ReferenceNumber referenceNumber, PersonalNumber personalNumber, SimpleDate dateOfIssuance, SimpleDate dateOfExpiry, Voucher voucher) Creates a new attestation instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the date of expiry.Returns the date of issuance.Returns the personal number.Returns the reference number.getType()
Returns the vouch type.Returns the voucher information.int
hashCode()
static Attestation
parse
(net.minidev.json.JSONObject jsonObject) Parses an attestation instance from the specified JSON object.net.minidev.json.JSONObject
Returns a JSON object representation of this attestation instance.
-
Constructor Details
-
Attestation
public Attestation(VouchType type, ReferenceNumber referenceNumber, PersonalNumber personalNumber, SimpleDate dateOfIssuance, SimpleDate dateOfExpiry, Voucher voucher) Creates a new attestation instance.- Parameters:
type
- The vouch type. Must not benull
.referenceNumber
- The reference number,null
if not specified.personalNumber
- The personal number,null
if not specified.dateOfIssuance
- The date of issuance,null
if not specified.dateOfExpiry
- The date of expiry,null
if not specified.voucher
- The voucher information,null
if not specified.
-
-
Method Details
-
getType
Returns the vouch type.- Returns:
- The vouch type.
-
getReferenceNumber
Returns the reference number.- Returns:
- The reference number,
null
if not specified.
-
getPersonalNumber
Returns the personal number.- Returns:
- The personal number,
null
if not specified.
-
getDateOfIssuance
Returns the date of issuance.- Returns:
- The date of issuance,
null
if not specified.
-
getDateOfExpiry
Returns the date of expiry.- Returns:
- The date of expiry,
null
if not specified.
-
getVoucher
Returns the voucher information.- Returns:
- The voucher information,
null
if not specified.
-
toJSONObject
Returns a JSON object representation of this attestation instance.- Returns:
- The JSON object.
-
equals
-
hashCode
-
parse
Parses an attestation instance from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The attestation instance.
- Throws:
ParseException
- If parsing failed.
-