Skip to content

Commit

Permalink
Allow to set custom REDIS keys for security endpoint and PSK ID
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseiz committed Feb 9, 2023
1 parent dbe5aa2 commit 955498d
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@
* Security info are stored using the endpoint as primary key and a secondary index is created for psk-identity lookup.
*/
public class RedisSecurityStore implements EditableSecurityStore {
private static String SEC_EP = "SEC#EP#";

private static final String SEC_EP = "SEC#EP#";

private static final String PSKID_SEC = "PSKID#SEC";
private static String PSKID_SEC = "PSKID#SEC";

private final Pool<Jedis> pool;

Expand Down Expand Up @@ -167,4 +166,12 @@ public void addListener(SecurityStoreListener listener) {
public void removeListener(SecurityStoreListener listener) {
listeners.remove(listener);
}

public static void setSecEp(String secEp) {
SEC_EP = secEp;
}

public static void setPskidSec(String pskidSec) {
PSKID_SEC = pskidSec;
}
}

0 comments on commit 955498d

Please sign in to comment.