Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC 6.0: How to get log-in user password in RTC Eclipse client

I able to get the repository URL, username from the user login in RTC Eclipse client but i need password as well to   use all these properties in my custom plugin that will fetch data from DNG. can anyone help let me know how to get the password or some other way to get session object and use it in DNG login ?. Thanks in advance.

0 votes


Accepted answer

Permanent link
No Ralph, It is possible. Thanks to my colleague Nilesh.

ITeamRepository teamRepositoy[] = TeamPlatform.getTeamRepositoryService().getTeamRepositories();
ITeamRepository currentRepository =  teamRepositoy[0];
UsernameAndPasswordLoginInfo loginInfo = (UsernameAndPasswordLoginInfo) currentRepository.getLoginInfo();
System.out.println(loginInfo.getPassword());
Ralph Schoon selected this answer as the correct answer

1 vote

Comments

Interesting, thanks for sharing!


One other answer

Permanent link
I am pretty sure you can't get the password. It is likely not stored anywhere, as that would be a security threat.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Jan 22 '16, 1:27 a.m.

Question was seen: 3,616 times

Last updated: Jan 22 '16, 5:17 a.m.

Confirmation Cancel Confirm