JGit是否支持Git凭证? [英] Does JGit support Git Credentials?

查看:150
本文介绍了JGit是否支持Git凭证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JGit是否支持Git Credentials: http://git-scm.com/docs/gitcredentials

does JGit support Git Credentials as documented here: http://git-scm.com/docs/gitcredentials?

我还没有发现任何内容。

I haven't found yet anything to this topic.

谢谢,
Oli

Thanks, Oli

推荐答案

JGit中的Git凭证对应的是 CredentialsProvider 界面。所有建立与远程存储库连接的命令都可以使用CredentialsProvider实例进行配置。它们从具有 setCredentialsProvider 方法的 TransportCommand 继承。

The counterpart to Git Credentials in JGit is the CredentialsProvider interface. All commands that establish connections to remote repositories can be configured with an CredentialsProvider instance. They inherit from TransportCommand which has a setCredentialsProvider method.

这篇关于JGit是否支持Git凭证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆