Class RegistrationResult.Builder
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.admin.RegistrationResult.Builder
- All Implemented Interfaces:
RegistrationResult.IAttestationTrustedStage,RegistrationResult.IAttestationTypeStage,RegistrationResult.IBuildStage,RegistrationResult.ICredentialStage
- Enclosing class:
- RegistrationResult
public static final class RegistrationResult.Builder
extends Object
implements RegistrationResult.IAttestationTrustedStage, RegistrationResult.IAttestationTypeStage, RegistrationResult.ICredentialStage, RegistrationResult.IBuildStage
Builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIs the attestation signature valid.private com.yubico.webauthn.data.AttestationTypeThe attestation type that was used for this credential.private com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse,com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> The verified attestation response. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a registration result.withAttestationTrusted(boolean attTrusted) Is the attestation signature valid.withAttestationType(com.yubico.webauthn.data.AttestationType attType) Set the attestation type.withCredential(com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse, com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> cred) Set the public key credential attestation response.
-
Field Details
-
attestationTrusted
private 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 com.yubico.webauthn.data.AttestationType attestationTypeThe attestation type that was used for this credential. This only applies to attestation statements iff requested. -
credential
@Nonnull private com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse,com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> credentialThe verified attestation response.
-
-
Constructor Details
-
Builder
private Builder()Constructor.
-
-
Method Details
-
withAttestationTrusted
Description copied from interface:RegistrationResult.IAttestationTrustedStageIs the attestation signature valid. Does it link to a trusted root attestation?- Specified by:
withAttestationTrustedin interfaceRegistrationResult.IAttestationTrustedStage- Parameters:
attTrusted- is the attestation trusted.- Returns:
- this builder
-
withAttestationType
public RegistrationResult.ICredentialStage withAttestationType(@Nonnull com.yubico.webauthn.data.AttestationType attType) Description copied from interface:RegistrationResult.IAttestationTypeStageSet the attestation type.- Specified by:
withAttestationTypein interfaceRegistrationResult.IAttestationTypeStage- Parameters:
attType- the attestation type- Returns:
- this builder
-
withCredential
public RegistrationResult.IBuildStage withCredential(@Nonnull com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse, com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> cred) Description copied from interface:RegistrationResult.ICredentialStageSet the public key credential attestation response.- Specified by:
withCredentialin interfaceRegistrationResult.ICredentialStage- Parameters:
cred- the attestation response- Returns:
- this builder
-
build
Description copied from interface:RegistrationResult.IBuildStageBuild a registration result.- Specified by:
buildin interfaceRegistrationResult.IBuildStage- Returns:
- the result
-