Uses of Interface
org.apache.shiro.mgt.SecurityManager
Packages that use SecurityManager
Package
Description
This package primarily exists as a root classpath distinction, but it does contain two core classes widely used
by applications,
SecurityUtils and
ShiroException.Concepts used to represent Shiro's aggregate state in an application.
Concepts used to represent Shiro's aggregate state in an application.
Provides the master
SecurityManager interface and a default implementation
hierarchy for managing all aspects of Shiro's functionality in an application.Components supporting the
Subject interface, the most important concept in
Shiro's API.Concrete support implementations of most of the
org.apache.shiro.subject interfaces.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 with type parameters of type SecurityManagerModifier and TypeMethodDescriptionstatic <SM extends SecurityManager>
SMSecurityUtils.getSecurityManager(Class<SM> type) Returns the SecurityManager, ensuring it is of the specified type.static <SM extends SecurityManager>
SMSecurityUtils.unwrapSecurityManager(SecurityManager securityManager, Class<SM> type) Unwraps wrapped SecurityManagers if necessary.static <SM extends SecurityManager>
SMSecurityUtils.unwrapSecurityManager(SecurityManager securityManager, Class<SM> type, Predicate<Class<? extends SecurityManager>> predicate) Unwraps wrapped SecurityManagers if necessary.Methods in org.apache.shiro that return SecurityManagerModifier and TypeMethodDescriptionstatic SecurityManagerSecurityUtils.getSecurityManager()Returns the SecurityManager accessible to the calling code.Methods in org.apache.shiro with parameters of type SecurityManagerModifier and TypeMethodDescriptionstatic booleanSecurityUtils.isSecurityManagerTypeOf(SecurityManager securityManager, Class<? extends SecurityManager> type) Determines if the specified security manager is of the specified type or a subclass of the specified type.static voidSecurityUtils.setSecurityManager(SecurityManager securityManager) Sets a VM (static) singleton SecurityManager, specifically for transparent use in thegetSubject()implementation.static <SM extends SecurityManager>
SMSecurityUtils.unwrapSecurityManager(SecurityManager securityManager, Class<SM> type) Unwraps wrapped SecurityManagers if necessary.static <SM extends SecurityManager>
SMSecurityUtils.unwrapSecurityManager(SecurityManager securityManager, Class<SM> type, Predicate<Class<? extends SecurityManager>> predicate) Unwraps wrapped SecurityManagers if necessary.Method parameters in org.apache.shiro with type arguments of type SecurityManagerModifier and TypeMethodDescriptionstatic booleanSecurityUtils.isSecurityManagerTypeOf(SecurityManager securityManager, Class<? extends SecurityManager> type) Determines if the specified security manager is of the specified type or a subclass of the specified type.static <SM extends SecurityManager>
SMSecurityUtils.unwrapSecurityManager(SecurityManager securityManager, Class<SM> type, Predicate<Class<? extends SecurityManager>> predicate) Unwraps wrapped SecurityManagers if necessary. -
Uses of SecurityManager in org.apache.shiro.env
Methods in org.apache.shiro.env that return SecurityManagerModifier and TypeMethodDescriptionDefaultEnvironment.getSecurityManager()Returns the application'sSecurityManagerinstance accessible in the backing map using thesecurityManagerNameproperty as the lookup key.Environment.getSecurityManager()Returns the application'sSecurityManagerinstance.protected SecurityManagerDefaultEnvironment.lookupSecurityManager()Looks up theSecurityManagerinstance in the backing map without performing any non-null guarantees.Methods in org.apache.shiro.env with parameters of type SecurityManagerModifier and TypeMethodDescriptionvoidDefaultEnvironment.setSecurityManager(SecurityManager securityManager) -
Uses of SecurityManager in org.apache.shiro.ini
Subclasses with type arguments of type SecurityManager in org.apache.shiro.iniMethods in org.apache.shiro.ini that return SecurityManagerModifier and TypeMethodDescriptionprotected SecurityManagerIniSecurityManagerFactory.createDefaultInstance()Deprecated.protected SecurityManagerIniSecurityManagerFactory.createInstance(org.apache.shiro.config.Ini ini) Deprecated.Methods in org.apache.shiro.ini with parameters of type SecurityManagerModifier and TypeMethodDescriptionprotected voidIniSecurityManagerFactory.applyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager) Deprecated.protected booleanIniSecurityManagerFactory.isAutoApplyRealms(SecurityManager securityManager) Deprecated. -
Uses of SecurityManager in org.apache.shiro.mgt
Classes in org.apache.shiro.mgt that implement SecurityManagerModifier and TypeClassDescriptionclassShiro support of aSecurityManagerclass hierarchy that delegates all authentication operations to a wrappedAuthenticatorinstance.classShiro support of aSecurityManagerclass hierarchy that delegates all authorization (access control) operations to a wrappedAuthorizerinstance.classA very basic starting point for the SecurityManager interface that merely provides logging and caching support.classThe Shiro framework's default concrete implementation of theSecurityManagerinterface, based around a collection ofRealms.classShiro support of aSecurityManagerclass hierarchy based around a collection ofRealms.classShiro support of aSecurityManagerclass hierarchy that delegates allsessionoperations to a wrappedSessionManagerinstance.Methods in org.apache.shiro.mgt with type parameters of type SecurityManagerModifier and TypeMethodDescription<SM extends SecurityManager>
SMWrappedSecurityManager.unwrap()Returns the underlyingSecurityManagerinstance that this instance wraps.Methods in org.apache.shiro.mgt with parameters of type SecurityManagerModifier and TypeMethodDescriptionprotected SubjectDefaultSubjectFactory.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 customSubjectclass. -
Uses of SecurityManager in org.apache.shiro.subject
Methods in org.apache.shiro.subject that return SecurityManagerModifier and TypeMethodDescriptionSubjectContext.getSecurityManager()Returns the SecurityManager instance that should be used to back the constructedSubjectinstance ornullif one has not yet been provided to this context.SubjectContext.resolveSecurityManager()Resolves theSecurityManagerinstance that should be used to back the constructedSubjectinstance (typically used to supportDelegatingSubjectimplementations).Methods in org.apache.shiro.subject with parameters of type SecurityManagerModifier and TypeMethodDescriptionvoidSubjectContext.setSecurityManager(SecurityManager securityManager) Sets the SecurityManager instance that should be used to back the constructedSubjectinstance (typically used to supportDelegatingSubjectimplementations).Constructors in org.apache.shiro.subject with parameters of type SecurityManagerModifierConstructorDescriptionBuilder(SecurityManager securityManager) Constructs a newSubject.Builderinstance which will use the specifiedSecurityManagerwhen building theSubjectinstance. -
Uses of SecurityManager in org.apache.shiro.subject.support
Fields in org.apache.shiro.subject.support declared as SecurityManagerMethods in org.apache.shiro.subject.support that return SecurityManagerModifier and TypeMethodDescriptionDefaultSubjectContext.getSecurityManager()DelegatingSubject.getSecurityManager()DefaultSubjectContext.resolveSecurityManager()Methods in org.apache.shiro.subject.support with parameters of type SecurityManagerModifier and TypeMethodDescriptionvoidDefaultSubjectContext.setSecurityManager(SecurityManager securityManager) Constructors in org.apache.shiro.subject.support with parameters of type SecurityManagerModifierConstructorDescriptionDelegatingSubject(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 SecurityManagerModifier and TypeMethodDescriptionstatic SecurityManagerThreadContext.getSecurityManager()Convenience method that simplifies retrieval of the application's SecurityManager instance from the current thread.static SecurityManagerThreadContext.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 SecurityManagerModifier and TypeMethodDescriptionstatic voidThreadContext.bind(SecurityManager securityManager) Convenience method that simplifies binding the application's SecurityManager instance to the ThreadContext.
Environmentmechanisms instead.