Package 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).
-
Interface Summary Interface Description ByteSource AByteSource
wraps a byte array and provides additional encoding operations.Destroyable Shiro container-agnostic interface that indicates that this object requires a callback during destruction.Factory<T> Generics-aware interface supporting the Factory Method design pattern.Initializable Shiro container-agnostic interface that indicates that this object requires initialization.Nameable Interface implemented by components that can be named, such as via configuration, and wish to have that name set once it has been configured.PatternMatcher Interface for components that can match source strings against a specified pattern string.ThreadState AThreadState
instance manages any state that might need to be bound and/or restored during a thread's execution. -
Class Summary Class Description AbstractFactory<T> TODO - Class JavaDocAntPathMatcher PathMatcher implementation for Ant-style path patterns.Assert Assertion utility class that assists in validating arguments.ByteSource.Util Utility class that can construct ByteSource instances.ClassUtils Utility method library used to conveniently interact withClass
es, such as acquiring them from the applicationClassLoader
s and instantiating Objects from them.CollectionUtils Static helper class for use dealing with Collections.JavaEnvironment Deprecated. This class is no longer used in Shiro and will be removed in the next major version.JdbcUtils A set of static helper methods for managing JDBC API objects.LifecycleUtils Utility class to help callInitializable.init()
andDestroyable.destroy()
methods cleanly on any object.MapContext AMapContext
provides a common base for context-based data storage in aMap
.PermissionUtils Utility class to help with String-to-Permission object resolution.RegExPatternMatcher PatternMatcher
implementation that uses standardjava.util.regex
objects.SimpleByteSource Very simpleByteSource
implementation that maintains an internalbyte[]
array and uses theHex
andBase64
codec classes to support thetoHex()
andtoBase64()
implementations.SoftHashMap<K,V> ASoftHashMap
is a memory-constrained map that stores its values inSoftReference
s.StringUtils Simple utility class for String operations useful across the framework.ThreadContext A ThreadContext provides a means of binding and unbinding objects to the current thread based on key/value pairs. -
Exception Summary Exception Description InstantiationException Runtime exception thrown by the framework when unable to instantiate a Class via reflection.UnknownClassException The Shiro framework'sRuntimeException
equivalent of the JDK'sClassNotFoundException
, to maintain a RuntimeException paradigm.