| Modifier and Type | Field and Description |
|---|---|
static Map<String,List<Integer>> |
SUPPORTED_TRANSFORMATIONS
A map of supported transformations and the list of keysizes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Ciphers()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
doFinal(Cipher cipher,
InputStream input,
OutputStream output,
byte[] inbuf)
Encrypts or decrypts all bytes from
input and writes output to
output. |
static void |
doFinal(Cipher cipher,
ReadableByteChannel input,
WritableByteChannel output,
ByteBuffer inbuf)
Encrypts or decrypts all bytes from
input and writes result to
output. |
public static void doFinal(Cipher cipher, InputStream input, OutputStream output, byte[] inbuf) throws IOException, IllegalBlockSizeException, BadPaddingException
input and writes output to
output.cipher - the cipherinput - inputoutput - outputinbuf - the bufferIOException - if an I/O error occurs.IllegalBlockSizeExceptionBadPaddingExceptionpublic static void doFinal(Cipher cipher, ReadableByteChannel input, WritableByteChannel output, ByteBuffer inbuf) throws IOException, IllegalBlockSizeException, BadPaddingException
input and writes result to
output.cipher - the cipherinput - inputoutput - outputinbuf - input bufferIOException - if an I/O error occurs.IllegalBlockSizeExceptionBadPaddingExceptionCopyright © 2011-2013. All Rights Reserved.