- decode(String) - Static method in class org.apache.shiro.codec.Base64
-
Converts the specified UTF-8 Base64 encoded String and decodes it to a raw Base64 decoded byte array.
- decode(byte[]) - Static method in class org.apache.shiro.codec.Base64
-
Decodes Base64 data into octets
- decode(byte[]) - Static method in class org.apache.shiro.codec.Hex
-
Converts an array of character bytes representing hexadecimal values into an
array of bytes of those same values.
- decode(String) - Static method in class org.apache.shiro.codec.Hex
-
Converts the specified Hex-encoded String into a raw byte array.
- decode(char[]) - Static method in class org.apache.shiro.codec.Hex
-
Converts an array of characters representing hexadecimal values into an
array of bytes of those same values.
- decodeToString(String) - Static method in class org.apache.shiro.codec.Base64
-
Converts the specified UTF-8 Base64 encoded String and decodes it to a resultant UTF-8 encoded string.
- decodeToString(byte[]) - Static method in class org.apache.shiro.codec.Base64
-
Decodes the specified Base64 encoded byte array and returns the decoded result as a UTF-8 encoded.
- DEFAULT_DELIMITER_CHAR - Static variable in class org.apache.shiro.util.StringUtils
-
Constant representing the default delimiter character (comma), equal to ','
- DEFAULT_QUOTE_CHAR - Static variable in class org.apache.shiro.util.StringUtils
-
Constant representing the default quote character (double quote), equal to '"'
- DefaultSerializer<T> - Class in org.apache.shiro.io
-
Serializer implementation that uses the default JVM serialization mechanism (Object Input/Output Streams).
- DefaultSerializer() - Constructor for class org.apache.shiro.io.DefaultSerializer
-
- deserialize(byte[]) - Method in class org.apache.shiro.io.DefaultSerializer
-
- deserialize(byte[]) - Method in interface org.apache.shiro.io.Serializer
-
Converts the specified raw byte[] array back into an original Object form.
- deserialize(byte[]) - Method in class org.apache.shiro.io.XmlSerializer
-
Deprecated.
Deserializes the specified
serialized
source back into an Object by using a
ByteArrayInputStream
to wrap the argument and then decode this
stream via an
XMLDecoder
, where the
readObject
call results in the original Object to return.
- destroy() - Method in interface org.apache.shiro.util.Destroyable
-
Called when this object is being destroyed, allowing any necessary cleanup of internal resources.
- destroy(Object) - Static method in class org.apache.shiro.util.LifecycleUtils
-
- destroy(Destroyable) - Static method in class org.apache.shiro.util.LifecycleUtils
-
- destroy(Collection) - Static method in class org.apache.shiro.util.LifecycleUtils
-
Calls
destroy
for each object in the collection.
- Destroyable - Interface in org.apache.shiro.util
-
Shiro container-agnostic interface that indicates that this object requires a callback during destruction.
- doesNotContain(String, String, String) - Static method in class org.apache.shiro.util.Assert
-
Assert that the given text does not contain the given substring.
- doesNotContain(String, String) - Static method in class org.apache.shiro.util.Assert
-
Assert that the given text does not contain the given substring.
- init() - Method in interface org.apache.shiro.util.Initializable
-
Initializes this object.
- init(Object) - Static method in class org.apache.shiro.util.LifecycleUtils
-
- init(Initializable) - Static method in class org.apache.shiro.util.LifecycleUtils
-
- init(Collection) - Static method in class org.apache.shiro.util.LifecycleUtils
-
Calls
init
for each object in the collection.
- Initializable - Interface in org.apache.shiro.util
-
Shiro container-agnostic interface that indicates that this object requires initialization.
- instantiate(Constructor, Object...) - Static method in class org.apache.shiro.util.ClassUtils
-
- InstantiationException - Exception in org.apache.shiro.util
-
Runtime exception thrown by the framework when unable to instantiate a Class via reflection.
- InstantiationException() - Constructor for exception org.apache.shiro.util.InstantiationException
-
Creates a new InstantiationException.
- InstantiationException(String) - Constructor for exception org.apache.shiro.util.InstantiationException
-
Constructs a new InstantiationException.
- InstantiationException(Throwable) - Constructor for exception org.apache.shiro.util.InstantiationException
-
Constructs a new InstantiationException.
- InstantiationException(String, Throwable) - Constructor for exception org.apache.shiro.util.InstantiationException
-
Constructs a new InstantiationException.
- isAssignable(Class, Class) - Static method in class org.apache.shiro.util.Assert
-
Assert that superType.isAssignableFrom(subType)
is true
.
- isAssignable(Class, Class, String) - Static method in class org.apache.shiro.util.Assert
-
Assert that superType.isAssignableFrom(subType)
is true
.
- isAvailable(String) - Static method in class org.apache.shiro.util.ClassUtils
-
- isBase64(byte[]) - Static method in class org.apache.shiro.codec.Base64
-
Tests a given byte array to see if it contains only valid characters within the Base64 alphabet.
- isByteSource(Object) - Method in class org.apache.shiro.codec.CodecSupport
-
Returns true
if the specified object can be easily converted to bytes by instances of this class,
false
otherwise.
- isCompatible(Object) - Static method in class org.apache.shiro.util.ByteSource.Util
-
Returns
true
if the specified object can be easily represented as a
ByteSource
using
the
ByteSource.Util
's default heuristics,
false
otherwise.
- isCompatible(Object) - Static method in class org.apache.shiro.util.SimpleByteSource
-
Returns true
if the specified object is a recognized data type that can be easily converted to
bytes by instances of this class, false
otherwise.
- isEmpty() - Method in interface org.apache.shiro.util.ByteSource
-
Returns true
if the underlying wrapped byte array is null or empty (zero length), false
otherwise.
- isEmpty() - Method in class org.apache.shiro.util.SimpleByteSource
-
- isEmpty() - Method in class org.apache.shiro.util.SoftHashMap
-
- isInstanceOf(Class, Object) - Static method in class org.apache.shiro.util.Assert
-
Assert that the provided object is an instance of the provided class.
- isInstanceOf(Class, Object, String) - Static method in class org.apache.shiro.util.Assert
-
Assert that the provided object is an instance of the provided class.
- isNull(Object, String) - Static method in class org.apache.shiro.util.Assert
-
Assert that an object is null
.
- isNull(Object) - Static method in class org.apache.shiro.util.Assert
-
Assert that an object is null
.
- isTrue(boolean, String) - Static method in class org.apache.shiro.util.Assert
-
Assert a boolean expression, throwing IllegalArgumentException
if the test result is false
.
- isTrue(boolean) - Static method in class org.apache.shiro.util.Assert
-
Assert a boolean expression, throwing IllegalArgumentException
if the test result is false
.
- Nameable - Interface in org.apache.shiro.util
-
Interface implemented by components that can be named, such as via configuration, and wish to have that name
set once it has been configured.
- newInstance(String) - Static method in class org.apache.shiro.util.ClassUtils
-
- newInstance(String, Object...) - Static method in class org.apache.shiro.util.ClassUtils
-
- newInstance(Class) - Static method in class org.apache.shiro.util.ClassUtils
-
- newInstance(Class, Object...) - Static method in class org.apache.shiro.util.ClassUtils
-
- noNullElements(Object[], String) - Static method in class org.apache.shiro.util.Assert
-
Assert that an array has no null elements.
- noNullElements(Object[]) - Static method in class org.apache.shiro.util.Assert
-
Assert that an array has no null elements.
- notEmpty(Object[], String) - Static method in class org.apache.shiro.util.Assert
-
Assert that an array has elements; that is, it must not be
null
and must have at least one element.
- notEmpty(Object[]) - Static method in class org.apache.shiro.util.Assert
-
Assert that an array has elements; that is, it must not be
null
and must have at least one element.
- notEmpty(Collection, String) - Static method in class org.apache.shiro.util.Assert
-
Assert that a collection has elements; that is, it must not be
null
and must have at least one element.
- notEmpty(Collection) - Static method in class org.apache.shiro.util.Assert
-
Assert that a collection has elements; that is, it must not be
null
and must have at least one element.
- notEmpty(Map, String) - Static method in class org.apache.shiro.util.Assert
-
Assert that a Map has entries; that is, it must not be null
and must have at least one entry.
- notEmpty(Map) - Static method in class org.apache.shiro.util.Assert
-
Assert that a Map has entries; that is, it must not be null
and must have at least one entry.
- notNull(Object, String) - Static method in class org.apache.shiro.util.Assert
-
Assert that an object is not null
.
- notNull(Object) - Static method in class org.apache.shiro.util.Assert
-
Assert that an object is not null
.
- SerializationException - Exception in org.apache.shiro.io
-
Root exception for problems either serializing or de-serializing data.
- SerializationException() - Constructor for exception org.apache.shiro.io.SerializationException
-
Creates a new SerializationException.
- SerializationException(String) - Constructor for exception org.apache.shiro.io.SerializationException
-
Constructs a new SerializationException.
- SerializationException(Throwable) - Constructor for exception org.apache.shiro.io.SerializationException
-
Constructs a new SerializationException.
- SerializationException(String, Throwable) - Constructor for exception org.apache.shiro.io.SerializationException
-
Constructs a new SerializationException.
- serialize(T) - Method in class org.apache.shiro.io.DefaultSerializer
-
- serialize(T) - Method in interface org.apache.shiro.io.Serializer
-
Converts the specified Object into a byte[] array.
- serialize(Object) - Method in class org.apache.shiro.io.XmlSerializer
-
Deprecated.
Serializes the specified
source
into a byte[] array by using the
XMLEncoder
to encode the object out to a
ByteArrayOutputStream
, where the resulting byte[] array is returned.
- Serializer<T> - Interface in org.apache.shiro.io
-
A Serializer
converts objects to raw binary data and vice versa, enabling persistent storage
of objects to files, HTTP cookies, or other mechanism.
- setName(String) - Method in interface org.apache.shiro.util.Nameable
-
Sets the (preferably application unique) name for this component.
- ShiroException - Exception in org.apache.shiro
-
Root exception for all Shiro runtime exceptions.
- ShiroException() - Constructor for exception org.apache.shiro.ShiroException
-
Creates a new ShiroException.
- ShiroException(String) - Constructor for exception org.apache.shiro.ShiroException
-
Constructs a new ShiroException.
- ShiroException(Throwable) - Constructor for exception org.apache.shiro.ShiroException
-
Constructs a new ShiroException.
- ShiroException(String, Throwable) - Constructor for exception org.apache.shiro.ShiroException
-
Constructs a new ShiroException.
- SimpleByteSource - Class in org.apache.shiro.util
-
- SimpleByteSource(byte[]) - Constructor for class org.apache.shiro.util.SimpleByteSource
-
- SimpleByteSource(char[]) - Constructor for class org.apache.shiro.util.SimpleByteSource
-
Creates an instance by converting the characters to a byte array (assumes UTF-8 encoding).
- SimpleByteSource(String) - Constructor for class org.apache.shiro.util.SimpleByteSource
-
Creates an instance by converting the String to a byte array (assumes UTF-8 encoding).
- SimpleByteSource(ByteSource) - Constructor for class org.apache.shiro.util.SimpleByteSource
-
Creates an instance using the sources bytes directly - it does not create a copy of the
argument's byte array.
- SimpleByteSource(File) - Constructor for class org.apache.shiro.util.SimpleByteSource
-
Creates an instance by converting the file to a byte array.
- SimpleByteSource(InputStream) - Constructor for class org.apache.shiro.util.SimpleByteSource
-
Creates an instance by converting the stream to a byte array.
- size() - Method in class org.apache.shiro.util.SoftHashMap
-
- SoftHashMap<K,V> - Class in org.apache.shiro.util
-
A
SoftHashMap
is a memory-constrained map that stores its
values in
SoftReference
s.
- SoftHashMap() - Constructor for class org.apache.shiro.util.SoftHashMap
-
- SoftHashMap(int) - Constructor for class org.apache.shiro.util.SoftHashMap
-
Creates a new SoftHashMap with the specified retention size.
- SoftHashMap(Map<K, V>) - Constructor for class org.apache.shiro.util.SoftHashMap
-
Creates a
SoftHashMap
backed by the specified
source
, with a default retention
size of
DEFAULT_RETENTION_SIZE
(100 entries).
- SoftHashMap(Map<K, V>, int) - Constructor for class org.apache.shiro.util.SoftHashMap
-
Creates a SoftHashMap
backed by the specified source
, with the specified retention size.
- split(String) - Static method in class org.apache.shiro.util.StringUtils
-
- split(String, char) - Static method in class org.apache.shiro.util.StringUtils
-
- split(String, char, char) - Static method in class org.apache.shiro.util.StringUtils
-
- split(String, char, char, char) - Static method in class org.apache.shiro.util.StringUtils
-
- split(String, char, char, char, boolean, boolean) - Static method in class org.apache.shiro.util.StringUtils
-
Splits the specified delimited String into tokens, supporting quoted tokens so that quoted strings themselves
won't be tokenized.
- splitKeyValue(String) - Static method in class org.apache.shiro.util.StringUtils
-
- splitToSet(String, String) - Static method in class org.apache.shiro.util.StringUtils
-
Splits the delimited
string (delimited by the specified separator
character) and returns the
delimited values as a Set
.
- startsWithIgnoreCase(String, String) - Static method in class org.apache.shiro.util.StringUtils
-
Test if the given String starts with the specified prefix,
ignoring upper/lower case.
- state(boolean, String) - Static method in class org.apache.shiro.util.Assert
-
Assert a boolean expression, throwing IllegalStateException
if the test result is false
.
- state(boolean) - Static method in class org.apache.shiro.util.Assert
-
- StringUtils - Class in org.apache.shiro.util
-
Simple utility class for String operations useful across the framework.
- StringUtils() - Constructor for class org.apache.shiro.util.StringUtils
-
- toBase64() - Method in interface org.apache.shiro.util.ByteSource
-
Returns the
Base 64-formatted String representation of the
underlying wrapped byte array.
- toBase64() - Method in class org.apache.shiro.util.SimpleByteSource
-
- toBytes(char[]) - Static method in class org.apache.shiro.codec.CodecSupport
-
Converts the specified character array to a byte array using the Shiro's preferred encoding (UTF-8).
- toBytes(char[], String) - Static method in class org.apache.shiro.codec.CodecSupport
-
Converts the specified character array into a byte array using the specified character encoding.
- toBytes(String) - Static method in class org.apache.shiro.codec.CodecSupport
-
- toBytes(String, String) - Static method in class org.apache.shiro.codec.CodecSupport
-
Converts the specified source to a byte array via the specified encoding, throwing a
CodecException
if the encoding fails.
- toBytes(Object) - Method in class org.apache.shiro.codec.CodecSupport
-
Converts the specified Object into a byte array.
- toBytes(File) - Method in class org.apache.shiro.codec.CodecSupport
-
- toBytes(InputStream) - Method in class org.apache.shiro.codec.CodecSupport
-
- toChars(byte[]) - Static method in class org.apache.shiro.codec.CodecSupport
-
- toChars(byte[], String) - Static method in class org.apache.shiro.codec.CodecSupport
-
Converts the specified byte array to a character array using the specified character encoding.
- toDelimitedString(Object[], String) - Static method in class org.apache.shiro.util.StringUtils
-
Returns the array's contents as a string, with each element delimited by the specified
delimiter
argument.
- toDelimitedString(Collection, String) - Static method in class org.apache.shiro.util.StringUtils
-
Returns the collection's contents as a string, with each element delimited by the specified
delimiter
argument.
- toDigit(char, int) - Static method in class org.apache.shiro.codec.Hex
-
Converts a hexadecimal character to an integer.
- toHex() - Method in interface org.apache.shiro.util.ByteSource
-
Returns the
Hex-formatted String representation of the
underlying wrapped byte array.
- toHex() - Method in class org.apache.shiro.util.SimpleByteSource
-
- tokenizeToStringArray(String, String) - Static method in class org.apache.shiro.util.StringUtils
-
Tokenize the given String into a String array via a StringTokenizer.
- tokenizeToStringArray(String, String, boolean, boolean) - Static method in class org.apache.shiro.util.StringUtils
-
Tokenize the given String into a String array via a StringTokenizer.
- toString(byte[]) - Static method in class org.apache.shiro.codec.CodecSupport
-
- toString(byte[], String) - Static method in class org.apache.shiro.codec.CodecSupport
-
Converts the specified byte array to a String using the specified character encoding.
- toString(Object) - Method in class org.apache.shiro.codec.CodecSupport
-
Converts the specified Object into a String.
- toString() - Method in class org.apache.shiro.util.SimpleByteSource
-
- toString(Object[]) - Static method in class org.apache.shiro.util.StringUtils
-
Returns the specified array as a comma-delimited (',') string.
- toStringArray(Collection) - Static method in class org.apache.shiro.util.StringUtils
-
Copy the given Collection into a String array.