public class OxalisCipher extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SYMMETRIC_KEY_ALGORITHM |
static String |
WRAPPED_SYMMETRIC_KEY_HEADER_NAME
Name of our encrypted (wrapped) symmetric key.
|
| Constructor and Description |
|---|
OxalisCipher() |
OxalisCipher(SecretKey secretKey) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
decryptStream(InputStream inputStream)
Wraps the supplied InputStream in a decrypted cipher stream, i.e.
|
OutputStream |
encryptStream(OutputStream outputStream)
Wraps the supplied OutputStream in a encrypted cipher stream, i.e.
|
SecretKey |
getSecretKey() |
public static final String SYMMETRIC_KEY_ALGORITHM
public static final String WRAPPED_SYMMETRIC_KEY_HEADER_NAME
public OxalisCipher()
public OxalisCipher(SecretKey secretKey)
public OutputStream encryptStream(OutputStream outputStream)
outputStream - the plaint text output stream to encrypteddecryptStream(java.io.InputStream)public InputStream decryptStream(InputStream inputStream)
inputStream - the encrypted input streampublic SecretKey getSecretKey()
Copyright © 2022 NorStella. All rights reserved.