Class PasskeyCredentialEntity
java.lang.Object
sk.iway.iwcm.system.spring.passkey.PasskeyCredentialEntity
JPA entity representing a WebAuthn credential record (passkey_credentials table).
Each entry represents one registered passkey (authenticator) for a user.
Stores all data needed by Spring Security's CredentialRecord interface:
credential ID, public key, signature count, flags, transports, attestation data, etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttestation client data JSON from registration.Raw attestation object from registration, stored as Base64URL string.Comma-separated list of authenticator transports (e.g.Whether this credential is eligible for backup (BE flag).Whether this credential is currently backed up (BS flag).When this credential was created.WebAuthn credential ID (Base64URL encoded).getId()getLabel()Human-readable label assigned by the user.When this credential was last used for authentication.COSE-encoded public key, stored as Base64URL string.Public key credential type (typically "public-key").getRpId()The Relying Party ID (domain) for which this credential was registered.Signature counter from the authenticator, used to detect cloning.FK to users.user_id - the WebJET user who owns this credential.Whether user verification was initialized for this credential.voidsetAttestationClientDataJson(String attestationClientDataJson) Attestation client data JSON from registration.voidsetAttestationObject(String attestationObject) Raw attestation object from registration, stored as Base64URL string.voidsetAuthenticatorTransports(String authenticatorTransports) Comma-separated list of authenticator transports (e.g.voidsetBackupEligible(Boolean backupEligible) Whether this credential is eligible for backup (BE flag).voidsetBackupState(Boolean backupState) Whether this credential is currently backed up (BS flag).voidsetCreated(Instant created) When this credential was created.voidsetCredentialId(String credentialId) WebAuthn credential ID (Base64URL encoded).voidvoidHuman-readable label assigned by the user.voidsetLastUsed(Instant lastUsed) When this credential was last used for authentication.voidsetPublicKey(String publicKey) COSE-encoded public key, stored as Base64URL string.voidsetPublicKeyCredentialType(String publicKeyCredentialType) Public key credential type (typically "public-key").voidThe Relying Party ID (domain) for which this credential was registered.voidsetSignatureCount(Long signatureCount) Signature counter from the authenticator, used to detect cloning.voidFK to users.user_id - the WebJET user who owns this credential.voidsetUvInitialized(Boolean uvInitialized) Whether user verification was initialized for this credential.
-
Constructor Details
-
PasskeyCredentialEntity
public PasskeyCredentialEntity()
-
-
Method Details
-
getId
-
getLabel
Human-readable label assigned by the user. -
getCredentialId
WebAuthn credential ID (Base64URL encoded). Used to identify the credential during authentication. -
getUserId
FK to users.user_id - the WebJET user who owns this credential. -
getPublicKey
COSE-encoded public key, stored as Base64URL string. -
getSignatureCount
Signature counter from the authenticator, used to detect cloning. -
getUvInitialized
Whether user verification was initialized for this credential. -
getBackupEligible
Whether this credential is eligible for backup (BE flag). -
getBackupState
Whether this credential is currently backed up (BS flag). -
getAuthenticatorTransports
Comma-separated list of authenticator transports (e.g. "internal,hybrid"). -
getPublicKeyCredentialType
Public key credential type (typically "public-key"). -
getAttestationObject
Raw attestation object from registration, stored as Base64URL string. -
getAttestationClientDataJson
Attestation client data JSON from registration. -
getCreated
When this credential was created. -
getLastUsed
When this credential was last used for authentication. -
getRpId
The Relying Party ID (domain) for which this credential was registered. WebAuthn credentials are domain-bound - a credential registered for one domain cannot be used on a different domain. -
setId
-
setLabel
Human-readable label assigned by the user. -
setCredentialId
WebAuthn credential ID (Base64URL encoded). Used to identify the credential during authentication. -
setUserId
FK to users.user_id - the WebJET user who owns this credential. -
setPublicKey
COSE-encoded public key, stored as Base64URL string. -
setSignatureCount
Signature counter from the authenticator, used to detect cloning. -
setUvInitialized
Whether user verification was initialized for this credential. -
setBackupEligible
Whether this credential is eligible for backup (BE flag). -
setBackupState
Whether this credential is currently backed up (BS flag). -
setAuthenticatorTransports
Comma-separated list of authenticator transports (e.g. "internal,hybrid"). -
setPublicKeyCredentialType
Public key credential type (typically "public-key"). -
setAttestationObject
Raw attestation object from registration, stored as Base64URL string. -
setAttestationClientDataJson
Attestation client data JSON from registration. -
setCreated
When this credential was created. -
setLastUsed
When this credential was last used for authentication. -
setRpId
The Relying Party ID (domain) for which this credential was registered. WebAuthn credentials are domain-bound - a credential registered for one domain cannot be used on a different domain.
-