Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jboss.security.plugins
Class JaasSecurityManager.DomainInfo  view JaasSecurityManager.DomainInfo download JaasSecurityManager.DomainInfo.java

java.lang.Object
  extended byorg.jboss.security.plugins.JaasSecurityManager.DomainInfo
All Implemented Interfaces:
org.jboss.util.TimedCachePolicy.TimedEntry
Enclosing class:
JaasSecurityManager

public static class JaasSecurityManager.DomainInfo
extends java.lang.Object
implements org.jboss.util.TimedCachePolicy.TimedEntry

The authentication cache object.


Field Summary
(package private)  java.security.Principal callerPrincipal
           
(package private)  java.lang.Object credential
           
(package private)  long expirationTime
           
private static org.jboss.logging.Logger log
           
(package private)  javax.security.auth.login.LoginContext loginCtx
           
(package private)  java.security.acl.Group roles
           
(package private)  javax.security.auth.Subject subject
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.jboss.logging.Logger log

loginCtx

javax.security.auth.login.LoginContext loginCtx

subject

javax.security.auth.Subject subject

credential

java.lang.Object credential

callerPrincipal

java.security.Principal callerPrincipal

roles

java.security.acl.Group roles

expirationTime

long expirationTime
Constructor Detail

JaasSecurityManager.DomainInfo

public JaasSecurityManager.DomainInfo(int lifetime)
Method Detail

init

public void init(long now)
Description copied from interface: org.jboss.util.TimedCachePolicy.TimedEntry
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 org.jboss.util.TimedCachePolicy.TimedEntry

isCurrent

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

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

refresh

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

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

destroy

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

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

getValue

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

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