Package | Description |
---|---|
org.apache.shiro.codec |
Components for encoding and decoding of data across multiple formats, especially useful in Shiro's
cryptography and web functionality.
|
org.apache.shiro.crypto.hash |
Cryptographic Hashing components that greatly simplify one-way data hashing in an application.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
CodecSupport.toBytes(char[] chars,
String encoding)
Converts the specified character array into a byte array using the specified character encoding.
|
static byte[] |
CodecSupport.toBytes(String source,
String encoding)
Converts the specified source to a byte array via the specified encoding, throwing a
CodecException if the encoding fails. |
static char[] |
CodecSupport.toChars(byte[] bytes,
String encoding)
Converts the specified byte array to a character array using the specified character encoding.
|
static String |
CodecSupport.toString(byte[] bytes,
String encoding)
Converts the specified byte array to a String using the specified character encoding.
|
Constructor and Description |
---|
AbstractHash(Object source)
Deprecated.
Creates a hash of the specified
source with no salt using a single hash iteration. |
AbstractHash(Object source,
Object salt)
Deprecated.
Creates a hash of the specified
source using the given salt using a single hash iteration. |
AbstractHash(Object source,
Object salt,
int hashIterations)
Deprecated.
Creates a hash of the specified
source using the given salt a total of
hashIterations times. |
SimpleHash(String algorithmName,
Object source)
Creates an
algorithmName -specific hash of the specified source with no salt using a
single hash iteration. |
SimpleHash(String algorithmName,
Object source,
Object salt)
Creates an
algorithmName -specific hash of the specified source using the given salt
using a single hash iteration. |
SimpleHash(String algorithmName,
Object source,
Object salt,
int hashIterations)
Creates an
algorithmName -specific hash of the specified source using the given
salt a total of hashIterations times. |
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.