use of com.webauthn4j.server.CoreServerProperty in project webauthn4j by webauthn4j.
the class CoreAuthenticationParametersTest method constructor_without_allowCredentials_test.
@Deprecated
@Test
void constructor_without_allowCredentials_test() {
// Server properties
String rpId = "example.com";
Challenge challenge = new DefaultChallenge();
CoreServerProperty serverProperty = new CoreServerProperty(rpId, challenge);
Authenticator authenticator = mock(Authenticator.class);
CoreAuthenticationParameters instance = new CoreAuthenticationParameters(serverProperty, authenticator, false, true);
assertThat(instance.getServerProperty()).isEqualTo(serverProperty);
assertThat(instance.getAuthenticator()).isEqualTo(authenticator);
assertThat(instance.getAllowCredentials()).isNull();
assertThat(instance.isUserVerificationRequired()).isFalse();
assertThat(instance.isUserPresenceRequired()).isTrue();
}
use of com.webauthn4j.server.CoreServerProperty in project webauthn4j by webauthn4j.
the class CoreRegistrationParametersTest method constructor_without_pubKeyCredParams_test.
@Deprecated
@Test
void constructor_without_pubKeyCredParams_test() {
// Server properties
String rpId = "example.com";
Challenge challenge = new DefaultChallenge();
CoreServerProperty serverProperty = new CoreServerProperty(rpId, challenge);
CoreRegistrationParameters instance = new CoreRegistrationParameters(serverProperty, false, true);
assertThat(instance.getServerProperty()).isEqualTo(serverProperty);
assertThat(instance.getPubKeyCredParams()).isNull();
assertThat(instance.isUserVerificationRequired()).isFalse();
assertThat(instance.isUserPresenceRequired()).isTrue();
}
use of com.webauthn4j.server.CoreServerProperty in project webauthn4j by webauthn4j.
the class CoreRegistrationParametersTest method constructor_without_pubKeyCredParams_userPresenceRequired_test.
@Deprecated
@Test
void constructor_without_pubKeyCredParams_userPresenceRequired_test() {
// Server properties
String rpId = "example.com";
Challenge challenge = new DefaultChallenge();
CoreServerProperty serverProperty = new CoreServerProperty(rpId, challenge);
CoreRegistrationParameters instance = new CoreRegistrationParameters(serverProperty, false);
assertThat(instance.getServerProperty()).isEqualTo(serverProperty);
assertThat(instance.getPubKeyCredParams()).isNull();
assertThat(instance.isUserVerificationRequired()).isFalse();
}
Aggregations