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) @Nullable BytesThe attestationClientDataJSON is the value of the attestationObject attribute when the public key credential source was registered.@Nullable BytesThe attestationObject is the value of the attestationObject attribute when the public key credential source was registered.When thisCredentialRecordwas created.The credential.id.@Nullable PublicKeyCredentialTypeThe credential.typegetLabel()A human-readable label for thisCredentialRecordassigned by the user.The last time thisCredentialRecordwas used.The publicKeylongThe transpots is the value returned fromresponse.getTransports().A reference to the associatedPublicKeyCredentialUserEntity.getId()booleanThe backupElgible flag is the same as the BE flag in authData.booleanThe backupState flag is the same as the BS flag in authData.booleanuvInitialized 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:CredentialRecordThe credential.type- Specified by:
getCredentialTypein interfaceCredentialRecord- Returns:
-
getCredentialId
Description copied from interface:CredentialRecordThe credential.id.- Specified by:
getCredentialIdin interfaceCredentialRecord- Returns:
-
getUserEntityUserId
Description copied from interface:CredentialRecordA reference to the associatedPublicKeyCredentialUserEntity.getId()- Specified by:
getUserEntityUserIdin interfaceCredentialRecord- Returns:
-
getPublicKey
Description copied from interface:CredentialRecordThe publicKey- Specified by:
getPublicKeyin interfaceCredentialRecord- Returns:
-
getSignatureCount
public long getSignatureCount()Description copied from interface:CredentialRecord- Specified by:
getSignatureCountin interfaceCredentialRecord- Returns:
-
isUvInitialized
public boolean isUvInitialized()Description copied from interface:CredentialRecorduvInitialized 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:
isUvInitializedin interfaceCredentialRecord- Returns:
-
getTransports
Description copied from interface:CredentialRecordThe transpots is the value returned fromresponse.getTransports().- Specified by:
getTransportsin interfaceCredentialRecord- Returns:
-
isBackupEligible
public boolean isBackupEligible()Description copied from interface:CredentialRecordThe backupElgible flag is the same as the BE flag in authData.- Specified by:
isBackupEligiblein interfaceCredentialRecord- Returns:
-
isBackupState
public boolean isBackupState()Description copied from interface:CredentialRecordThe backupState flag is the same as the BS flag in authData.- Specified by:
isBackupStatein interfaceCredentialRecord- Returns:
-
getAttestationObject
Description copied from interface:CredentialRecordThe attestationObject is the value of the attestationObject attribute when the public key credential source was registered.- Specified by:
getAttestationObjectin interfaceCredentialRecord- Returns:
- the attestationObject
-
getAttestationClientDataJSON
Description copied from interface:CredentialRecordThe attestationClientDataJSON is the value of the attestationObject attribute when the public key credential source was registered.- Specified by:
getAttestationClientDataJSONin interfaceCredentialRecord- Returns:
-
getCreated
Description copied from interface:CredentialRecordWhen thisCredentialRecordwas created.- Specified by:
getCreatedin interfaceCredentialRecord- Returns:
- When this
CredentialRecordwas created.
-
getLastUsed
Description copied from interface:CredentialRecordThe last time thisCredentialRecordwas used.- Specified by:
getLastUsedin interfaceCredentialRecord- Returns:
- the last time this
CredentialRecordwas used.
-
getLabel
Description copied from interface:CredentialRecordA human-readable label for thisCredentialRecordassigned by the user.- Specified by:
getLabelin interfaceCredentialRecord- Returns:
- a label
-
builder
-
fromCredentialRecord
public static ImmutableCredentialRecord.ImmutableCredentialRecordBuilder fromCredentialRecord(CredentialRecord credentialRecord)
-