diff --git a/cas-client-support-distributed/pom.xml b/cas-client-support-distributed/pom.xml deleted file mode 100644 index 6e1b1b6..0000000 --- a/cas-client-support-distributed/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - cas-client - org.jasig.cas - 3.1.9-SNAPSHOT - - 4.0.0 - - org.jasig.cas - cas-client-support-distributed - jar - - - - org.jasig.cas - cas-client-core - ${project.version} - jar - compile - - - - net.sf.ehcache - ehcache - ${ehcache.version} - compile - jar - - - - \ No newline at end of file diff --git a/cas-client-support-distributed/src/main/java/org/jasig/cas/client/proxy/EhcacheBackedProxyGrantingTicketStorageImpl.java b/cas-client-support-distributed/src/main/java/org/jasig/cas/client/proxy/EhcacheBackedProxyGrantingTicketStorageImpl.java deleted file mode 100644 index 67ff534..0000000 --- a/cas-client-support-distributed/src/main/java/org/jasig/cas/client/proxy/EhcacheBackedProxyGrantingTicketStorageImpl.java +++ /dev/null @@ -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; - } -}