|
JSecurity | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsecurity.realm.CachingRealm
public abstract class CachingRealm
A very basic abstract extension point for the Realm interface that provides logging and caching support.
All actual Realm method implementations are left to subclasses.
| Constructor Summary | |
|---|---|
CachingRealm()
|
|
CachingRealm(CacheManager cacheManager)
|
|
| Method Summary | |
|---|---|
protected void |
afterCacheManagerSet()
|
CacheManager |
getCacheManager()
Returns the CacheManager used for data caching to reduce EIS round trips, or null if caching is disabled. |
String |
getName()
Returns the (application-unique) name assigned to this Realm. |
void |
setCacheManager(CacheManager authzInfoCacheManager)
Sets the CacheManager to be used for data caching to reduce EIS round trips. |
void |
setName(String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jsecurity.realm.Realm |
|---|
getAuthenticationInfo, supports |
| Methods inherited from interface org.jsecurity.authz.Authorizer |
|---|
checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, hasAllRoles, hasRole, hasRoles, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll |
| Constructor Detail |
|---|
public CachingRealm()
public CachingRealm(CacheManager cacheManager)
| Method Detail |
|---|
public CacheManager getCacheManager()
public void setCacheManager(CacheManager authzInfoCacheManager)
This property is null by default, indicating that caching is turned off.
setCacheManager in interface CacheManagerAwareauthzInfoCacheManager - the CacheManager to use for data caching, or null to disable caching.protected void afterCacheManagerSet()
public String getName()
RealmRealm. All realms configured for a single
application must have a unique name.
getName in interface RealmRealm.public void setName(String name)
|
JSecurity | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||