Class RegistrationResult
RelyingParty.finishRegistration(FinishRegistrationOptions).-
Method Summary
Modifier and TypeMethodDescriptionbooleanTheaaguidreported in the of the created credential.The attestation trust path for the created credential, if any.@NonNull AttestationTypeThe 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.longThe signature count returned with the created credential.inthashCode()booleantrueif and only if the attestation signature was successfully linked to a trusted attestation root.booleanDeprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.booleanDeprecated.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 thecredPropsextension.booleanCheck 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:
trueif 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.CredentialRepositoryimplementations SHOULD set this value as thebackupEligible(Boolean)value when reconstructing thatRegisteredCredential.- Returns:
trueif 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.CredentialRepositoryimplementations SHOULD set this value as thebackupState(Boolean)value when reconstructing thatRegisteredCredential.- Returns:
trueif 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
Theaaguidreported 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 thecredPropsextension.- Returns:
- A present
trueif the created credential is a passkey (discoverable). A presentfalseif 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()trueif and only if the attestation signature was successfully linked to a trusted attestation root.This will always be
falseunless theattestationTrustSourcesetting was configured on theRelyingPartyinstance.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
-