Package org.tynamo.security.services
Class TapestryRealmSecurityManager
java.lang.Object
org.apache.shiro.mgt.CachingSecurityManager
org.apache.shiro.mgt.RealmSecurityManager
org.apache.shiro.mgt.AuthenticatingSecurityManager
org.apache.shiro.mgt.AuthorizingSecurityManager
org.apache.shiro.mgt.SessionsSecurityManager
org.apache.shiro.mgt.DefaultSecurityManager
org.apache.shiro.web.mgt.DefaultWebSecurityManager
org.tynamo.security.services.TapestryRealmSecurityManager
- All Implemented Interfaces:
org.apache.shiro.authc.Authenticator,org.apache.shiro.authz.Authorizer,org.apache.shiro.cache.CacheManagerAware,org.apache.shiro.event.EventBusAware,org.apache.shiro.lang.util.Destroyable,org.apache.shiro.mgt.SecurityManager,org.apache.shiro.session.mgt.SessionManager,org.apache.shiro.web.mgt.WebSecurityManager
public class TapestryRealmSecurityManager
extends org.apache.shiro.web.mgt.DefaultWebSecurityManager
This class is needed to point out the right constructor to use (from the three available in
DefaultWebSecurityManager) for tapestry-ioc and to allow injecting dependencies
-
Field Summary
Fields inherited from class org.apache.shiro.web.mgt.DefaultWebSecurityManager
HTTP_SESSION_MODE, NATIVE_SESSION_MODEFields inherited from class org.apache.shiro.mgt.DefaultSecurityManager
rememberMeManager, subjectDAO, subjectFactory -
Constructor Summary
ConstructorsConstructorDescriptionTapestryRealmSecurityManager(Authenticator authenticator, org.apache.shiro.mgt.SubjectFactory subjectFactory, org.apache.shiro.mgt.RememberMeManager rememberMeManager, Collection<org.apache.shiro.realm.Realm> realms) -
Method Summary
Modifier and TypeMethodDescriptionvoidlistenForShutdown(org.apache.tapestry5.ioc.services.RegistryShutdownHub hub) Methods inherited from class org.apache.shiro.web.mgt.DefaultWebSecurityManager
afterSessionManagerSet, beforeLogout, copy, createSessionContext, createSessionManager, createSubjectContext, getSessionKey, getSessionMode, isHttpSessionMode, removeRequestIdentity, setSessionManager, setSessionMode, setSubjectDAOMethods inherited from class org.apache.shiro.mgt.DefaultSecurityManager
bind, createSubject, createSubject, delete, doCreateSubject, ensureSecurityManager, getRememberedIdentity, getRememberMeManager, getSubjectDAO, getSubjectFactory, login, logout, onFailedLogin, onSuccessfulLogin, rememberMeFailedLogin, rememberMeLogout, rememberMeSuccessfulLogin, resolveContextSession, resolvePrincipals, resolveSession, save, setRememberMeManager, setSubjectFactory, stopSession, unbindMethods inherited from class org.apache.shiro.mgt.SessionsSecurityManager
afterCacheManagerSet, afterEventBusSet, applyCacheManagerToSessionManager, applyEventBusToSessionManager, destroy, getSession, getSessionManager, startMethods inherited from class org.apache.shiro.mgt.AuthorizingSecurityManager
afterRealmsSet, checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, checkRoles, getAuthorizer, hasAllRoles, hasRole, hasRoles, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, setAuthorizerMethods inherited from class org.apache.shiro.mgt.AuthenticatingSecurityManager
authenticate, getAuthenticator, setAuthenticatorMethods inherited from class org.apache.shiro.mgt.RealmSecurityManager
applyCacheManagerToRealms, applyEventBusToRealms, getRealms, setRealm, setRealmsMethods inherited from class org.apache.shiro.mgt.CachingSecurityManager
applyEventBusToCacheManager, getCacheManager, getEventBus, setCacheManager, setEventBusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shiro.authc.Authenticator
authenticateMethods inherited from interface org.apache.shiro.authz.Authorizer
checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, checkRoles, hasAllRoles, hasRole, hasRoles, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAllMethods inherited from interface org.apache.shiro.mgt.SecurityManager
createSubject, login, logoutMethods inherited from interface org.apache.shiro.session.mgt.SessionManager
getSession, start
-
Constructor Details
-
TapestryRealmSecurityManager
public TapestryRealmSecurityManager(Authenticator authenticator, org.apache.shiro.mgt.SubjectFactory subjectFactory, org.apache.shiro.mgt.RememberMeManager rememberMeManager, Collection<org.apache.shiro.realm.Realm> realms)
-
-
Method Details
-
listenForShutdown
@PostInjection public void listenForShutdown(org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)
-