diff --git a/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcClientConfiguration.java b/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcClientConfiguration.java index db872b30a89..3e18fb4eb6d 100644 --- a/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcClientConfiguration.java +++ b/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcClientConfiguration.java @@ -419,10 +419,7 @@ public void setSSLRequired(SSLRequired sslRequired) { } public boolean isSSLEnabled() { - if (SSLRequired.NONE == sslRequired) { - return false; - } - return true; + return SSLRequired.NONE != sslRequired; } public int getConfidentialPort() {