org.jboss.security.plugins.auth
Class JaasSecurityManagerBase.DomainInfo

java.lang.Object
  extended by org.jboss.security.plugins.auth.JaasSecurityManagerBase.DomainInfo
All Implemented Interfaces:
org.jboss.util.TimedCachePolicy.TimedEntry
Enclosing class:
JaasSecurityManagerBase

public static class JaasSecurityManagerBase.DomainInfo
extends Object
implements org.jboss.util.TimedCachePolicy.TimedEntry

The authentication cache object.


Field Summary
protected  Principal callerPrincipal
           
protected  Object credential
           
protected  LoginContext loginCtx
           
protected  Subject subject
           
 
Constructor Summary
JaasSecurityManagerBase.DomainInfo(long lifetime)
          Create a cache entry with the given lifetime in seconds.
 
Method Summary
 void destroy()
          This
 Object getValue()
           
 void init(long now)
           
 boolean isCurrent(long now)
           
 boolean refresh()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

loginCtx

protected LoginContext loginCtx

subject

protected Subject subject

credential

protected Object credential

callerPrincipal

protected Principal callerPrincipal
Constructor Detail

JaasSecurityManagerBase.DomainInfo

public JaasSecurityManagerBase.DomainInfo(long lifetime)
Create a cache entry with the given lifetime in seconds. Since this comes from the TimedCachePolicy, its expected to be <= Integer.MAX_VALUE.

Parameters:
lifetime - - lifetime in seconds. A lifetime <= 0 means no caching with the exception of -1 which indicates that the cache entry never expires.
Method Detail

init

public void init(long now)
Specified by:
init in interface org.jboss.util.TimedCachePolicy.TimedEntry

isCurrent

public boolean isCurrent(long now)
Specified by:
isCurrent in interface org.jboss.util.TimedCachePolicy.TimedEntry

refresh

public boolean refresh()
Specified by:
refresh in interface org.jboss.util.TimedCachePolicy.TimedEntry

destroy

public void destroy()
This

Specified by:
destroy in interface org.jboss.util.TimedCachePolicy.TimedEntry

getValue

public Object getValue()
Specified by:
getValue in interface org.jboss.util.TimedCachePolicy.TimedEntry

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss Inc.. All Rights Reserved.