| Package | Description |
|---|---|
| org.apache.shiro.util |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleByteSource
Very simple
ByteSource implementation that maintains an internal byte[] array and uses the
Hex and Base64 codec classes to support the
toHex() and toBase64() implementations. |
| Modifier and Type | Method and Description |
|---|---|
static ByteSource |
ByteSource.Util.bytes(byte[] bytes)
Returns a new
ByteSource instance representing the specified byte array. |
static ByteSource |
ByteSource.Util.bytes(ByteSource source)
Returns a new
ByteSource instance representing the specified ByteSource. |
static ByteSource |
ByteSource.Util.bytes(char[] chars)
Returns a new
ByteSource instance representing the specified character array's bytes. |
static ByteSource |
ByteSource.Util.bytes(File file)
Returns a new
ByteSource instance representing the specified File's bytes. |
static ByteSource |
ByteSource.Util.bytes(InputStream stream)
Returns a new
ByteSource instance representing the specified InputStream's bytes. |
static ByteSource |
ByteSource.Util.bytes(Object source)
Returns a
ByteSource instance representing the specified byte source argument. |
static ByteSource |
ByteSource.Util.bytes(String string)
Returns a new
ByteSource instance representing the specified string's bytes. |
| Modifier and Type | Method and Description |
|---|---|
static ByteSource |
ByteSource.Util.bytes(ByteSource source)
Returns a new
ByteSource instance representing the specified ByteSource. |
| Constructor and Description |
|---|
SimpleByteSource(ByteSource source)
Creates an instance using the sources bytes directly - it does not create a copy of the
argument's byte array.
|
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.