It's all about the answers!

Ask a question

is there a way to make use of password file in api's instead of hardcoding my password?


shruti gudagur (2811115) | asked Jul 11 '14, 4:12 a.m.
Hello,

is there a way to make use of password file/encrypted password in api's instead of hardcoding my password?
any help will be greatly appreciated.

Thanks
Shruti

Comments
Susan Hanson commented Jul 11 '14, 5:50 a.m.

Which APIs?  Our team uses the Java APIs alot and we always load the userid/password from a file so that multiple people can use the program all with supplying their own  credentials.


shruti gudagur commented Jul 11 '14, 6:06 a.m.

Hi Susan,

Thanks for the immediate reply.
I am making use of Java client api's to login to rtc and fetch project area details.
I am hardcoding my password as of now.
but I want to make use of something like as you mentioned.

Thanks
Shruti

One answer



permanent link
sam detweiler (12.5k6195201) | answered Jul 11 '14, 7:20 a.m.
edited Jul 11 '14, 8:15 a.m.
see the accepted answer here
https://jazz.net/forum/questions/156705/is-there-support-for-password-files-in-the-plain-java-client-api

I supplied some sample code to show how to do this

Your answer


Register or 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.