private TLSClientParameters getTlsClientParameters() {
        val tlsClientParams = new TLSClientParameters();
        tlsClientParams.setHostnameVerifier(hostnameVerifier);
        tlsClientParams.setSslContext(sslContext.getSslContext());
        tlsClientParams.setSecureRandom(RandomUtils.getNativeInstance());
        tlsClientParams.setKeyManagers(sslContext.getKeyManagers());
        tlsClientParams.setTrustManagers(sslContext.getTrustManagers());
        tlsClientParams.setSSLSocketFactory(sslContext.getSslContext().getSocketFactory());
        return tlsClientParams;
    }
Build client for relying party token responses.

@param securityToken the security token
@param service       the service
@return the security token service client
support/cas-server-support-ws-sts-api/src/main/java/org/apereo/cas/authentication/SecurityTokenServiceClientBuilder.java