protected TransportConfigCallback buildTransportConfigCallback() {
        return transport -> {
            if (transport instanceof final SshTransport sshTransport) {
                val sshSessionFactory = new CasJschConfigSessionFactory();
                sshTransport.setSshSessionFactory(sshSessionFactory);
            }
            if (transport instanceof HttpTransport) {
                if (httpClientType == BaseGitProperties.HttpClientTypes.JDK) {
                    HttpTransport.setConnectionFactory(new JDKHttpConnectionFactory());
                } else if (httpClientType == BaseGitProperties.HttpClientTypes.HTTP_CLIENT) {
                    HttpTransport.setConnectionFactory(new HttpClientConnectionFactory());
                }
            }
        };
    }
Build transport config callback.

@return the transport config callback
support/cas-server-support-git-core/src/main/java/org/apereo/cas/git/GitRepositoryBuilder.java