org.n52.security.authentication.loginmodule
Class CredentialCache

java.lang.Object
  extended by org.n52.security.authentication.loginmodule.CredentialCache

public class CredentialCache
extends java.lang.Object

Author:
jdr

Nested Class Summary
static class CredentialCache.SAMLCredentialCacheEntry
          An implementation of CredentialCacheEntry that contains SAMLCredential instances.
 
Constructor Summary
CredentialCache()
           
 
Method Summary
 void destroy()
           
 CredentialCacheEntry get(java.lang.String cacheId)
           
 int getMaxTokens()
           
 long getTokenTimeout()
           
 void init()
          Initializes cache.
 void put(CredentialCacheEntry entry)
           
 CredentialCacheEntry remove(java.lang.String cacheId)
           
 void setMaxTokens(int maxTokens)
           
 void setTokenTimeout(long tokenTimeout)
          Set token timeout in [sec].
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CredentialCache

public CredentialCache()
Method Detail

init

public void init()
Initializes cache. Starts a new CredentialCacheCleaner.


destroy

public void destroy()

setTokenTimeout

public void setTokenTimeout(long tokenTimeout)
Set token timeout in [sec].

Parameters:
tokenTimeout - the tokenTimeout to set

getTokenTimeout

public long getTokenTimeout()
Returns:
the tokenTimeout

getMaxTokens

public int getMaxTokens()
Returns:
the maxTokens

setMaxTokens

public void setMaxTokens(int maxTokens)
Parameters:
maxTokens - the maxTokens to set

put

public void put(CredentialCacheEntry entry)

get

public CredentialCacheEntry get(java.lang.String cacheId)
Parameters:
cacheId -
Returns:

remove

public CredentialCacheEntry remove(java.lang.String cacheId)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2009 52north.org. All Rights Reserved.