Package | Description |
---|---|
org.modeshape.common.text |
A set of utilities for working with text.
|
org.modeshape.common.util |
A set of miscellaneous utilities.
|
Modifier and Type | Method and Description |
---|---|
SecureHash.Algorithm |
SecureHashTextEncoder.getAlgorithm()
Return the secure hash algorithm used by this encoder.
|
Constructor and Description |
---|
SecureHashTextEncoder(SecureHash.Algorithm algorithm)
Create an encoder that uses the supplied algorithm and returns only the supplied number of characters in the hash.
|
SecureHashTextEncoder(SecureHash.Algorithm algorithm,
int maxLength)
Create an encoder that uses the supplied algorithm and returns only the supplied number of characters in the hash.
|
Modifier and Type | Method and Description |
---|---|
static SecureHash.Algorithm |
SecureHash.Algorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecureHash.Algorithm[] |
SecureHash.Algorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static SecureHash.HashingReader |
SecureHash.createHashingReader(SecureHash.Algorithm algorithm,
Reader reader,
Charset charset)
Create an Reader instance that wraps another reader and that computes the secure hash (using the algorithm with the
supplied name) as the returned Reader is used.
|
static SecureHash.HashingInputStream |
SecureHash.createHashingStream(SecureHash.Algorithm algorithm,
InputStream inputStream)
Create an InputStream instance that wraps another stream and that computes the secure hash (using the algorithm with the
supplied name) as the returned stream is used.
|
static byte[] |
SecureHash.getHash(SecureHash.Algorithm algorithm,
byte[] content)
Get the hash of the supplied content, using the supplied digest algorithm.
|
static byte[] |
SecureHash.getHash(SecureHash.Algorithm algorithm,
File file)
Get the hash of the supplied content, using the supplied digest algorithm.
|
static byte[] |
SecureHash.getHash(SecureHash.Algorithm algorithm,
InputStream stream)
Get the hash of the supplied content, using the supplied digest algorithm.
|
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.