All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fcrepo.server.security.xacml.pep.ResponseCache Maven / Gradle / Ivy

The newest version!

package org.fcrepo.server.security.xacml.pep;

import org.jboss.security.xacml.sunxacml.ctx.ResponseCtx;

/**
 * @author [email protected]
 */
public interface ResponseCache {

    /**
     * Adds an item to the cache.
     * 
     * @param request
     *        the request to hash and add.
     * @param response
     *        the response to add
     */
    public void addCacheItem(String request, ResponseCtx response);
    
    public void setTTL(long ttl);

    /**
     * @param request
     *        the request to hash and retrieve
     * @return the response corresponding to the request hash
     */
    public ResponseCtx getCacheItem(String request);

    /**
     * Invalidates the cache.
     */
    public void invalidate();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy