Package org.apache.shiro.env
Interface Environment
-
- All Known Subinterfaces:
NamedObjectEnvironment
- All Known Implementing Classes:
BasicIniEnvironment,DefaultEnvironment
public interface EnvironmentAnEnvironmentinstance encapsulates all of the objects that Shiro requires to function. It is essentially a 'meta' object from which all Shiro components can be obtained for an application. AnEnvironmentinstance is usually created as a result of parsing a Shiro configuration file. The environment instance can be stored in any place the application deems necessary, and from it, can retrieve any of Shiro's components that might be necessary in implementing security behavior. For example, the most obvious component accessible via anEnvironmentinstance is the application'ssecurityManager.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityManagergetSecurityManager()Returns the application'sSecurityManagerinstance.
-
-
-
Method Detail
-
getSecurityManager
SecurityManager getSecurityManager()
Returns the application'sSecurityManagerinstance.- Returns:
- the application's
SecurityManagerinstance.
-
-