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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebankIdIssueDate
record component.device()
Returns the value of thedevice
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theocspResponse
record component.Returns the value of thesignature
record component.boolean
stepUp()
Returns the value of thestepUp
record component.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record component.
-
Constructor Details
-
CompletionData
public CompletionData(User user, Device device, LocalDate bankIdIssueDate, boolean stepUp, String signature, String ocspResponse) Creates an instance of aCompletionData
record class.- Parameters:
user
- the value for theuser
record componentdevice
- the value for thedevice
record componentbankIdIssueDate
- the value for thebankIdIssueDate
record componentstepUp
- the value for thestepUp
record componentsignature
- the value for thesignature
record componentocspResponse
- the value for theocspResponse
record component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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 '=='. -
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-
device
Returns the value of thedevice
record component.- Returns:
- the value of the
device
record component
-
bankIdIssueDate
Returns the value of thebankIdIssueDate
record component.- Returns:
- the value of the
bankIdIssueDate
record component
-
stepUp
public boolean stepUp()Returns the value of thestepUp
record component.- Returns:
- the value of the
stepUp
record component
-
signature
Returns the value of thesignature
record component.- Returns:
- the value of the
signature
record component
-
ocspResponse
Returns the value of theocspResponse
record component.- Returns:
- the value of the
ocspResponse
record component
-