org.jboss.security.plugins
Class JaasSecurityManager.DomainInfo

java.lang.Object
  extended byorg.jboss.security.plugins.JaasSecurityManager.DomainInfo
All Implemented Interfaces:
TimedCachePolicy.TimedEntry (src)
Enclosing class:
JaasSecurityManager (src)

public static class JaasSecurityManager.DomainInfo
extends java.lang.Object
implements TimedCachePolicy.TimedEntry (src)

The authentication cache object.


Constructor Summary
JaasSecurityManager.DomainInfo(int lifetime)
           
 
Method Summary
 void destroy()
          Notify the entry that it has been removed from the cache.
 java.lang.Object getValue()
          Get the value component of the TimedEntry.
 void init(long now)
          Initializes an entry with the current cache time.
 boolean isCurrent(long now)
          Is the entry still valid basis the current time
 boolean refresh()
          Attempt to extend the entry lifetime by refreshing it.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JaasSecurityManager.DomainInfo

public JaasSecurityManager.DomainInfo(int lifetime)
Method Detail

init

public void init(long now)
Description copied from interface: TimedCachePolicy.TimedEntry (src)
Initializes an entry with the current cache time. This is called when the entry is first inserted into the cache so that entries do not have to know the absolute system time.

Specified by:
init in interface TimedCachePolicy.TimedEntry (src)

isCurrent

public boolean isCurrent(long now)
Description copied from interface: TimedCachePolicy.TimedEntry (src)
Is the entry still valid basis the current time

Specified by:
isCurrent in interface TimedCachePolicy.TimedEntry (src)
Returns:
true if the entry is within its lifetime, false if it is expired.

refresh

public boolean refresh()
Description copied from interface: TimedCachePolicy.TimedEntry (src)
Attempt to extend the entry lifetime by refreshing it.

Specified by:
refresh in interface TimedCachePolicy.TimedEntry (src)
Returns:
true if the entry was refreshed successfully, false otherwise.

destroy

public void destroy()
Description copied from interface: TimedCachePolicy.TimedEntry (src)
Notify the entry that it has been removed from the cache.

Specified by:
destroy in interface TimedCachePolicy.TimedEntry (src)

getValue

public java.lang.Object getValue()
Description copied from interface: TimedCachePolicy.TimedEntry (src)
Get the value component of the TimedEntry. This may or may not be the TimedEntry implementation.

Specified by:
getValue in interface TimedCachePolicy.TimedEntry (src)

toString

public java.lang.String toString()