| Package | Description |
|---|---|
| org.apache.shiro.crypto |
Cryptography Cipher and Hashing components that greatly simplify the JDK's cryptography concepts and
add additional convenient behavior.
|
| Modifier and Type | Class and Description |
|---|---|
class |
UnknownAlgorithmException
Exception thrown when attempting to lookup or use a cryptographic algorithm that does not exist in the current
JVM environment.
|
| Modifier and Type | Method and Description |
|---|---|
ByteSource |
JcaCipherService.decrypt(byte[] ciphertext,
byte[] key) |
ByteSource |
CipherService.decrypt(byte[] encrypted,
byte[] decryptionKey)
Decrypts encrypted data via the specified cipher key and returns the original (pre-encrypted) data.
|
void |
JcaCipherService.decrypt(InputStream in,
OutputStream out,
byte[] key) |
void |
CipherService.decrypt(InputStream in,
OutputStream out,
byte[] decryptionKey)
Receives encrypted data from the given
InputStream, decrypts it, and sends the resulting decrypted data
to the given OutputStream. |
ByteSource |
CipherService.encrypt(byte[] raw,
byte[] encryptionKey)
Encrypts data via the specified cipher key.
|
void |
JcaCipherService.encrypt(InputStream in,
OutputStream out,
byte[] key) |
void |
CipherService.encrypt(InputStream in,
OutputStream out,
byte[] encryptionKey)
Receives the data from the given
InputStream, encrypts it, and sends the resulting encrypted data to the
given OutputStream. |
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.