Java 如何在 Subclipse 中更改用户凭据?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1491775/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change user credentials in Subclipse?
提问by Ajay
I am using Subclipse (Subversion integration in Eclipse). I now want to change the user credentials in subclipse. How do I do that? That is to login into subversion using another user account.
我正在使用 Subclipse(Eclipse 中的 Subversion 集成)。我现在想更改 subclipse 中的用户凭据。我怎么做?即使用另一个用户帐户登录 subversion。
回答by Paul Lammertsma
As I'm using Subversive, I can't check this, but it should be something along these lines:
当我使用Subversive 时,我无法检查这个,但它应该是这样的:
- Go to the Preferencesscreen
- Under Team, SVN, select Password management
- Remove the stored authentication data for the desired repository
- 转到首选项屏幕
- 在Team, SVN 下,选择Password management
- 删除所需存储库的已存储身份验证数据
You can also do it from your Subversion client, as the authentication data is stored in the .svn
folders.
您也可以从 Subversion 客户端执行此操作,因为身份验证数据存储在.svn
文件夹中。
回答by Noel Grandin
If you want to flush the existing credentials, then look at this answer in the subversion wiki:
如果要刷新现有凭据,请查看 subversion wiki 中的此答案:
http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8
http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8
If you're trying to checkout a repository under a specific username, but the repository is available read-only under a guest account, then there is no solution - you will have to do the checkout using the command line tool. Even TortoiseSVN does not support this use-case.
如果您尝试以特定用户名签出存储库,但该存储库在来宾帐户下以只读方式可用,则没有解决方案 - 您必须使用命令行工具进行签出。甚至 TortoiseSVN 也不支持这个用例。
回答by Thomas W
Delete, or rename, the Eclipse '.keyring' file in Eclipse's configuration folder. This is where the Subclipse SVNKit connector caches your SVN credentials..
删除或重命名 Eclipse 配置文件夹中的 Eclipse '.keyring' 文件。这是 Subclipse SVNKit 连接器缓存您的 SVN 凭据的地方。
[ECLIPSE INSTALL]\configuration\org.eclipse.core.runtime.keyring
[ECLIPSE 安装]\configuration\org.eclipse.core.runtime.keyring
If, on the other hand, you're using the JavaHL connector -- or SVN command-line -- then their credentials are stored in the Subversion runtime config folder. Delete or rename the credential file.
另一方面,如果您使用的是 JavaHL 连接器——或 SVN 命令行——那么它们的凭据存储在 Subversion 运行时配置文件夹中。删除或重命名凭证文件。
On Windows: %APPDATA%\Subversion\auth
On Linux and OSX: ~/.subversion/auth
在 Windows 上:%APPDATA%\Subversion\auth
在 Linux 和 OSX 上:~/.subversion/auth
Sorry about this pig of complexity, for what should be a real version-control system. :-(
很抱歉这头猪的复杂性,因为它应该是一个真正的版本控制系统。:-(
回答by Joe Plante
In Mac OS X Lion, I found it stored in the Apple keychain
在 Mac OS X Lion 中,我发现它存储在 Apple 钥匙串中
回答by Danylo Volokh
You will find password files at:disk:\Documents and Settings\your_username\Application Data\Subversion\auth\svn.simple\
您将在以下位置找到密码文件:disk:\Documents and Settings\your_username\Application Data\Subversion\auth\svn.simple\
Remove the files and refresh the repository. Subclipse will prompt you to enter username and password for your repository.
删除文件并刷新存储库。Subclipse 将提示您输入存储库的用户名和密码。
回答by ajeetkg
I struggled a lot on my Mac. Later found a simple solution.
我在我的 Mac 上挣扎了很多。后来找到了一个简单的解决办法。
1) Go to preference
2) Go to general and look for the security tab
1) 转到首选项
2) 转到常规并查找安全选项卡
3) Go into the content section & look for the repository
3)进入内容部分并查找存储库
4) Delete the repository. It will automatically restart.
4) 删除存储库。它会自动重启。
Alternatively, you can go to the secure_storage file under your home directory. Open it in the VI editor and remove the line for the corresponding repository. I would prefer the UI as it is simple.
或者,您可以转到主目录下的 secure_storage 文件。在 VI 编辑器中打开它并删除对应存储库的行。我更喜欢 UI,因为它很简单。
(~/.eclipse/org.eclipse.equinox.security/secure_storage)
(~/.eclipse/org.eclipse.equinox.security/secure_storage)
回答by thiagomdo
In SVN perspective, right click a repository and select 'Location Properties...'. Edit 'Authentication', in General tab.
在 SVN 透视图中,右键单击存储库并选择'Location Properties...'。在“常规”选项卡中编辑“身份验证”。