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:
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