@Test void validateAuthenticatorDataField_test() { AuthenticatorData<RegistrationExtensionAuthenticatorOutput> authenticatorData = new AuthenticatorData<>(null, (byte) 0, 0); assertThrows(ConstraintViolationException.class, () -> target.validateAuthenticatorDataField(authenticatorData) ); }
void validateAuthenticatorDataField(AuthenticatorData<RegistrationExtensionAuthenticatorOutput> authenticatorData) { if (authenticatorData.getAttestedCredentialData() == null) { throw new ConstraintViolationException("attestedCredentialData must not be null on registration"); } }
RegistrationDataValidator { void validateAuthenticatorDataField(AuthenticatorData<RegistrationExtensionAuthenticatorOutput> authenticatorData) { if (authenticatorData.getAttestedCredentialData() == null) { throw new ConstraintViolationException("attestedCredentialData must not be null on registration"); } } }
RegistrationDataValidator { void validateAuthenticatorDataField(AuthenticatorData<RegistrationExtensionAuthenticatorOutput> authenticatorData) { if (authenticatorData.getAttestedCredentialData() == null) { throw new ConstraintViolationException("attestedCredentialData must not be null on registration"); } } RegistrationDataValidator(
            List<AttestationStatementValidator> attestationStatementValidators,
            CertPathTrustworthinessValidator certPathTrustworthinessValidator,
            SelfAttestationTrustworthinessValidator selfAttestationTrustworthinessValidator,
            List<CustomRegistrationValidator> customRegistrationValidators,
            ObjectConverter objectConverter); }
RegistrationDataValidator { void validateAuthenticatorDataField(AuthenticatorData<RegistrationExtensionAuthenticatorOutput> authenticatorData) { if (authenticatorData.getAttestedCredentialData() == null) { throw new ConstraintViolationException("attestedCredentialData must not be null on registration"); } } RegistrationDataValidator(
            List<AttestationStatementValidator> attestationStatementValidators,
            CertPathTrustworthinessValidator certPathTrustworthinessValidator,
            SelfAttestationTrustworthinessValidator selfAttestationTrustworthinessValidator,
            List<CustomRegistrationValidator> customRegistrationValidators,
            ObjectConverter objectConverter); @SuppressWarnings("deprecation") void validate(RegistrationData registrationData, RegistrationParameters registrationParameters); List<CustomRegistrationValidator> getCustomRegistrationValidators(); }
RegistrationDataValidator { void validateAuthenticatorDataField(AuthenticatorData<RegistrationExtensionAuthenticatorOutput> authenticatorData) { if (authenticatorData.getAttestedCredentialData() == null) { throw new ConstraintViolationException("attestedCredentialData must not be null on registration"); } } RegistrationDataValidator(
            List<AttestationStatementValidator> attestationStatementValidators,
            CertPathTrustworthinessValidator certPathTrustworthinessValidator,
            SelfAttestationTrustworthinessValidator selfAttestationTrustworthinessValidator,
            List<CustomRegistrationValidator> customRegistrationValidators,
            ObjectConverter objectConverter); @SuppressWarnings("deprecation") void validate(RegistrationData registrationData, RegistrationParameters registrationParameters); List<CustomRegistrationValidator> getCustomRegistrationValidators();  }