- CBC_NO_PADDING - Static variable in class org.apache.commons.crypto.utils.AES
-
Defines "AES/CBC/NoPadding".
- CBC_PKCS5_PADDING - Static variable in class org.apache.commons.crypto.utils.AES
-
Defines "AES/CBC/PKCS5Padding".
- ChannelInput - Class in org.apache.commons.crypto.stream.input
-
- ChannelInput(ReadableByteChannel) - Constructor for class org.apache.commons.crypto.stream.input.ChannelInput
-
- ChannelOutput - Class in org.apache.commons.crypto.stream.output
-
- ChannelOutput(WritableByteChannel) - Constructor for class org.apache.commons.crypto.stream.output.ChannelOutput
-
- checkArgument(boolean) - Static method in class org.apache.commons.crypto.utils.Utils
-
Ensures the truth of an expression involving one or more parameters to
the calling method.
- checkArgument(boolean, Object) - Static method in class org.apache.commons.crypto.utils.Utils
-
Checks the truth of an expression.
- checkNotNull(T) - Static method in class org.apache.commons.crypto.utils.Utils
-
- checkState(boolean) - Static method in class org.apache.commons.crypto.utils.Utils
-
Ensures the truth of an expression involving the state of the calling
instance, but not involving any parameters to the calling method.
- checkState(boolean, String) - Static method in class org.apache.commons.crypto.utils.Utils
-
Ensures the truth of an expression involving the state of the calling
instance, but not involving any parameters to the calling method.
- checkStream() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Checks whether the stream is closed.
- checkStream() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Checks whether the stream is closed.
- CLASSES_KEY - Static variable in class org.apache.commons.crypto.cipher.CryptoCipherFactory
-
The configuration key of the CryptoCipher implementation class.
- CLASSES_KEY - Static variable in class org.apache.commons.crypto.random.CryptoRandomFactory
-
The configuration key of the CryptoRandom implementation class.
- cleanup(Closeable...) - Static method in class org.apache.commons.crypto.utils.IoUtils
-
Closes the Closeable objects and
ignore any
IOException
or
null pointers.
- close() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
- close() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
- close() - Method in class org.apache.commons.crypto.stream.input.ChannelInput
-
- close() - Method in interface org.apache.commons.crypto.stream.input.Input
-
Closes this input and releases any system resources associated with the
under layer input.
- close() - Method in class org.apache.commons.crypto.stream.input.StreamInput
-
- close() - Method in class org.apache.commons.crypto.stream.output.ChannelOutput
-
- close() - Method in interface org.apache.commons.crypto.stream.output.Output
-
Closes this output and releases any system resources associated with the
under layer output.
- close() - Method in class org.apache.commons.crypto.stream.output.StreamOutput
-
- close() - Method in class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
- closeQuietly(Closeable) - Static method in class org.apache.commons.crypto.utils.IoUtils
-
Closes the given
Closeable
quietly by ignoring IOException.
- CONF_PREFIX - Static variable in class org.apache.commons.crypto.Crypto
-
The prefix of all crypto configuration keys.
- Crypto - Class in org.apache.commons.crypto
-
Provides diagnostic information about Commons Crypto and keys for native
class loading.
- Crypto() - Constructor for class org.apache.commons.crypto.Crypto
-
- CryptoCipher - Interface in org.apache.commons.crypto.cipher
-
The interface of cryptographic cipher for encryption and decryption.
- CryptoCipherFactory - Class in org.apache.commons.crypto.cipher
-
- CryptoCipherFactory.CipherProvider - Enum in org.apache.commons.crypto.cipher
-
Defines the internal CryptoCipher implementations.
- CryptoInputStream - Class in org.apache.commons.crypto.stream
-
CryptoInputStream reads input data and decrypts data in stream manner.
- CryptoInputStream(Input, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
- CryptoInputStream(InputStream, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
- CryptoInputStream(ReadableByteChannel, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
- CryptoInputStream(String, Properties, InputStream, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
- CryptoInputStream(String, Properties, ReadableByteChannel, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
- CryptoOutputStream - Class in org.apache.commons.crypto.stream
-
- CryptoOutputStream(Output, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
- CryptoOutputStream(OutputStream, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
- CryptoOutputStream(String, Properties, OutputStream, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
- CryptoOutputStream(String, Properties, WritableByteChannel, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
- CryptoOutputStream(WritableByteChannel, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
- CryptoRandom - Interface in org.apache.commons.crypto.random
-
Generates random bytes.
- CryptoRandomFactory - Class in org.apache.commons.crypto.random
-
- CryptoRandomFactory.RandomProvider - Enum in org.apache.commons.crypto.random
-
Defines the internal CryptoRandom implementations.
- CTR_NO_PADDING - Static variable in class org.apache.commons.crypto.utils.AES
-
Defines "AES/CTR/NoPadding".
- CtrCryptoInputStream - Class in org.apache.commons.crypto.stream
-
CtrCryptoInputStream decrypts data.
- CtrCryptoInputStream(Input, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(Input, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(InputStream, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(InputStream, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(Properties, InputStream, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(Properties, InputStream, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(Properties, ReadableByteChannel, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(Properties, ReadableByteChannel, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(ReadableByteChannel, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoInputStream(ReadableByteChannel, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
- CtrCryptoOutputStream - Class in org.apache.commons.crypto.stream
-
CtrCryptoOutputStream encrypts data.
- CtrCryptoOutputStream(Output, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(Output, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(OutputStream, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(OutputStream, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(Properties, OutputStream, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(Properties, OutputStream, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(Properties, WritableByteChannel, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(Properties, WritableByteChannel, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(WritableByteChannel, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- CtrCryptoOutputStream(WritableByteChannel, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
- decrypt() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Does the decryption using inBuffer as input and outBuffer as output.
- decrypt() - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Does the decryption using inBuffer as input and outBuffer as output.
- decrypt(ByteBuffer, int, int) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Decrypts all data in buf: total n bytes from given start position.
- decrypt(long, byte[], int, int) - Method in class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
Decrypts length bytes in buffer starting at offset.
- decryptBuffer(ByteBuffer) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Does the decryption using out as output.
- decryptFinal() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Does final of the cipher to end the decrypting stream.
- decryptInPlace(ByteBuffer) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Does the decryption using inBuffer as input and buf as output.
- decryptMore() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Decrypts more data by reading the under layer stream.
- decryptMore() - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Decrypts more data by reading the under layer stream.
- DEVICE_FILE_PATH_DEFAULT - Static variable in class org.apache.commons.crypto.random.CryptoRandomFactory
-
The default value ("/dev/urandom") of the file path for secure random device.
- DEVICE_FILE_PATH_KEY - Static variable in class org.apache.commons.crypto.random.CryptoRandomFactory
-
The configuration key of the file path for secure random device.
- doFinal(byte[], int, int, byte[], int) - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Encrypts or decrypts data in a single-part operation, or finishes a
multiple-part operation.
- doFinal(ByteBuffer, ByteBuffer) - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Encrypts or decrypts data in a single-part operation, or finishes a
multiple-part operation.
- get(String) - Static method in enum org.apache.commons.crypto.utils.Padding
-
Gets a Padding.
- getAlgorithm() - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Returns the algorithm name of this CryptoCipher
object.
- getAlgorithm() - Method in class org.apache.commons.crypto.utils.Transformation
-
Gets the algorithm.
- getBlockSize() - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Returns the block size (in bytes).
- getBufferSize() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Gets the buffer size.
- getBufferSize() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Gets the buffer size.
- getCipher() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Gets the internal CryptoCipher.
- getCipher() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Gets the internal Cipher.
- getCipherClass() - Static method in class org.apache.commons.crypto.jna.OpenSslJna
-
- getCipherInstance(String, Properties) - Static method in class org.apache.commons.crypto.utils.Utils
-
Helper method to create a CryptoCipher instance and throws only
IOException.
- getClassByName(String) - Static method in class org.apache.commons.crypto.utils.ReflectionUtils
-
Loads a class by name.
- getClassName() - Method in enum org.apache.commons.crypto.cipher.CryptoCipherFactory.CipherProvider
-
Gets the class name of the provider.
- getClassName() - Method in enum org.apache.commons.crypto.random.CryptoRandomFactory.RandomProvider
-
Gets the class name of the provider.
- getComponentName() - Static method in class org.apache.commons.crypto.Crypto
-
Gets the component version of Apache Commons Crypto.
- getComponentVersion() - Static method in class org.apache.commons.crypto.Crypto
-
Gets the component version of Apache Commons Crypto.
- getCounter(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Gets the counter for input stream position.
- getCryptoCipher(String) - Static method in class org.apache.commons.crypto.cipher.CryptoCipherFactory
-
Gets a cipher for algorithm/mode/padding in config value
commons.crypto.cipher.transformation
- getCryptoCipher(String, Properties) - Static method in class org.apache.commons.crypto.cipher.CryptoCipherFactory
-
Gets a cipher instance for specified algorithm/mode/padding.
- getCryptoRandom() - Static method in class org.apache.commons.crypto.random.CryptoRandomFactory
-
- getCryptoRandom(Properties) - Static method in class org.apache.commons.crypto.random.CryptoRandomFactory
-
Gets a CryptoRandom instance for specified props.
- getDefaultProperties() - Static method in class org.apache.commons.crypto.utils.Utils
-
- getImplClass() - Method in enum org.apache.commons.crypto.cipher.CryptoCipherFactory.CipherProvider
-
Gets the implementation class of the provider.
- getImplClass() - Method in enum org.apache.commons.crypto.random.CryptoRandomFactory.RandomProvider
-
Gets the implementation class of the provider.
- getInBuffer() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Gets the inBuffer.
- getInitIV() - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Gets the initialization vector.
- getInput() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Gets the input.
- getKey() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Gets the key.
- getLoadingError() - Static method in class org.apache.commons.crypto.Crypto
-
The loading error throwable, if loading failed.
- getMode() - Method in class org.apache.commons.crypto.utils.Transformation
-
Gets the mode.
- getOut() - Method in class org.apache.commons.crypto.stream.output.StreamOutput
-
Gets the output stream.
- getOutBuffer() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Gets the outBuffer.
- getPadding(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Gets the padding for input stream position.
- getPadding() - Method in class org.apache.commons.crypto.utils.Transformation
-
Gets the padding.
- getParams() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Gets the specification of cryptographic parameters.
- getProperties(Properties) - Static method in class org.apache.commons.crypto.utils.Utils
-
Gets the properties merged with default properties.
- getRandomClass() - Static method in class org.apache.commons.crypto.jna.OpenSslJna
-
- getStreamOffset() - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Gets the offset of the stream.
- getStreamOffset() - Method in class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Get the underlying stream offset
- getStreamPosition() - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Gets the position of the stream.