SslReqBean setKeyStore(String s)

22 views
Skip to first unread message

Maciek

unread,
Jan 28, 2014, 7:37:51 PM1/28/14
to rest-...@googlegroups.com
I am a bit confused what this method expects as the parameter. 
I have a keystore.jks file to start with.
I do not think it is just the straight content of this file which needs to be converted to a string and passed to the setKeyStore() method.
Should I load it to the java.security.KeyStore first?

How do I need to manipulate the content of the file to have a correct parameter for this method?

Thanks,
Maciek

Subhash Chandran

unread,
Jan 29, 2014, 1:22:19 AM1/29/14
to rest-...@googlegroups.com
I should have designed the parameter as java.io.File. setKeyStore() method accepts the file-path of the key-store.

> How do I need to manipulate the content of the file to have a correct parameter for this method?

You don't have to modify. Just pass the jks file path.

Subhash.


--
You received this message because you are subscribed to the Google Groups "rest-client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-client...@googlegroups.com.
To post to this group, send email to rest-...@googlegroups.com.
Visit this group at http://groups.google.com/group/rest-client.
For more options, visit https://groups.google.com/groups/opt_out.



--
Subhash Chandran
Author PHP OOP: Quick & Dirty for Advanced Learners
Phone: +91 979 102 0238
Skype & GTalk: subwiz

Maciek

unread,
Jan 29, 2014, 7:24:11 AM1/29/14
to rest-...@googlegroups.com
Yep, the java.io.File would be quite self explanatory. Of course looking now at your answer, it is SOOO OBVIOUS what the parameter should be ;).

Thanks a lot,
Maciek

Maciek

unread,
Jan 29, 2014, 9:07:59 AM1/29/14
to rest-...@googlegroups.com
Thanks!


On Wednesday, January 29, 2014 12:22:19 AM UTC-6, Subhash Chandran wrote:

Maciek

unread,
Jan 30, 2014, 9:15:01 AM1/30/14
to rest-...@googlegroups.com
Thanks, works great!
And yes, having File as a parameter would be ... less ambiguous.
Regards,
Maciek


On Wednesday, January 29, 2014 12:22:19 AM UTC-6, Subhash Chandran wrote:

Subhash Chandran

unread,
Feb 1, 2014, 10:14:46 AM2/1/14
to rest-...@googlegroups.com
Made the change to java.io.File. Thanks for pointing this out.
Reply all
Reply to author
Forward
0 new messages