public final class RegistrationResult
extends java.lang.Object
RelyingParty.finishRegistration(FinishRegistrationOptions).| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
ByteArray |
getAaguid()
The
aaguid
reported in the of the
created credential. |
java.util.Optional<java.util.List<java.security.cert.X509Certificate>> |
getAttestationTrustPath()
The attestation
trust path for the created credential, if any.
|
@NonNull AttestationType |
getAttestationType()
The attestation
type that was used for the created credential.
|
java.util.Optional<AuthenticatorAttachment> |
getAuthenticatorAttachment()
Deprecated.
EXPERIMENTAL: This feature is from a not yet mature standard; it could change as
the standard matures.
|
java.util.Optional<AuthenticatorRegistrationExtensionOutputs> |
getAuthenticatorExtensionOutputs()
The authenticator
extension outputs, if any.
|
java.util.Optional<ClientRegistrationExtensionOutputs> |
getClientExtensionOutputs()
The client
extension outputs, if any.
|
PublicKeyCredentialDescriptor |
getKeyId()
The credential
ID and transports
of the created credential.
|
ByteArray |
getPublicKeyCose()
The public key of the created credential.
|
long |
getSignatureCount()
The signature count returned with the created credential.
|
int |
hashCode() |
boolean |
isAttestationTrusted()
true if and only if the attestation signature was successfully linked to a trusted
attestation root. |
boolean |
isBackedUp()
Deprecated.
EXPERIMENTAL: This feature is from a not yet mature standard; it could change as
the standard matures.
|
boolean |
isBackupEligible()
Deprecated.
EXPERIMENTAL: This feature is from a not yet mature standard; it could change as
the standard matures.
|
java.util.Optional<java.lang.Boolean> |
isDiscoverable()
Try to determine whether the created credential is a discoverable
credential, using the output from the
credProps extension. |
java.lang.String |
toString() |
@Deprecated public boolean isBackupEligible()
You SHOULD store this value in your representation of a RegisteredCredential. CredentialRepository implementations SHOULD set this value as the backupEligible(Boolean) value when reconstructing that RegisteredCredential.
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.@Deprecated public boolean isBackedUp()
You SHOULD store this value in your representation of a RegisteredCredential. CredentialRepository implementations SHOULD set this value as the backupState(Boolean)
value when reconstructing that RegisteredCredential.
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.@Deprecated public java.util.Optional<AuthenticatorAttachment> getAuthenticatorAttachment()
public long getSignatureCount()
This is used in RelyingParty.finishAssertion(FinishAssertionOptions) to verify the
validity of future signature counter values.
RegisteredCredential.getSignatureCount()public PublicKeyCredentialDescriptor getKeyId()
public ByteArray getAaguid()
aaguid
reported in the of the
created credential.
This MAY be an AAGUID consisting of only zeroes.
public ByteArray getPublicKeyCose()
This is used in RelyingParty.finishAssertion(FinishAssertionOptions) to verify the
authentication signatures.
RegisteredCredential.getPublicKeyCose()public java.util.Optional<ClientRegistrationExtensionOutputs> getClientExtensionOutputs()
This is present if and only if at least one extension output is present in the return value.
public java.util.Optional<AuthenticatorRegistrationExtensionOutputs> getAuthenticatorExtensionOutputs()
This is present if and only if at least one extension output is present in the return value.
public java.util.Optional<java.lang.Boolean> isDiscoverable()
credProps extension.true if the created credential is discoverable. A present
false if the created credential is not discoverable. An empty value if it is not
known whether the created credential is discoverable.public java.util.Optional<java.util.List<java.security.cert.X509Certificate>> getAttestationTrustPath()
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() is true.
You can ignore this if authenticator attestation is not relevant to your application.
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 the attestationTrustSource
setting was configured on the RelyingParty instance.
You can ignore this if authenticator attestation is not relevant to your application.
@NonNull public @NonNull AttestationType getAttestationType()
You can ignore this if authenticator attestation is not relevant to your application.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object