parent
d66710205c
commit
d8cded994f
1 changed files with 13 additions and 15 deletions
|
@ -37,6 +37,7 @@ import static org.keycloak.testsuite.util.UIUtils.getTextInputValue;
|
||||||
import static org.keycloak.testsuite.util.UIUtils.setTextInputValue;
|
import static org.keycloak.testsuite.util.UIUtils.setTextInputValue;
|
||||||
import static org.keycloak.testsuite.util.WaitUtils.waitForPageToLoad;
|
import static org.keycloak.testsuite.util.WaitUtils.waitForPageToLoad;
|
||||||
import static org.keycloak.testsuite.util.WaitUtils.waitUntilElement;
|
import static org.keycloak.testsuite.util.WaitUtils.waitUntilElement;
|
||||||
|
import static org.keycloak.utils.StringUtil.isNotBlank;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class for WebAuthnPolicy Page
|
* Helper class for WebAuthnPolicy Page
|
||||||
|
@ -127,11 +128,10 @@ public class WebAuthnPolicyPage extends Authentication {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AttestationConveyancePreference getAttestationConveyancePreference() {
|
public AttestationConveyancePreference getAttestationConveyancePreference() {
|
||||||
return getRequirementOrNull(() ->
|
return getRequirementOrNull(() -> {
|
||||||
AttestationConveyancePreference.create(checkElement(() -> attestationConveyancePreference
|
final String value = checkElement(() -> attestationConveyancePreference.getFirstSelectedOption().getText());
|
||||||
.getFirstSelectedOption()
|
return isNotBlank(value) ? AttestationConveyancePreference.create(value) : null;
|
||||||
.getText()))
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAttestationConveyancePreference(AttestationConveyancePreference attestation) {
|
public void setAttestationConveyancePreference(AttestationConveyancePreference attestation) {
|
||||||
|
@ -146,11 +146,10 @@ public class WebAuthnPolicyPage extends Authentication {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AuthenticatorAttachment getAuthenticatorAttachment() {
|
public AuthenticatorAttachment getAuthenticatorAttachment() {
|
||||||
return getRequirementOrNull(() ->
|
return getRequirementOrNull(() -> {
|
||||||
AuthenticatorAttachment.create(checkElement(() -> authenticatorAttachment
|
final String value = checkElement(() -> authenticatorAttachment.getFirstSelectedOption().getText());
|
||||||
.getFirstSelectedOption()
|
return isNotBlank(value) ? AuthenticatorAttachment.create(value) : null;
|
||||||
.getText()))
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAuthenticatorAttachment(AuthenticatorAttachment attachment) {
|
public void setAuthenticatorAttachment(AuthenticatorAttachment attachment) {
|
||||||
|
@ -181,11 +180,10 @@ public class WebAuthnPolicyPage extends Authentication {
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserVerificationRequirement getUserVerification() {
|
public UserVerificationRequirement getUserVerification() {
|
||||||
return getRequirementOrNull(() ->
|
return getRequirementOrNull(() -> {
|
||||||
UserVerificationRequirement.create(checkElement(() -> userVerification
|
final String value = checkElement(() -> userVerification.getFirstSelectedOption().getText());
|
||||||
.getFirstSelectedOption()
|
return isNotBlank(value) ? UserVerificationRequirement.create(value) : null;
|
||||||
.getText()))
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserVerification(UserVerificationRequirement verification) {
|
public void setUserVerification(UserVerificationRequirement verification) {
|
||||||
|
|
Loading…
Reference in a new issue