@SuppressWarnings("java:S4830")
    private static SSLContext getTheAllTrustingSSLContext() {
        return FunctionUtils.doUnchecked(() -> {
            val sslContext = SSLContext.getInstance("TLS");
            sslContext.init(null, new TrustManager[]{new X509TrustManager() {

                @Override
                public void checkClientTrusted(final X509Certificate[] xcs, final String value) {
                }

                @Override
                public void checkServerTrusted(final X509Certificate[] xcs, final String value) {
                }

                @Override
                public X509Certificate[] getAcceptedIssuers() {
                    return null;
                }

            }}, null);
            return sslContext;
        });
    }
This is {@link ValidateEndpointCommand}.

@author Misagh Moayyed
@author John Gasper
@since 5.3.0
support/cas-server-support-shell-core/src/main/java/org/apereo/cas/shell/commands/util/ValidateEndpointCommand.java