@Override
    public TrustManagerFactory getTrustManagerFactory() {
        return Unchecked.supplier(() -> {
            val factory = TrustManagerFactory.getInstance(ALG_NAME_PKIX);
            factory.init(this.casTrustStore);
            return factory;
        }).get();
    }
This is {@link DefaultCasSSLContext}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultCasSSLContext.java