You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps we could call load() at the beginning of the getKeys() method, and add an overload of getkey() that receives a boolean telling if it has to perform the load(), then in getKey(String) call it with true, and in getKeys() call it with false.
Other possible enhancements could be to add configuration properties for:
loading only if the file timestamp changed.
setting load frequency, i.e., don't check if elapsed time is less than some given period, in this case we would have two options for setKey():
Add a readonly property, and throw an exception if called.
When calling load, pass a parameter to force the file loading.
I'm willing to implement decided options in a PR.
The text was updated successfully, but these errors were encountered:
Doesn’t this load the file for every key?
jPOS/jpos/src/main/java/org/jpos/security/SimpleKeyFile.java
Line 213 in c837c2f
Perhaps we could call
load()
at the beginning of thegetKeys()
method, and add an overload ofgetkey()
that receives a boolean telling if it has to perform theload()
, then ingetKey(String)
call it with true, and ingetKeys()
call it with false.Other possible enhancements could be to add configuration properties for:
setKey()
:readonly
property, and throw an exception if called.I'm willing to implement decided options in a PR.
The text was updated successfully, but these errors were encountered: