A B C D E G I J N O P S V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractSymmetricCipherService - Class in org.apache.shiro.crypto
-
Base abstract class for supporting symmetric key cipher algorithms.
- AbstractSymmetricCipherService(String) - Constructor for class org.apache.shiro.crypto.AbstractSymmetricCipherService
- AesCipherService - Class in org.apache.shiro.crypto
-
CipherService
using theAES
cipher algorithm for all encryption, decryption, and key operations. - AesCipherService() - Constructor for class org.apache.shiro.crypto.AesCipherService
-
Creates a new
CipherService
instance using theAES
cipher algorithm with the following important cipher default attributes: Attribute ValuekeySize
128
bitsblockSize
128
bits (required forAES
mode
GCM
*paddingScheme
NoPadding
***initializationVectorSize
128
bitsgenerateInitializationVectors
true
**
B
- BlowfishCipherService - Class in org.apache.shiro.crypto
-
CipherService
using theBlowfish
cipher algorithm for all encryption, decryption, and key operations. - BlowfishCipherService() - Constructor for class org.apache.shiro.crypto.BlowfishCipherService
-
Creates a new
CipherService
instance using theBlowfish
cipher algorithm with the following important cipher default attributes: Attribute ValuekeySize
128
bitsblockSize
64
bits (required forBlowfish
)mode
CBC
*paddingScheme
PKCS5
initializationVectorSize
64
bitsgenerateInitializationVectors
true
**
C
- CBC - org.apache.shiro.crypto.OperationMode
-
Cipher-block Chaining mode, defined in FIPS PUB 81.
- CCM - org.apache.shiro.crypto.OperationMode
-
Counter with CBC-MAC mode* - for block ciphers with 128 bit block-size only.
- CFB - org.apache.shiro.crypto.OperationMode
- CipherService - Interface in org.apache.shiro.crypto
-
A
CipherService
uses a cryptographic algorithm called a Cipher to convert an original input source using akey
to an uninterpretable format. - createParameterSpec(byte[], boolean) - Method in class org.apache.shiro.crypto.AesCipherService
- createParameterSpec(byte[], boolean) - Method in class org.apache.shiro.crypto.JcaCipherService
- CTR - org.apache.shiro.crypto.OperationMode
-
Counter Mode, aka Integer Counter Mode (ICM) and Segmented Integer Counter (SIC).
D
- decrypt(byte[], byte[]) - Method in interface org.apache.shiro.crypto.CipherService
-
Decrypts encrypted data via the specified cipher key and returns the original (pre-encrypted) data.
- decrypt(byte[], byte[]) - Method in class org.apache.shiro.crypto.JcaCipherService
- decrypt(InputStream, OutputStream, byte[]) - Method in interface org.apache.shiro.crypto.CipherService
-
Receives encrypted data from the given
InputStream
, decrypts it, and sends the resulting decrypted data to the givenOutputStream
. - decrypt(InputStream, OutputStream, byte[]) - Method in class org.apache.shiro.crypto.JcaCipherService
- DefaultBlockCipherService - Class in org.apache.shiro.crypto
-
Base abstract class for block cipher algorithms.
- DefaultBlockCipherService(String) - Constructor for class org.apache.shiro.crypto.DefaultBlockCipherService
-
Creates a new
DefaultBlockCipherService
using the specified block cipheralgorithmName
.
E
- EAX - org.apache.shiro.crypto.OperationMode
-
EAX Mode*.
- ECB - org.apache.shiro.crypto.OperationMode
-
Electronic Codebook mode, defined in FIPS PUB 81.
- encrypt(byte[], byte[]) - Method in interface org.apache.shiro.crypto.CipherService
-
Encrypts data via the specified cipher key.
- encrypt(byte[], byte[]) - Method in class org.apache.shiro.crypto.JcaCipherService
- encrypt(InputStream, OutputStream, byte[]) - Method in interface org.apache.shiro.crypto.CipherService
-
Receives the data from the given
InputStream
, encrypts it, and sends the resulting encrypted data to the givenOutputStream
. - encrypt(InputStream, OutputStream, byte[]) - Method in class org.apache.shiro.crypto.JcaCipherService
- ensureSecureRandom() - Method in class org.apache.shiro.crypto.JcaCipherService
G
- GCM - org.apache.shiro.crypto.OperationMode
-
Galois/Counter mode* - for block ciphers with 128 bit block-size only.
- 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
-
Generates a new
Key
suitable for this CipherService'salgorithm
by callinggenerateNewKey(128)
(uses a 128 bit size by default). - generateNewKey(int) - Method in class org.apache.shiro.crypto.AbstractSymmetricCipherService
-
Generates a new
Key
of the specified size suitable for this CipherService (based on thealgorithmName
using the JDKKeyGenerator
. - 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
- getDefaultSecureRandom() - Static method in class org.apache.shiro.crypto.JcaCipherService
- getInitializationVectorSize() - Method in class org.apache.shiro.crypto.JcaCipherService
-
Returns the algorithm-specific size in bits of generated initialization vectors.
- 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
- getPaddingSchemeName() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
- getSecureRandom() - Method in class org.apache.shiro.crypto.JcaCipherService
-
Returns a source of randomness for encryption operations.
- getStreamingBlockSize() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
- getStreamingBufferSize() - Method in class org.apache.shiro.crypto.JcaCipherService
-
Returns the size in bytes of the internal buffer used to transfer data from one stream to another during stream operations (
JcaCipherService.encrypt(java.io.InputStream, java.io.OutputStream, byte[])
andJcaCipherService.decrypt(java.io.InputStream, java.io.OutputStream, byte[])
). - getStreamingModeName() - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Same purpose as the
modeName
attribute, but is used instead only for for streaming operations (JcaCipherService.encrypt(java.io.InputStream, java.io.OutputStream, byte[])
andJcaCipherService.decrypt(java.io.InputStream, java.io.OutputStream, byte[])
). - 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
-
Returns the transformation string to use with the
Cipher.getInstance(java.lang.String)
call. - getTransformationString(boolean) - Method in class org.apache.shiro.crypto.JcaCipherService
-
Returns the transformation string to use with the
Cipher.getInstance(java.lang.String)
invocation when creating a newCipher
instance.
I
- isGenerateInitializationVectors() - Method in class org.apache.shiro.crypto.JcaCipherService
- isGenerateInitializationVectors(boolean) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
-
Overrides the parent implementation to ensure initialization vectors are always generated if streaming is enabled (block ciphers must use initialization vectors if they are to be used as a stream cipher).
- isGenerateInitializationVectors(boolean) - Method in class org.apache.shiro.crypto.JcaCipherService
- ISO10126 - org.apache.shiro.crypto.PaddingScheme
-
Padding scheme as defined in the W3C's "XML Encryption Syntax and Processing" document, Section 5.2 - Block Encryption Algorithms.
J
- JcaCipherService - Class in org.apache.shiro.crypto
-
Abstract
CipherService
implementation utilizing Java's JCA APIs. - JcaCipherService(String) - Constructor for class org.apache.shiro.crypto.JcaCipherService
-
Creates a new
JcaCipherService
instance which will use the specified cipheralgorithmName
for all encryption, decryption, and key operations.
N
- NONE - org.apache.shiro.crypto.OperationMode
-
No mode.
- NONE - org.apache.shiro.crypto.PaddingScheme
-
No padding.
O
- OAEP - org.apache.shiro.crypto.PaddingScheme
-
Optimal Asymmetric Encryption Padding defined in RSA's PKSC#1 standard (aka RFC 3447).
- OAEPWithMd5AndMgf1 - org.apache.shiro.crypto.PaddingScheme
-
Optimal Asymmetric Encryption Padding with
MD5
message digest andMGF1
mask generation function. - OAEPWithSha1AndMgf1 - org.apache.shiro.crypto.PaddingScheme
-
Optimal Asymmetric Encryption Padding with
SHA-1
message digest andMGF1
mask generation function. - OAEPWithSha256AndMgf1 - org.apache.shiro.crypto.PaddingScheme
-
Optimal Asymmetric Encryption Padding with
SHA-256
message digest andMGF1
mask generation function. - OAEPWithSha384AndMgf1 - org.apache.shiro.crypto.PaddingScheme
-
Optimal Asymmetric Encryption Padding with
SHA-384
message digest andMGF1
mask generation function. - OAEPWithSha512AndMgf1 - org.apache.shiro.crypto.PaddingScheme
-
Optimal Asymmetric Encryption Padding with
SHA-512
message digest andMGF1
mask generation function. - OCB - org.apache.shiro.crypto.OperationMode
-
Offset Codebook mode*.
- OFB - org.apache.shiro.crypto.OperationMode
-
Output Feedback mode, defined in FIPS PUB 81.
- OperationMode - Enum in org.apache.shiro.crypto
-
A cipher mode of operation directs a cipher algorithm how to convert data during the encryption or decryption process.
- org.apache.shiro.crypto - package org.apache.shiro.crypto
-
Cryptography Cipher and Hashing components that greatly simplify the JDK's cryptography concepts and add additional convenient behavior.
P
- PaddingScheme - Enum in org.apache.shiro.crypto
-
A
CipherPaddingScheme
represents well-known padding schemes supported by JPA providers in a type-safe manner. - PCBC - org.apache.shiro.crypto.OperationMode
- PKCS1 - org.apache.shiro.crypto.PaddingScheme
- PKCS5 - org.apache.shiro.crypto.PaddingScheme
-
Padding scheme defined in RSA's Password-Based Cryptography Standard.
S
- 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. - setGenerateInitializationVectors(boolean) - Method in class org.apache.shiro.crypto.JcaCipherService
- setInitializationVectorSize(int) - Method in class org.apache.shiro.crypto.JcaCipherService
-
Sets the algorithm-specific initialization vector size in bits (not bytes!)
- 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
- setSecureRandom(SecureRandom) - Method in class org.apache.shiro.crypto.JcaCipherService
-
Sets a source of randomness for encryption operations.
- setStreamingBlockSize(int) - Method in class org.apache.shiro.crypto.DefaultBlockCipherService
- setStreamingBufferSize(int) - Method in class org.apache.shiro.crypto.JcaCipherService
-
Sets the size in bytes of the internal buffer used to transfer data from one stream to another during stream operations (
JcaCipherService.encrypt(java.io.InputStream, java.io.OutputStream, byte[])
andJcaCipherService.decrypt(java.io.InputStream, java.io.OutputStream, byte[])
). - 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
- SSL3 - org.apache.shiro.crypto.PaddingScheme
-
Padding scheme defined in the SSL 3.0 specification, section
5.2.3.2 (CBC block cipher)
.
V
- valueOf(String) - Static method in enum org.apache.shiro.crypto.OperationMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.apache.shiro.crypto.PaddingScheme
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.apache.shiro.crypto.OperationMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.apache.shiro.crypto.PaddingScheme
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages