Interface CredentialRecord
- All Known Implementing Classes:
ImmutableCredentialRecord
public interface CredentialRecord
Represents a Credential
Record that is stored by the Relying Party
after
successful registration.
- Since:
- 6.4
-
Method Summary
Modifier and TypeMethodDescriptionThe 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
PublicKeyCredentialType getCredentialType()The credential.type- Returns:
-
getCredentialId
Bytes getCredentialId()The credential.id.- Returns:
-
getPublicKey
PublicKeyCose getPublicKey()The publicKey- Returns:
-
getSignatureCount
long getSignatureCount()- Returns:
-
isUvInitialized
boolean isUvInitialized()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.- Returns:
-
getTransports
Set<AuthenticatorTransport> getTransports()The transpots is the value returned fromresponse.getTransports()
.- Returns:
-
isBackupEligible
boolean isBackupEligible()The backupElgible flag is the same as the BE flag in authData.- Returns:
-
isBackupState
boolean isBackupState()The backupState flag is the same as the BS flag in authData.- Returns:
-
getUserEntityUserId
Bytes getUserEntityUserId()A reference to the associatedPublicKeyCredentialUserEntity.getId()
- Returns:
-
getAttestationObject
Bytes getAttestationObject()The attestationObject is the value of the attestationObject attribute when the public key credential source was registered.- Returns:
- the attestationObject
-
getAttestationClientDataJSON
Bytes getAttestationClientDataJSON()The attestationClientDataJSON is the value of the attestationObject attribute when the public key credential source was registered.- Returns:
-
getLabel
String getLabel()A human-readable label for thisCredentialRecord
assigned by the user.- Returns:
- a label
-
getLastUsed
Instant getLastUsed()The last time thisCredentialRecord
was used.- Returns:
- the last time this
CredentialRecord
was used.
-
getCreated
Instant getCreated()When thisCredentialRecord
was created.- Returns:
- When this
CredentialRecord
was created.
-