Programmatically storing a password in WildFly 17 or 21 crednetial store

44 views
Skip to first unread message

Alexander Minchev

unread,
Apr 28, 2023, 8:32:25 AM4/28/23
to WildFly

I am a programmer and I am developing a JEE application running on WildFly 17 application server. 

I want to store programmatically passwords in a WildFly credential store and I  followed the steps in the link below:

https://github.com/wildfly-security-incubator/elytron-examples/blob/main/credential-store/src/main/java/org/wildfly/security/examples/CredentialStoreExample.java

Specifically, to store a password I used the instruction at line 61 from the code above, i.e.:

credentialStore.store("clearPassword", new PasswordCredential(clearPassword));

The password is actually stored, but when I restart the application server, the entry is no longer there. I tried the same with WildFly 21, but nothing changed. Where is my mistake?


Thank you and kind regards,

Alex

Diana Krepinska

unread,
May 3, 2023, 7:42:21 AM5/3/23
to WildFly
Hi , does the credential store path exist after restart and was any error thrown when storing?
Reply all
Reply to author
Forward
0 new messages