Class RegistrationResult
RelyingParty.finishRegistration(FinishRegistrationOptions)
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theaaguid
reported in the of the created credential.The attestation trust path for the created credential, if any.@NonNull AttestationType
The attestation type that was used for the created credential.Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.The authenticator extension outputs, if any.The client extension outputs, if any.getKeyId()
The credential ID and transports of the created credential.The public key of the created credential.long
The signature count returned with the created credential.int
hashCode()
boolean
true
if and only if the attestation signature was successfully linked to a trusted attestation root.boolean
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.boolean
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.Try to determine whether the created credential is a discoverable credential, also called a passkey, using the output from thecredProps
extension.boolean
Check whether the user verification as performed during the registration ceremony.toString()
-
Method Details
-
isUserVerified
public boolean isUserVerified()Check whether the user verification as performed during the registration ceremony.This flag is also available via
PublicKeyCredential
.getResponse()
.getParsedAuthenticatorData()
.getFlags()
.UV
- Returns:
true
if and only if the authenticator claims to have performed user verification during the registration ceremony.- See Also:
-
isBackupEligible
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.Check whether the created credential is backup eligible, using the BE flag in the authenticator data.You SHOULD store this value in your representation of a
RegisteredCredential
.CredentialRepository
implementations SHOULD set this value as thebackupEligible(Boolean)
value when reconstructing thatRegisteredCredential
.- Returns:
true
if and only if the created credential is backup eligible. NOTE that this is only a hint and not a guarantee, unless backed by a trusted authenticator attestation.- See Also:
-
isBackedUp
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.Get the current backup state of the created credential, using the BS flag in the authenticator data.You SHOULD store this value in your representation of a
RegisteredCredential
.CredentialRepository
implementations SHOULD set this value as thebackupState(Boolean)
value when reconstructing thatRegisteredCredential
.- Returns:
true
if and only if the created credential is believed to currently be backed up. NOTE that this is only a hint and not a guarantee, unless backed by a trusted authenticator attestation.- See Also:
-
getAuthenticatorAttachment
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.The authenticator attachment modality in effect at the time the credential was created. -
getSignatureCount
public long getSignatureCount()The signature count returned with the created credential.This is used in
RelyingParty.finishAssertion(FinishAssertionOptions)
to verify the validity of future signature counter values.- See Also:
-
getKeyId
The credential ID and transports of the created credential. -
getAaguid
Theaaguid
reported in the of the created credential.This MAY be an AAGUID consisting of only zeroes.
-
getPublicKeyCose
The public key of the created credential.This is used in
RelyingParty.finishAssertion(FinishAssertionOptions)
to verify the authentication signatures.- See Also:
-
getClientExtensionOutputs
The client extension outputs, if any.This is present if and only if at least one extension output is present in the return value.
-
getAuthenticatorExtensionOutputs
The authenticator extension outputs, if any.This is present if and only if at least one extension output is present in the return value.
-
isDiscoverable
Try to determine whether the created credential is a discoverable credential, also called a passkey, using the output from thecredProps
extension.- Returns:
- A present
true
if the created credential is a passkey (discoverable). A presentfalse
if the created credential is not a passkey. An empty value if it is not known whether the created credential is a passkey. - See Also:
-
getAttestationTrustPath
The attestation trust path for the created credential, if any.If present, this may be useful for looking up attestation metadata from external sources. The attestation trust path has been successfully verified as trusted if and only if
isAttestationTrusted()
istrue
.You can ignore this if authenticator attestation is not relevant to your application.
- See Also:
-
isAttestationTrusted
public boolean isAttestationTrusted()true
if and only if the attestation signature was successfully linked to a trusted attestation root.This will always be
false
unless theattestationTrustSource
setting was configured on theRelyingParty
instance.You can ignore this if authenticator attestation is not relevant to your application.
-
getAttestationType
The attestation type that was used for the created credential.You can ignore this if authenticator attestation is not relevant to your application.
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-