This content has been marked as final.
Show 3 replies
-
1. Re: Set Security Credentials for @Singleton @Startup
mchoma Dec 15, 2017 4:23 AM (in response to pcarrollnf)Hi,
you should be able to achieve the same with SecurityDomain.authenticate() method. See [1] for usage.
-
2. Re: Set Security Credentials for @Singleton @Startup
pcarrollnf Jan 2, 2018 4:00 PM (in response to mchoma)Hello, thank you for the response. I implemented this and it appears to work. I would prefer not to use a plain text password for the following line:
final SecurityIdentity securityIdentity = securityDomain.authenticate(username, new PasswordGuessEvidence(password.toCharArray()));
It seems I would have to hard code the clear text password in the code or obtain the clear text password from a properties file. What is the best way to avoid using clear text passwords?
If I should start a new discussion based on the question above, please let me know.
Thank you.
-
3. Re: Set Security Credentials for @Singleton @Startup
mchoma Jan 3, 2018 3:53 AM (in response to pcarrollnf)Yes, I think make a new discussion based on your new question. And mark this as answered.