Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import jakarta.persistence.FetchType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.Lob;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import lombok.Data;
Expand All @@ -31,8 +30,7 @@ public class WebAuthnCredential {
private WebAuthnUserEntity userEntity;

/** COSE-encoded public key (typically 77-300 bytes, RSA keys can be larger). */
@Lob
@Column(name = "public_key", nullable = false, columnDefinition = "BLOB")
@Column(name = "public_key", nullable = false, length = 2048)
private byte[] publicKey;

/** Counter to detect cloned authenticators. */
Expand Down Expand Up @@ -60,13 +58,11 @@ public class WebAuthnCredential {
private boolean backupState;

/** Attestation data from registration (can be several KB). */
@Lob
@Column(name = "attestation_object", columnDefinition = "BLOB")
@Column(name = "attestation_object", length = 65536)
private byte[] attestationObject;

/** Client data JSON from registration (can be several KB). */
@Lob
@Column(name = "attestation_client_data_json", columnDefinition = "BLOB")
@Column(name = "attestation_client_data_json", length = 65536)
private byte[] attestationClientDataJson;

/** Creation timestamp. */
Expand Down
Loading