- generateInitializationVector(boolean) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
- generateInitializationVector(boolean) - Method in class org.apache.shiro.crypto.JcaCipherService
-
- generateNewKey() - Method in class org.apache.shiro.crypto.AbstractSymmetricCipherService
-
- generateNewKey(int) - Method in class org.apache.shiro.crypto.AbstractSymmetricCipherService
-
- getAlgorithmName() - Method in class org.apache.shiro.crypto.hash.AbstractHash
-
Deprecated.
Implemented by subclasses, this specifies the
MessageDigest
algorithm name
to use when performing the hash.
- getAlgorithmName(HashRequest) - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- getAlgorithmName() - Method in interface org.apache.shiro.crypto.hash.Hash
-
Returns the name of the algorithm used to hash the input source, for example, SHA-256
, MD5
, etc.
- getAlgorithmName() - Method in interface org.apache.shiro.crypto.hash.HashRequest
-
Returns the name of the hash algorithm the
HashService
should use when computing the
Hash
, or
null
if the default algorithm configuration of the
HashService
should be used.
- getAlgorithmName() - Method in class org.apache.shiro.crypto.hash.SimpleHash
-
Returns the
MessageDigest
algorithm name to use when performing the hash.
- getAlgorithmName() - Method in class org.apache.shiro.crypto.hash.SimpleHashRequest
-
- getAlgorithmName() - Method in class org.apache.shiro.crypto.JcaCipherService
-
Returns the cipher algorithm name that will be used for all encryption, decryption, and key operations (for
example, 'AES', 'Blowfish', 'RSA', 'DSA', 'TripleDES', etc).
- getBlockSize() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Returns the block cipher's block size to be used when constructing
Cipher
transformation string or
0
if the JCA Provider default block size
for the specified
algorithm
should be used.
- getBytes() - Method in class org.apache.shiro.crypto.hash.AbstractHash
-
Deprecated.
- getBytes() - Method in class org.apache.shiro.crypto.hash.SimpleHash
-
- getDefaultNextBytesSize() - Method in class org.apache.shiro.crypto.SecureRandomNumberGenerator
-
Returns the size of the generated byte array for calls to
nextBytes()
.
- getDefaultSecureRandom() - Static method in class org.apache.shiro.crypto.JcaCipherService
-
- getDigest(String) - Method in class org.apache.shiro.crypto.hash.AbstractHash
-
Deprecated.
Returns the JDK MessageDigest instance to use for executing the hash.
- getDigest(String) - Method in class org.apache.shiro.crypto.hash.SimpleHash
-
Returns the JDK MessageDigest instance to use for executing the hash.
- getFormatClassNames() - Method in class org.apache.shiro.crypto.hash.format.DefaultHashFormatFactory
-
Returns a hashFormatAlias
-to-fullyQualifiedHashFormatClassNameImplementation
map.
- getHashAlgorithmName() - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- getHashFormatClass(String) - Method in class org.apache.shiro.crypto.hash.format.DefaultHashFormatFactory
-
Heuristically determine the fully qualified HashFormat implementation class name based on the specified
token.
- getHashFormatClass(String, String) - Method in class org.apache.shiro.crypto.hash.format.DefaultHashFormatFactory
-
Heuristically determine the fully qualified HashFormat
implementation class name in the specified
package based on the provided token.
- getHashIterations() - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- getId() - Method in interface org.apache.shiro.crypto.hash.format.ModularCryptFormat
-
Returns the Modular Crypt Format identifier that indicates how the formatted String should be parsed.
- getId() - Method in class org.apache.shiro.crypto.hash.format.Shiro1CryptFormat
-
- getInitializationVectorSize() - Method in class org.apache.shiro.crypto.JcaCipherService
-
Returns the algorithm-specific size in bits of generated initialization vectors.
- getInstance(String) - Method in class org.apache.shiro.crypto.hash.format.DefaultHashFormatFactory
-
- getInstance(String) - Method in interface org.apache.shiro.crypto.hash.format.HashFormatFactory
-
- getIterations(HashRequest) - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- getIterations() - Method in interface org.apache.shiro.crypto.hash.Hash
-
Returns the number of hash iterations used to compute the hash.
- getIterations() - Method in interface org.apache.shiro.crypto.hash.HashRequest
-
Returns the number of requested hash iterations to be performed when computing the final Hash
result.
- getIterations() - Method in class org.apache.shiro.crypto.hash.SimpleHash
-
- getIterations() - Method in class org.apache.shiro.crypto.hash.SimpleHashRequest
-
- getKeySize() - Method in class org.apache.shiro.crypto.JcaCipherService
-
Returns the size in bits (not bytes) of generated cipher keys.
- getModeName() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Returns the cipher operation mode name (as a String) to be used when constructing
Cipher
transformation string or
null
if the JCA Provider default mode for
the specified
algorithm
should be used.
- getPaddingSchemeName() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Returns the cipher algorithm padding scheme name (as a String) to be used when constructing
Cipher
transformation string or
null
if the JCA Provider default mode for
the specified
algorithm
should be used.
- getPrivateSalt() - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- getPublicSalt(HashRequest) - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
Returns the public salt that should be used to compute a hash based on the specified request or
null
if no public salt should be used.
- getRandomNumberGenerator() - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- getSalt() - Method in interface org.apache.shiro.crypto.hash.Hash
-
Returns a salt used to compute the hash or null
if no salt was used.
- getSalt() - Method in interface org.apache.shiro.crypto.hash.HashRequest
-
Returns a salt to be used by the
HashService
during hash computation, or
null
if no salt is
provided as part of the request.
- getSalt() - Method in class org.apache.shiro.crypto.hash.SimpleHash
-
- getSalt() - Method in class org.apache.shiro.crypto.hash.SimpleHashRequest
-
- getSearchPackages() - Method in class org.apache.shiro.crypto.hash.format.DefaultHashFormatFactory
-
- getSecureRandom() - Method in class org.apache.shiro.crypto.JcaCipherService
-
Returns a source of randomness for encryption operations.
- getSecureRandom() - Method in class org.apache.shiro.crypto.SecureRandomNumberGenerator
-
- getSource() - Method in interface org.apache.shiro.crypto.hash.HashRequest
-
Returns the source data that will be hashed by a
HashService
.
- getSource() - Method in class org.apache.shiro.crypto.hash.SimpleHashRequest
-
- getStreamingBlockSize() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
- getStreamingBufferSize() - Method in class org.apache.shiro.crypto.JcaCipherService
-
- getStreamingModeName() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
- getStreamingPaddingSchemeName() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
- getTransformationName() - Method in enum org.apache.shiro.crypto.PaddingScheme
-
Returns the actual string name to use when building the
Cipher
transformation string
.
- getTransformationString(boolean) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
- getTransformationString(boolean) - Method in class org.apache.shiro.crypto.JcaCipherService
-
- SecureRandomNumberGenerator - Class in org.apache.shiro.crypto
-
- SecureRandomNumberGenerator() - Constructor for class org.apache.shiro.crypto.SecureRandomNumberGenerator
-
Creates a new instance with a default backing
SecureRandom
and a
defaultNextBytesSize
of
16
, which equals 128 bits, a size commonly
used in cryptographic algorithms.
- setAlgorithmName(String) - Method in class org.apache.shiro.crypto.hash.HashRequest.Builder
-
Sets the name of the hash algorithm the
HashService
should use when computing the
Hash
.
- setBlockSize(int) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Sets the block cipher's block size to be used when constructing
Cipher
transformation string.
- setBytes(byte[]) - Method in class org.apache.shiro.crypto.hash.AbstractHash
-
Deprecated.
Sets the raw bytes stored by this hash instance.
- setBytes(byte[]) - Method in class org.apache.shiro.crypto.hash.SimpleHash
-
Sets the raw bytes stored by this hash instance.
- setDefaultNextBytesSize(int) - Method in class org.apache.shiro.crypto.SecureRandomNumberGenerator
-
Sets the size of the generated byte array for calls to
nextBytes()
.
- setFormatClassNames(Map<String, String>) - Method in class org.apache.shiro.crypto.hash.format.DefaultHashFormatFactory
-
- setGenerateInitializationVectors(boolean) - Method in class org.apache.shiro.crypto.JcaCipherService
-
- setGeneratePublicSalt(boolean) - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
Sets whether or not a public salt should be randomly generated and used to compute a hash if a
HashRequest
does not specify a salt.
- setHashAlgorithmName(String) - Method in interface org.apache.shiro.crypto.hash.ConfigurableHashService
-
Sets the name of the
MessageDigest
algorithm that will be used to compute
hashes.
- setHashAlgorithmName(String) - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- setHashIterations(int) - Method in interface org.apache.shiro.crypto.hash.ConfigurableHashService
-
Sets the number of hash iterations that will be performed during hash computation.
- setHashIterations(int) - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- setInitializationVectorSize(int) - Method in class org.apache.shiro.crypto.JcaCipherService
-
Sets the algorithm-specific initialization vector size in bits (not bytes!)
- setIterations(int) - Method in class org.apache.shiro.crypto.hash.HashRequest.Builder
-
Sets the number of requested hash iterations to be performed when computing the final Hash
result.
- setIterations(int) - Method in class org.apache.shiro.crypto.hash.SimpleHash
-
Sets the iterations used to previously compute AN ALREADY GENERATED HASH.
- setKeySize(int) - Method in class org.apache.shiro.crypto.JcaCipherService
-
Sets the size in bits (not bytes) of generated cipher keys.
- setMode(OperationMode) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Sets the cipher operation mode of operation to be used when constructing the
Cipher
transformation string.
- setModeName(String) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Sets the cipher operation mode name to be used when constructing the
Cipher
transformation string.
- setPaddingScheme(PaddingScheme) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Sets the padding scheme to be used when constructing the
Cipher
transformation string.
- setPaddingSchemeName(String) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Sets the padding scheme name to be used when constructing the
Cipher
transformation string, or
null
if the JCA Provider default mode for
the specified
algorithm
should be used.
- setPrivateSalt(ByteSource) - Method in interface org.apache.shiro.crypto.hash.ConfigurableHashService
-
Sets the 'private' (internal) salt to be paired with a 'public' (random or supplied) salt during hash computation.
- setPrivateSalt(ByteSource) - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- setRandomNumberGenerator(RandomNumberGenerator) - Method in interface org.apache.shiro.crypto.hash.ConfigurableHashService
-
Sets a source of randomness used to generate public salts that will in turn be used during hash computation.
- setRandomNumberGenerator(RandomNumberGenerator) - Method in class org.apache.shiro.crypto.hash.DefaultHashService
-
- setSalt(ByteSource) - Method in class org.apache.shiro.crypto.hash.HashRequest.Builder
-
Sets a salt to be used by the
HashService
during hash computation.
- setSalt(Object) - Method in class org.apache.shiro.crypto.hash.HashRequest.Builder
-
Sets a salt to be used by the
HashService
during hash computation.
- setSalt(ByteSource) - Method in class org.apache.shiro.crypto.hash.SimpleHash
-
Sets the salt used to previously compute AN ALREADY GENERATED HASH.
- setSearchPackages(Set<String>) - Method in class org.apache.shiro.crypto.hash.format.DefaultHashFormatFactory
-
- setSecureRandom(SecureRandom) - Method in class org.apache.shiro.crypto.JcaCipherService
-
Sets a source of randomness for encryption operations.
- setSecureRandom(SecureRandom) - Method in class org.apache.shiro.crypto.SecureRandomNumberGenerator
-
- setSeed(byte[]) - Method in class org.apache.shiro.crypto.SecureRandomNumberGenerator
-
Seeds the backing
SecureRandom
instance with additional seed data.
- setSource(ByteSource) - Method in class org.apache.shiro.crypto.hash.HashRequest.Builder
-
Sets the source data that will be hashed by a
HashService
.
- setSource(Object) - Method in class org.apache.shiro.crypto.hash.HashRequest.Builder
-
Sets the source data that will be hashed by a
HashService
.
- setStreamingBlockSize(int) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
- setStreamingBufferSize(int) - Method in class org.apache.shiro.crypto.JcaCipherService
-
- setStreamingMode(OperationMode) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Sets the transformation string mode to be used for streaming operations only.
- setStreamingModeName(String) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Sets the transformation string mode name to be used for streaming operations only.
- setStreamingPaddingScheme(PaddingScheme) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
- setStreamingPaddingSchemeName(String) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
- Sha1Hash - Class in org.apache.shiro.crypto.hash
-
Generates an SHA-1 Hash (Secure Hash Standard, NIST FIPS 180-1) from a given input source with an
optional salt and hash iterations.
- Sha1Hash() - Constructor for class org.apache.shiro.crypto.hash.Sha1Hash
-
- Sha1Hash(Object) - Constructor for class org.apache.shiro.crypto.hash.Sha1Hash
-
- Sha1Hash(Object, Object) - Constructor for class org.apache.shiro.crypto.hash.Sha1Hash
-
- Sha1Hash(Object, Object, int) - Constructor for class org.apache.shiro.crypto.hash.Sha1Hash
-
- Sha256Hash - Class in org.apache.shiro.crypto.hash
-
Generates an SHA-256 Hash from a given input source with an optional salt and hash iterations.
- Sha256Hash() - Constructor for class org.apache.shiro.crypto.hash.Sha256Hash
-
- Sha256Hash(Object) - Constructor for class org.apache.shiro.crypto.hash.Sha256Hash
-
- Sha256Hash(Object, Object) - Constructor for class org.apache.shiro.crypto.hash.Sha256Hash
-
- Sha256Hash(Object, Object, int) - Constructor for class org.apache.shiro.crypto.hash.Sha256Hash
-
- Sha384Hash - Class in org.apache.shiro.crypto.hash
-
Generates an SHA-384 Hash from a given input source with an optional salt and hash iterations.
- Sha384Hash() - Constructor for class org.apache.shiro.crypto.hash.Sha384Hash
-
- Sha384Hash(Object) - Constructor for class org.apache.shiro.crypto.hash.Sha384Hash
-
- Sha384Hash(Object, Object) - Constructor for class org.apache.shiro.crypto.hash.Sha384Hash
-
- Sha384Hash(Object, Object, int) - Constructor for class org.apache.shiro.crypto.hash.Sha384Hash
-
- Sha512Hash - Class in org.apache.shiro.crypto.hash
-
Generates an SHA-512 Hash from a given input source with an optional salt and hash iterations.
- Sha512Hash() - Constructor for class org.apache.shiro.crypto.hash.Sha512Hash
-
- Sha512Hash(Object) - Constructor for class org.apache.shiro.crypto.hash.Sha512Hash
-
- Sha512Hash(Object, Object) - Constructor for class org.apache.shiro.crypto.hash.Sha512Hash
-
- Sha512Hash(Object, Object, int) - Constructor for class org.apache.shiro.crypto.hash.Sha512Hash
-
- Shiro1CryptFormat - Class in org.apache.shiro.crypto.hash.format
-
- Shiro1CryptFormat() - Constructor for class org.apache.shiro.crypto.hash.format.Shiro1CryptFormat
-
- SimpleHash - Class in org.apache.shiro.crypto.hash
-
A
Hash
implementation that allows any
MessageDigest
algorithm name to
be used.
- SimpleHash(String) - Constructor for class org.apache.shiro.crypto.hash.SimpleHash
-
Creates an new instance with only its algorithmName
set - no hashing is performed.
- SimpleHash(String, Object) - Constructor for class org.apache.shiro.crypto.hash.SimpleHash
-
Creates an algorithmName
-specific hash of the specified source
with no salt
using a
single hash iteration.
- SimpleHash(String, Object, Object) - Constructor for class org.apache.shiro.crypto.hash.SimpleHash
-
Creates an algorithmName
-specific hash of the specified source
using the given salt
using a single hash iteration.
- SimpleHash(String, Object, Object, int) - Constructor for class org.apache.shiro.crypto.hash.SimpleHash
-
Creates an algorithmName
-specific hash of the specified source
using the given
salt
a total of hashIterations
times.
- SimpleHashRequest - Class in org.apache.shiro.crypto.hash
-
- SimpleHashRequest(String, ByteSource, ByteSource, int) - Constructor for class org.apache.shiro.crypto.hash.SimpleHashRequest
-
Creates a new SimpleHashRequest instance.