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 Components that support configuring Shiro in any application.org.apache.shiro.env Concepts used to represent Shiro's aggregate state in an application.org.apache.shiro.guice org.apache.shiro.guice.web 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.spring.boot.autoconfigure org.apache.shiro.spring.config org.apache.shiro.spring.remoting Support to enable Spring-based remote method invocations to carry a Shiro session ID as part of the invocation payload, allowing remote clients to perform security operations.org.apache.shiro.spring.security.interceptor Spring AOP support for enabling Shiro annotations in Spring-configured applications.org.apache.shiro.spring.web Spring-specific components for use in Spring-based web applications.org.apache.shiro.spring.web.config 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).org.apache.shiro.web.config Web-specific implementation extensions to theorg.apache.shiro.config
components.org.apache.shiro.web.env Web-specificEnvironment
implementation and support.org.apache.shiro.web.mgt Components supporting web-specificSecurityManager
implementations.org.apache.shiro.web.subject Web-specificSubject
interfaces to enableSubject
use in web environments.org.apache.shiro.web.subject.support Supporting implementations oforg.apache.shiro.web.subject
package interfaces. -
-
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(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.guice
Method parameters in org.apache.shiro.guice with type arguments of type SecurityManager Modifier and Type Method Description protected void
ShiroModule. bindSecurityManager(com.google.inject.binder.AnnotatedBindingBuilder<? super SecurityManager> bind)
Binds the security manager. -
Uses of SecurityManager in org.apache.shiro.guice.web
Method parameters in org.apache.shiro.guice.web with type arguments of type SecurityManager Modifier and Type Method Description protected void
ShiroWebModule. bindSecurityManager(com.google.inject.binder.AnnotatedBindingBuilder<? super SecurityManager> bind)
-
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.spring.boot.autoconfigure
Methods in org.apache.shiro.spring.boot.autoconfigure with parameters of type SecurityManager Modifier and Type Method Description AuthorizationAttributeSourceAdvisor
ShiroAnnotationProcessorAutoConfiguration. authorizationAttributeSourceAdvisor(SecurityManager securityManager)
-
Uses of SecurityManager in org.apache.shiro.spring.config
Methods in org.apache.shiro.spring.config with parameters of type SecurityManager Modifier and Type Method Description protected AuthorizationAttributeSourceAdvisor
AbstractShiroAnnotationProcessorConfiguration. authorizationAttributeSourceAdvisor(SecurityManager securityManager)
protected AuthorizationAttributeSourceAdvisor
ShiroAnnotationProcessorConfiguration. authorizationAttributeSourceAdvisor(SecurityManager securityManager)
-
Uses of SecurityManager in org.apache.shiro.spring.remoting
Methods in org.apache.shiro.spring.remoting with parameters of type SecurityManager Modifier and Type Method Description void
SecureRemoteInvocationExecutor. setSecurityManager(SecurityManager securityManager)
-
Uses of SecurityManager in org.apache.shiro.spring.security.interceptor
Fields in org.apache.shiro.spring.security.interceptor declared as SecurityManager Modifier and Type Field Description protected SecurityManager
AuthorizationAttributeSourceAdvisor. securityManager
Methods in org.apache.shiro.spring.security.interceptor that return SecurityManager Modifier and Type Method Description SecurityManager
AuthorizationAttributeSourceAdvisor. getSecurityManager()
Methods in org.apache.shiro.spring.security.interceptor with parameters of type SecurityManager Modifier and Type Method Description void
AuthorizationAttributeSourceAdvisor. setSecurityManager(SecurityManager securityManager)
-
Uses of SecurityManager in org.apache.shiro.spring.web
Methods in org.apache.shiro.spring.web that return SecurityManager Modifier and Type Method Description SecurityManager
ShiroFilterFactoryBean. getSecurityManager()
Sets the applicationSecurityManager
instance to be used by the constructed Shiro Filter.Methods in org.apache.shiro.spring.web with parameters of type SecurityManager Modifier and Type Method Description void
ShiroFilterFactoryBean. setSecurityManager(SecurityManager securityManager)
Sets the applicationSecurityManager
instance to be used by the constructed Shiro Filter. -
Uses of SecurityManager in org.apache.shiro.spring.web.config
Fields in org.apache.shiro.spring.web.config declared as SecurityManager Modifier and Type Field Description protected SecurityManager
AbstractShiroWebFilterConfiguration. securityManager
-
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. -
Uses of SecurityManager in org.apache.shiro.web.config
Methods in org.apache.shiro.web.config that return SecurityManager Modifier and Type Method Description protected SecurityManager
WebIniSecurityManagerFactory. createDefaultInstance()
Deprecated.Simply returnsnew
to ensure a web-capableDefaultWebSecurityManager
();SecurityManager
is available by default. -
Uses of SecurityManager in org.apache.shiro.web.env
Methods in org.apache.shiro.web.env that return SecurityManager Modifier and Type Method Description SecurityManager
DefaultWebEnvironment. getSecurityManager()
Methods in org.apache.shiro.web.env with parameters of type SecurityManager Modifier and Type Method Description void
DefaultWebEnvironment. setSecurityManager(SecurityManager securityManager)
-
Uses of SecurityManager in org.apache.shiro.web.mgt
Subinterfaces of SecurityManager in org.apache.shiro.web.mgt Modifier and Type Interface Description interface
WebSecurityManager
This interface represents aSecurityManager
implementation that can used in web-enabled applications.Classes in org.apache.shiro.web.mgt that implement SecurityManager Modifier and Type Class Description class
DefaultWebSecurityManager
DefaultWebSecurityManager
implementation used in web-based applications or any application that requires HTTP connectivity (SOAP, http remoting, etc).Methods in org.apache.shiro.web.mgt with parameters of type SecurityManager Modifier and Type Method Description protected Subject
DefaultWebSubjectFactory. newSubjectInstance(PrincipalCollection principals, boolean authenticated, String host, Session session, ServletRequest request, ServletResponse response, SecurityManager securityManager)
Deprecated.since 1.2 - overrideDefaultWebSubjectFactory.createSubject(org.apache.shiro.subject.SubjectContext)
directly if you need to instantiate a customSubject
class. -
Uses of SecurityManager in org.apache.shiro.web.subject
Constructors in org.apache.shiro.web.subject with parameters of type SecurityManager Constructor Description Builder(SecurityManager securityManager, ServletRequest request, ServletResponse response)
Constructs a newWeb.Builder
instance using the specifiedSecurityManager
instance to create theWebSubject
instance. -
Uses of SecurityManager in org.apache.shiro.web.subject.support
Constructors in org.apache.shiro.web.subject.support with parameters of type SecurityManager Constructor Description WebDelegatingSubject(PrincipalCollection principals, boolean authenticated, String host, Session session, boolean sessionEnabled, ServletRequest request, ServletResponse response, SecurityManager securityManager)
WebDelegatingSubject(PrincipalCollection principals, boolean authenticated, String host, Session session, ServletRequest request, ServletResponse response, SecurityManager securityManager)
-