use of com.sun.web.security.CNonceCacheImpl in project Payara by payara.
the class HACNonceCacheImpl method postConstruct.
public void postConstruct() {
localStore = new CNonceCacheImpl();
try {
final BackingStoreConfiguration<String, NonceInfo> bsConfig = new BackingStoreConfiguration<String, NonceInfo>();
bsConfig.setClusterName(props.get(CNonceCacheFactory.CLUSTER_NAME_PROP)).setInstanceName(props.get(CNonceCacheFactory.INSTANCE_NAME_PROP)).setStoreName(storeName).setKeyClazz(String.class).setValueClazz(NonceInfo.class);
BackingStoreFactory bsFactory = services.getService(BackingStoreFactory.class, BS_TYPE_REPLICATED);
backingStore = bsFactory.createBackingStore(bsConfig);
} catch (BackingStoreException ex) {
logger.log(Level.WARNING, null, ex);
}
}
Aggregations