Package org.apache.shiro.util
-
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. -
Class Summary Class Description 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.LifecycleUtils Utility class to help callInitializable.init()
andDestroyable.destroy()
methods cleanly on any object.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. -
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.