Search in sources :

Example 1 with CNonceCacheImpl

use of com.sun.enterprise.security.auth.digest.impl.CNonceCacheImpl in project Payara by payara.

the class HACNonceCacheImpl method postConstruct.

public void postConstruct() {
    localStore = new CNonceCacheImpl();
    try {
        BackingStoreConfiguration<String, NonceInfo> bsConfig = new BackingStoreConfiguration<String, NonceInfo>();
        bsConfig.setClusterName(props.get(CLUSTER_NAME_PROP)).setInstanceName(props.get(INSTANCE_NAME_PROP)).setStoreName(storeName).setKeyClazz(String.class).setValueClazz(NonceInfo.class);
        backingStore = services.getService(BackingStoreFactory.class, BS_TYPE_REPLICATED).createBackingStore(bsConfig);
    } catch (BackingStoreException ex) {
        logger.log(WARNING, null, ex);
    }
}
Also used : NonceInfo(org.glassfish.security.common.NonceInfo) BackingStoreException(org.glassfish.ha.store.api.BackingStoreException) CNonceCacheImpl(com.sun.enterprise.security.auth.digest.impl.CNonceCacheImpl) BackingStoreConfiguration(org.glassfish.ha.store.api.BackingStoreConfiguration)

Aggregations

CNonceCacheImpl (com.sun.enterprise.security.auth.digest.impl.CNonceCacheImpl)1 BackingStoreConfiguration (org.glassfish.ha.store.api.BackingStoreConfiguration)1 BackingStoreException (org.glassfish.ha.store.api.BackingStoreException)1 NonceInfo (org.glassfish.security.common.NonceInfo)1