Module dev.eidentification.bankid
Record Class CompletionData
java.lang.Object
java.lang.Record
dev.eidentification.bankid.client.model.CompletionData
- Record Components:
- user- Information related to the user.
- device- Information related to the device.
- bankIdIssueDate- The date the BankID was issued to the user. The issue date of the ID expressed using ISO 8601 date format YYYY-MM-DD with a UTC time zone offset.
- stepUp- Information about extra verifications that were part of the transaction. mrtd: Indicate if there was a check of the mrtd (machine readable travel document). Boolean. True if the mrtd check was performed and passed. False if the mrtd check was performed but failed.
- signature- The signature as described in the BankID Signature Profile specification. String. Base64-encoded. XML signature.
- ocspResponse- The OCSP response. String. Base64-encoded. The OCSP response is signed by a certificate that has the same issuer as the certificate being verified. The OSCP response has an extension for Nonce. The nonce is calculated as: SHA-1 hash over the base 64 XML signature encoded as UTF-8. 12 random bytes is added after the hash. The nonce is 32 bytes (20 + 12).
public record CompletionData(User user, Device device, LocalDate bankIdIssueDate, boolean stepUp, String signature, String ocspResponse)
extends Record
A final state when an order is successful. The user has provided the security code and completed the order.
 The completionData includes signature, user information and the OCSP response.
 RP should verify user information to proceed.
 RP should retain completion data for future reference, compliance and audit purposes.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thebankIdIssueDaterecord component.device()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theocspResponserecord component.Returns the value of thesignaturerecord component.booleanstepUp()Returns the value of thestepUprecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
- 
Constructor Details- 
CompletionDatapublic CompletionData(User user, Device device, LocalDate bankIdIssueDate, boolean stepUp, String signature, String ocspResponse) Creates an instance of aCompletionDatarecord class.- Parameters:
- user- the value for the- userrecord component
- device- the value for the- devicerecord component
- bankIdIssueDate- the value for the- bankIdIssueDaterecord component
- stepUp- the value for the- stepUprecord component
- signature- the value for the- signaturerecord component
- ocspResponse- the value for the- ocspResponserecord component
 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
userReturns the value of theuserrecord component.- Returns:
- the value of the userrecord component
 
- 
deviceReturns the value of thedevicerecord component.- Returns:
- the value of the devicerecord component
 
- 
bankIdIssueDateReturns the value of thebankIdIssueDaterecord component.- Returns:
- the value of the bankIdIssueDaterecord component
 
- 
stepUppublic boolean stepUp()Returns the value of thestepUprecord component.- Returns:
- the value of the stepUprecord component
 
- 
signatureReturns the value of thesignaturerecord component.- Returns:
- the value of the signaturerecord component
 
- 
ocspResponseReturns the value of theocspResponserecord component.- Returns:
- the value of the ocspResponserecord component
 
 
-