Search in sources :

Example 1 with CNonceCacheImpl

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);
    }
}
Also used : BackingStoreFactory(org.glassfish.ha.store.api.BackingStoreFactory) NonceInfo(org.glassfish.security.common.NonceInfo) BackingStoreException(org.glassfish.ha.store.api.BackingStoreException) CNonceCacheImpl(com.sun.web.security.CNonceCacheImpl) BackingStoreConfiguration(org.glassfish.ha.store.api.BackingStoreConfiguration)

Aggregations

CNonceCacheImpl (com.sun.web.security.CNonceCacheImpl)1 BackingStoreConfiguration (org.glassfish.ha.store.api.BackingStoreConfiguration)1 BackingStoreException (org.glassfish.ha.store.api.BackingStoreException)1 BackingStoreFactory (org.glassfish.ha.store.api.BackingStoreFactory)1 NonceInfo (org.glassfish.security.common.NonceInfo)1