@Override
        protected JSch createDefaultJSch(final FS fs) throws JSchException {
            val defaultJSch = super.createDefaultJSch(fs);
            if (clearExistingIdentities) {
                defaultJSch.removeAllIdentity();
            }

            if (StringUtils.hasText(privateKeyPath)) {
                defaultJSch.addIdentity(privateKeyPath, privateKeyPassphrase);
            }
            return defaultJSch;
        }
This is {@link GitRepositoryBuilder}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-git-core/src/main/java/org/apereo/cas/git/GitRepositoryBuilder.java