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 11, 2023
1 parent dbe5aa2 commit 7f2aeab
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,24 @@
*/
public class RedisSecurityStore implements EditableSecurityStore {

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

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

private final Pool<Jedis> pool;

private final List<SecurityStoreListener> listeners = new CopyOnWriteArrayList<>();

public RedisSecurityStore(Pool<Jedis> pool) {
this.pool = pool;
this.SEC_EP = "SEC#EP#";
this.PSKID_SEC = "PSKID#SEC";
}

public RedisSecurityStore(Pool<Jedis> pool, String secEp, String pskIdSec) {
this.pool = pool;
this.SEC_EP = secEp;
this.PSKID_SEC = pskIdSec;
}

@Override
Expand Down

0 comments on commit 7f2aeab

Please sign in to comment.