Package com.yubico.webauthn
Class RegistrationResult
- java.lang.Object
 - 
- com.yubico.webauthn.RegistrationResult
 
 
- 
public final class RegistrationResult extends java.lang.ObjectThe result of a call toRelyingParty.finishRegistration(FinishRegistrationOptions). 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Optional<Attestation>getAttestationMetadata()@NonNull AttestationTypegetAttestationType()The attestation type §6.4.3.@NonNull PublicKeyCredentialDescriptorgetKeyId()The credential ID of the created credential.@NonNull ByteArraygetPublicKeyCose()The public key of the created credential.@NonNull java.util.List<java.lang.String>getWarnings()Zero or more human-readable messages about non-critical issues.inthashCode()booleanisAttestationTrusted()trueif and only if the attestation signature was successfully linked to a trusted attestation root.com.yubico.webauthn.RegistrationResult.RegistrationResultBuildertoBuilder()java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getAttestationMetadata
public java.util.Optional<Attestation> getAttestationMetadata()
 
- 
toBuilder
public com.yubico.webauthn.RegistrationResult.RegistrationResultBuilder toBuilder()
 
- 
getKeyId
@NonNull public @NonNull PublicKeyCredentialDescriptor getKeyId()
The credential ID of the created credential.- See Also:
 - Credential ID, 
PublicKeyCredential.getId() 
 
- 
isAttestationTrusted
public boolean isAttestationTrusted()
trueif and only if the attestation signature was successfully linked to a trusted attestation root.You can ignore this if authenticator attestation is not relevant to your application.
 
- 
getAttestationType
@NonNull public @NonNull AttestationType getAttestationType()
The attestation type §6.4.3. Attestation Types that was used for the created credential.You can ignore this if authenticator attestation is not relevant to your application.
- See Also:
 - §6.4.3. Attestation Types
 
 
- 
getPublicKeyCose
@NonNull public @NonNull ByteArray getPublicKeyCose()
The public key of the created credential.This is used in
RelyingParty.finishAssertion(FinishAssertionOptions)to verify the authentication signatures.- See Also:
 RegisteredCredential.getPublicKeyCose()
 
- 
getWarnings
@NonNull public @NonNull java.util.List<java.lang.String> getWarnings()
Zero or more human-readable messages about non-critical issues. 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -