CredentialStore resource name is case sensitive but CredentialStore alias is convert to lowercase.
How to reproduce
In csfile001.jceks you can see only "csname001" entry.
There is biggest problem that in memory are right case sensitive aliases and you can load them. But in backed CS file is only last one in lowercase.
And now you can use both (csFF and csff) as CredStoreRef alias
Another big problem for me is that you have a lot of CS Alias RESOURCES which reference to ONE entry and update value in CS.
Whether aliases are case sensitive is implementation dependent. In order to avoid problems, it is recommended not to use aliases in a KeyStore that only differ in case.
Suggestions for solution
- We must unite case (in)sensitive between CS keystore file and CS in memory
- implement case sensitive (Our implementation looks ok, IMO there is another problem with it...)
- something else