public interface Cipher
Modifier and Type | Method and Description |
---|---|
byte[] |
doFinal()
Finishes a multiple-part encryption or decryption operation.
|
byte[] |
doFinal(byte[] input)
Encrypts or decrypts data in a one shot operation, or finishes a multiple-part operation.
|
byte[] |
doFinal(byte[] input,
int inputOffset,
int inputLen)
Encrypts or decrypts data in a one shot operation, or finishes a multiple-part operation.
|
String |
getAlgorithmName() |
int |
getInputBlockSize() |
FilterInputStream |
getInputStream(InputStream is)
Return a filtered input stream based on this cipher.
|
int |
getOutputBlockSize() |
FilterOutputStream |
getOutputStream(OutputStream os)
Return a filtered output stream based on this cipher.
|
boolean |
isForEncryption() |
byte[] |
update(byte[] input)
Continues a multiple-part encryption or decryption operation, processing another data chunk.
|
byte[] |
update(byte[] input,
int inputOffset,
int inputLen)
Continues a multiple-part encryption or decryption operation processing another data chunk.
|
String getAlgorithmName()
int getInputBlockSize()
int getOutputBlockSize()
boolean isForEncryption()
FilterInputStream getInputStream(InputStream is)
is
- an input stream to filter.FilterOutputStream getOutputStream(OutputStream os)
os
- an output stream to filter.byte[] update(byte[] input)
input
- the input buffer.byte[] update(byte[] input, int inputOffset, int inputLen)
input
- the input buffer.inputOffset
- the offset in input where the input starts.inputLen
- the input length.byte[] doFinal() throws GeneralSecurityException
GeneralSecurityException
- if this encryption algorithm is unable to proceed properly.byte[] doFinal(byte[] input) throws GeneralSecurityException
input
- the input buffer.GeneralSecurityException
- if this encryption algorithm is unable to proceed properly.byte[] doFinal(byte[] input, int inputOffset, int inputLen) throws GeneralSecurityException
input
- the input buffer.inputOffset
- the offset in input where the input starts.inputLen
- the input length.GeneralSecurityException
- if this encryption algorithm is unable to proceed properly.Copyright © 2004–2020 XWiki. All rights reserved.