hunt.shiro.util.SimpleByteSource

Undocumented in source.

Members

Classes

ByteSourceUtil
class ByteSourceUtil

Utility class that can construct ByteSource instances. This is slightly nicer than needing to know the {@code ByteSource} implementation class to use.

SimpleByteSource
class SimpleByteSource

Very simple {@link ByteSource ByteSource} implementation that maintains an internal {@code byte[]} array and uses the {@link Hex Hex} and {@link Base64 Base64} codec classes to support the {@link #toHex() toHex()} and {@link #toBase64() toBase64()} implementations. <p/> The constructors on this class accept the following implicit byte-backed data types and will convert them to a byte-array automatically: <ul> <li>byte[]</li> <li>char[]</li> <li>string</li> <li>{@link ByteSource ByteSource}</li> <li>{@link File File}</li> <li>{@link InputStream InputStream}</li> </ul>

Meta