It's all about the answers!

Ask a question

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


Naveen Tyagi (1874119) | asked Jan 22 '16, 1:27 a.m.
edited Jan 22 '16, 1:29 a.m.
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.

Accepted answer


permanent link
Naveen Tyagi (1874119) | answered Jan 22 '16, 4:50 a.m.
edited Jan 22 '16, 5:17 a.m.
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

Comments
Ralph Schoon commented Jan 22 '16, 4:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Interesting, thanks for sharing!

One other answer



permanent link
Ralph Schoon (55.1k23642) | answered Jan 22 '16, 2:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jan 22 '16, 2:53 a.m.
I am pretty sure you can't get the password. It is likely not stored anywhere, as that would be a security threat.

Your answer


Register or to post your answer.