Class ImmutableCredentialRecord
java.lang.Object
org.springframework.security.web.webauthn.api.ImmutableCredentialRecord
- All Implemented Interfaces:
CredentialRecord
An immutable
CredentialRecord
.- Since:
- 6.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
fromCredentialRecord
(CredentialRecord credentialRecord) The attestationClientDataJSON is the value of the attestationObject attribute when the public key credential source was registered.The attestationObject is the value of the attestationObject attribute when the public key credential source was registered.When thisCredentialRecord
was created.The credential.id.The credential.typegetLabel()
A human-readable label for thisCredentialRecord
assigned by the user.The last time thisCredentialRecord
was used.The publicKeylong
The transpots is the value returned fromresponse.getTransports()
.A reference to the associatedPublicKeyCredentialUserEntity.getId()
boolean
The backupElgible flag is the same as the BE flag in authData.boolean
The backupState flag is the same as the BS flag in authData.boolean
uvInitialized is the value of the UV (user verified) flag in authData and indicates whether any credential from this public key credential source has had the UV flag set.
-
Method Details
-
getCredentialType
Description copied from interface:CredentialRecord
The credential.type- Specified by:
getCredentialType
in interfaceCredentialRecord
- Returns:
-
getCredentialId
Description copied from interface:CredentialRecord
The credential.id.- Specified by:
getCredentialId
in interfaceCredentialRecord
- Returns:
-
getUserEntityUserId
Description copied from interface:CredentialRecord
A reference to the associatedPublicKeyCredentialUserEntity.getId()
- Specified by:
getUserEntityUserId
in interfaceCredentialRecord
- Returns:
-
getPublicKey
Description copied from interface:CredentialRecord
The publicKey- Specified by:
getPublicKey
in interfaceCredentialRecord
- Returns:
-
getSignatureCount
public long getSignatureCount()Description copied from interface:CredentialRecord
- Specified by:
getSignatureCount
in interfaceCredentialRecord
- Returns:
-
isUvInitialized
public boolean isUvInitialized()Description copied from interface:CredentialRecord
uvInitialized is the value of the UV (user verified) flag in authData and indicates whether any credential from this public key credential source has had the UV flag set.- Specified by:
isUvInitialized
in interfaceCredentialRecord
- Returns:
-
getTransports
Description copied from interface:CredentialRecord
The transpots is the value returned fromresponse.getTransports()
.- Specified by:
getTransports
in interfaceCredentialRecord
- Returns:
-
isBackupEligible
public boolean isBackupEligible()Description copied from interface:CredentialRecord
The backupElgible flag is the same as the BE flag in authData.- Specified by:
isBackupEligible
in interfaceCredentialRecord
- Returns:
-
isBackupState
public boolean isBackupState()Description copied from interface:CredentialRecord
The backupState flag is the same as the BS flag in authData.- Specified by:
isBackupState
in interfaceCredentialRecord
- Returns:
-
getAttestationObject
Description copied from interface:CredentialRecord
The attestationObject is the value of the attestationObject attribute when the public key credential source was registered.- Specified by:
getAttestationObject
in interfaceCredentialRecord
- Returns:
- the attestationObject
-
getAttestationClientDataJSON
Description copied from interface:CredentialRecord
The attestationClientDataJSON is the value of the attestationObject attribute when the public key credential source was registered.- Specified by:
getAttestationClientDataJSON
in interfaceCredentialRecord
- Returns:
-
getCreated
Description copied from interface:CredentialRecord
When thisCredentialRecord
was created.- Specified by:
getCreated
in interfaceCredentialRecord
- Returns:
- When this
CredentialRecord
was created.
-
getLastUsed
Description copied from interface:CredentialRecord
The last time thisCredentialRecord
was used.- Specified by:
getLastUsed
in interfaceCredentialRecord
- Returns:
- the last time this
CredentialRecord
was used.
-
getLabel
Description copied from interface:CredentialRecord
A human-readable label for thisCredentialRecord
assigned by the user.- Specified by:
getLabel
in interfaceCredentialRecord
- Returns:
- a label
-
builder
-
fromCredentialRecord
public static ImmutableCredentialRecord.ImmutableCredentialRecordBuilder fromCredentialRecord(CredentialRecord credentialRecord)
-