removed unused directory
This commit is contained in:
Scott Battaglia 2009-10-14 03:21:57 +00:00
parent 79e706e59f
commit 111190063d
2 changed files with 0 additions and 79 deletions

View File

@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>cas-client</artifactId>
<groupId>org.jasig.cas</groupId>
<version>3.1.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-client-support-distributed</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-client-core</artifactId>
<version>${project.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>${ehcache.version}</version>
<scope>compile</scope>
<type>jar</type>
</dependency>
</dependencies>
</project>

View File

@ -1,45 +0,0 @@
package org.jasig.cas.client.proxy;
import net.sf.ehcache.Cache;
import net.sf.ehcache.Element;
import net.sf.ehcache.CacheManager;
/**
* @author Scott Battaglia
* @version $Revision$ $Date$
* @since 3.1.9
*/
public final class EhcacheBackedProxyGrantingTicketStorageImpl implements ProxyGrantingTicketStorage {
public static final String EHCACHE_CACHE_NAME = "org.jasig.cas.client.proxy.EhcacheBackedProxyGrantingTicketStorageImpl.cache";
final Cache cache;
public EhcacheBackedProxyGrantingTicketStorageImpl() {
this(CacheManager.create().getCache(EHCACHE_CACHE_NAME));
}
public EhcacheBackedProxyGrantingTicketStorageImpl(final Cache cache) {
this.cache = cache;
}
public void save(final String proxyGrantingTicketIou, final String proxyGrantingTicket) {
final Element element = new Element(proxyGrantingTicketIou, proxyGrantingTicket);
this.cache.put(element);
}
public String retrieve(final String proxyGrantingTicketIou) {
final Element element = this.cache.get(proxyGrantingTicketIou);
if (element == null) {
return null;
}
return (String) element.getValue();
}
public void cleanUp() {
return;
}
}