Class Attestation
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.Attestation
-
public class Attestation extends Object
Attestation.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.3.
-
-
Constructor Summary
Constructors Constructor Description Attestation(VouchType type, ReferenceNumber referenceNumber, PersonalNumber personalNumber, SimpleDate dateOfIssuance, SimpleDate dateOfExpiry, Voucher voucher)Creates a new attestation instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SimpleDategetDateOfExpiry()Returns the date of expiry.SimpleDategetDateOfIssuance()Returns the date of issuance.PersonalNumbergetPersonalNumber()Returns the personal number.ReferenceNumbergetReferenceNumber()Returns the reference number.VouchTypegetType()Returns the vouch type.VouchergetVoucher()Returns the voucher information.inthashCode()static Attestationparse(net.minidev.json.JSONObject jsonObject)Parses an attestation instance from the specified JSON object.net.minidev.json.JSONObjecttoJSONObject()Returns a JSON object representation of this attestation instance.
-
-
-
Constructor Detail
-
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,nullif not specified.personalNumber- The personal number,nullif not specified.dateOfIssuance- The date of issuance,nullif not specified.dateOfExpiry- The date of expiry,nullif not specified.voucher- The voucher information,nullif not specified.
-
-
Method Detail
-
getReferenceNumber
public ReferenceNumber getReferenceNumber()
Returns the reference number.- Returns:
- The reference number,
nullif not specified.
-
getPersonalNumber
public PersonalNumber getPersonalNumber()
Returns the personal number.- Returns:
- The personal number,
nullif not specified.
-
getDateOfIssuance
public SimpleDate getDateOfIssuance()
Returns the date of issuance.- Returns:
- The date of issuance,
nullif not specified.
-
getDateOfExpiry
public SimpleDate getDateOfExpiry()
Returns the date of expiry.- Returns:
- The date of expiry,
nullif not specified.
-
getVoucher
public Voucher getVoucher()
Returns the voucher information.- Returns:
- The voucher information,
nullif not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation of this attestation instance.- Returns:
- The JSON object.
-
parse
public static Attestation parse(net.minidev.json.JSONObject jsonObject) throws ParseException
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.
-
-