Uses of Interface
org.apache.shiro.mgt.SecurityManager
-
Packages that use SecurityManager Package Description org.apache.shiro This package primarily exists as a root classpath distinction, but it does contain two core classes widely used by applications,SecurityUtils
andShiroException
.org.apache.shiro.config org.apache.shiro.env Concepts used to represent Shiro's aggregate state in an application.org.apache.shiro.mgt Provides the masterSecurityManager
interface and a default implementation hierarchy for managing all aspects of Shiro's functionality in an application.org.apache.shiro.subject Components supporting theSubject
interface, the most important concept in Shiro's API.org.apache.shiro.subject.support Concrete support implementations of most of theorg.apache.shiro.subject
interfaces.org.apache.shiro.util Your run-of-the-mill 'util' package for components and logic widely used across the framework that can't find their home into a proper OO hierarchy (or, most likely for things used across many hierarchies). -
-
Uses of SecurityManager in org.apache.shiro
Methods in org.apache.shiro that return SecurityManager Modifier and Type Method Description static SecurityManager
SecurityUtils. getSecurityManager()
Returns the SecurityManager accessible to the calling code.Methods in org.apache.shiro with parameters of type SecurityManager Modifier and Type Method Description static void
SecurityUtils. setSecurityManager(SecurityManager securityManager)
Sets a VM (static) singleton SecurityManager, specifically for transparent use in thegetSubject()
implementation. -
Uses of SecurityManager in org.apache.shiro.config
Methods in org.apache.shiro.config that return SecurityManager Modifier and Type Method Description protected SecurityManager
IniSecurityManagerFactory. createDefaultInstance()
Deprecated.protected SecurityManager
IniSecurityManagerFactory. createInstance(org.apache.shiro.config.Ini ini)
Deprecated.Methods in org.apache.shiro.config with parameters of type SecurityManager Modifier and Type Method Description protected void
IniSecurityManagerFactory. applyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager)
Deprecated.protected boolean
IniSecurityManagerFactory. isAutoApplyRealms(SecurityManager securityManager)
Deprecated. -
Uses of SecurityManager in org.apache.shiro.env
Methods in org.apache.shiro.env that return SecurityManager Modifier and Type Method Description SecurityManager
DefaultEnvironment. getSecurityManager()
Returns the application'sSecurityManager
instance accessible in the backing map using thesecurityManagerName
property as the lookup key.SecurityManager
Environment. getSecurityManager()
Returns the application'sSecurityManager
instance.protected SecurityManager
DefaultEnvironment. lookupSecurityManager()
Looks up theSecurityManager
instance in the backing map without performing any non-null guarantees.Methods in org.apache.shiro.env with parameters of type SecurityManager Modifier and Type Method Description void
DefaultEnvironment. setSecurityManager(SecurityManager securityManager)
-
Uses of SecurityManager in org.apache.shiro.mgt
Classes in org.apache.shiro.mgt that implement SecurityManager Modifier and Type Class Description class
AuthenticatingSecurityManager
Shiro support of aSecurityManager
class hierarchy that delegates all authentication operations to a wrappedAuthenticator
instance.class
AuthorizingSecurityManager
Shiro support of aSecurityManager
class hierarchy that delegates all authorization (access control) operations to a wrappedAuthorizer
instance.class
CachingSecurityManager
A very basic starting point for the SecurityManager interface that merely provides logging and caching support.class
DefaultSecurityManager
The Shiro framework's default concrete implementation of theSecurityManager
interface, based around a collection ofRealm
s.class
RealmSecurityManager
Shiro support of aSecurityManager
class hierarchy based around a collection ofRealm
s.class
SessionsSecurityManager
Shiro support of aSecurityManager
class hierarchy that delegates allsession
operations to a wrappedSessionManager
instance.Methods in org.apache.shiro.mgt with parameters of type SecurityManager Modifier and Type Method Description protected Subject
DefaultSubjectFactory. newSubjectInstance(PrincipalCollection principals, boolean authenticated, String host, Session session, SecurityManager securityManager)
Deprecated.since 1.2 - overrideDefaultSubjectFactory.createSubject(org.apache.shiro.subject.SubjectContext)
directly if you need to instantiate a customSubject
class. -
Uses of SecurityManager in org.apache.shiro.subject
Methods in org.apache.shiro.subject that return SecurityManager Modifier and Type Method Description SecurityManager
SubjectContext. getSecurityManager()
Returns the SecurityManager instance that should be used to back the constructedSubject
instance ornull
if one has not yet been provided to this context.SecurityManager
SubjectContext. resolveSecurityManager()
Resolves theSecurityManager
instance that should be used to back the constructedSubject
instance (typically used to supportDelegatingSubject
implementations).Methods in org.apache.shiro.subject with parameters of type SecurityManager Modifier and Type Method Description void
SubjectContext. setSecurityManager(SecurityManager securityManager)
Sets the SecurityManager instance that should be used to back the constructedSubject
instance (typically used to supportDelegatingSubject
implementations).Constructors in org.apache.shiro.subject with parameters of type SecurityManager Constructor Description Builder(SecurityManager securityManager)
Constructs a newSubject.Builder
instance which will use the specifiedSecurityManager
when building theSubject
instance. -
Uses of SecurityManager in org.apache.shiro.subject.support
Fields in org.apache.shiro.subject.support declared as SecurityManager Modifier and Type Field Description protected SecurityManager
DelegatingSubject. securityManager
Methods in org.apache.shiro.subject.support that return SecurityManager Modifier and Type Method Description SecurityManager
DefaultSubjectContext. getSecurityManager()
SecurityManager
DelegatingSubject. getSecurityManager()
SecurityManager
DefaultSubjectContext. resolveSecurityManager()
Methods in org.apache.shiro.subject.support with parameters of type SecurityManager Modifier and Type Method Description void
DefaultSubjectContext. setSecurityManager(SecurityManager securityManager)
Constructors in org.apache.shiro.subject.support with parameters of type SecurityManager Constructor Description DelegatingSubject(SecurityManager securityManager)
DelegatingSubject(PrincipalCollection principals, boolean authenticated, String host, Session session, boolean sessionCreationEnabled, SecurityManager securityManager)
DelegatingSubject(PrincipalCollection principals, boolean authenticated, String host, Session session, SecurityManager securityManager)
-
Uses of SecurityManager in org.apache.shiro.util
Methods in org.apache.shiro.util that return SecurityManager Modifier and Type Method Description static SecurityManager
ThreadContext. getSecurityManager()
Convenience method that simplifies retrieval of the application's SecurityManager instance from the current thread.static SecurityManager
ThreadContext. unbindSecurityManager()
Convenience method that simplifies removal of the application's SecurityManager instance from the thread.Methods in org.apache.shiro.util with parameters of type SecurityManager Modifier and Type Method Description static void
ThreadContext. bind(SecurityManager securityManager)
Convenience method that simplifies binding the application's SecurityManager instance to the ThreadContext.
-