org.qi4j.library.shiro.realms
Class AbstractQi4jRealm

java.lang.Object
  extended by org.apache.shiro.realm.CachingRealm
      extended by org.apache.shiro.realm.AuthenticatingRealm
          extended by org.apache.shiro.realm.AuthorizingRealm
              extended by org.qi4j.library.shiro.realms.AbstractQi4jRealm
All Implemented Interfaces:
org.apache.shiro.authc.LogoutAware, org.apache.shiro.authz.Authorizer, org.apache.shiro.authz.permission.PermissionResolverAware, org.apache.shiro.authz.permission.RolePermissionResolverAware, org.apache.shiro.cache.CacheManagerAware, org.apache.shiro.realm.Realm, org.apache.shiro.util.Initializable, org.apache.shiro.util.Nameable, RealmActivator
Direct Known Subclasses:
AbstractSecureHashQi4jRealm, AbstractX509Qi4jRealm

public abstract class AbstractQi4jRealm
extends org.apache.shiro.realm.AuthorizingRealm
implements RealmActivator


Field Summary
protected  UnitOfWorkFactory uowf
           
 
Constructor Summary
AbstractQi4jRealm()
           
 
Method Summary
 void activateRealm()
           
protected  org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
           
protected abstract  RoleAssignee getRoleAssignee(org.apache.shiro.subject.PrincipalCollection principals)
           
 
Methods inherited from class org.apache.shiro.realm.AuthorizingRealm
afterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getAvailablePrincipal, getPermissionResolver, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, init, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onInit, onLogout, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolver
 
Methods inherited from class org.apache.shiro.realm.AuthenticatingRealm
doGetAuthenticationInfo, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, setAuthenticationTokenClass, setCredentialsMatcher, supports
 
Methods inherited from class org.apache.shiro.realm.CachingRealm
getCacheManager, getName, isCachingEnabled, setCacheManager, setCachingEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uowf

@Structure
protected UnitOfWorkFactory uowf
Constructor Detail

AbstractQi4jRealm

public AbstractQi4jRealm()
Method Detail

activateRealm

public void activateRealm()
Specified by:
activateRealm in interface RealmActivator

doGetAuthorizationInfo

protected final org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
Specified by:
doGetAuthorizationInfo in class org.apache.shiro.realm.AuthorizingRealm

getRoleAssignee

protected abstract RoleAssignee getRoleAssignee(org.apache.shiro.subject.PrincipalCollection principals)