Class RegistrationResult
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.admin.RegistrationResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder.static interfaceBuilder stage.static interfaceBuilder stage.static interfaceBuilder stage.static interfaceBuilder stage. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanIs the attestation signature valid.private final com.yubico.webauthn.data.AttestationTypeThe attestation type that was used for this credential.private final com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse,com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> The verified attestation response. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor for use by the builder. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Get the builder used to construct this object.com.yubico.webauthn.data.ByteArrayGet the AAGUID of the authenticator.final com.yubico.webauthn.data.AttestationTypeThe attestation type that was used for this credential.final com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse,com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> Get the attestation response.com.yubico.webauthn.data.PublicKeyCredentialDescriptorgetKeyId()Get the credential ID and transports of the created credential.com.yubico.webauthn.data.ByteArrayGet the public key of the created credential in COSE format.final booleanIs the attestation signature valid.Try to determine if this credential is a discoverable (passkey) type by inspecting the ResidentKey flag inside the credential properties extension.booleanWas the user verified by a suitable authorization gesture during the registration ceremony?
-
Field Details
-
attestationTrusted
private final boolean attestationTrustedIs the attestation signature valid. Does it link to a trusted root attestation.Note, this is different than if the assertion signature is valid.
-
attestationType
@Nonnull private final com.yubico.webauthn.data.AttestationType attestationTypeThe attestation type that was used for this credential. This only applies to attestation statements if requested. -
credential
@Nonnull private final com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse,com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> credentialThe verified attestation response.
-
-
Constructor Details
-
RegistrationResult
Private constructor for use by the builder.- Parameters:
builder- the builder used to set the fields of this class
-
-
Method Details
-
isAttestationTrusted
public final boolean isAttestationTrusted()Is the attestation signature valid. Does it link to a trusted root attestation.Note, this is different than if the assertion signature is valid.
- Returns:
- true if the attestation signature is valid, false otherwise.
-
getAttestationType
@Nonnull public final com.yubico.webauthn.data.AttestationType getAttestationType()The attestation type that was used for this credential. This only applies to attestation statements iff requested.- Returns:
- the attestation type.
-
getKeyId
@Nonnull public com.yubico.webauthn.data.PublicKeyCredentialDescriptor getKeyId()Get the credential ID and transports of the created credential.- Returns:
- the credential ID and transports of the created credential.
-
getPublicKeyCose
@Nullable public com.yubico.webauthn.data.ByteArray getPublicKeyCose()Get the public key of the created credential in COSE format.- Returns:
- the public key,
nullif not found.
-
getAaguid
@Nullable public com.yubico.webauthn.data.ByteArray getAaguid()Get the AAGUID of the authenticator.- Returns:
- the AAGUID of the authenticator,
nullif not found.
-
isDiscoverable
Try to determine if this credential is a discoverable (passkey) type by inspecting the ResidentKey flag inside the credential properties extension.- Returns:
- true if the credential is discoverable (a passkey), false if it is not, or empty if not known e.g. the extensions were not returned.
-
isUserVerified
public boolean isUserVerified()Was the user verified by a suitable authorization gesture during the registration ceremony?- Returns:
- true if the authenticator claims to have performed user verification, false otherwise.
-
getCredential
@Nonnull public final com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse,com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> getCredential()Get the attestation response.- Returns:
- the credential
-
builder
Get the builder used to construct this object.- Returns:
- the builder
-