Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AES - Class in org.apache.commons.crypto.utils
-
Creates AES objects
- AES() - Constructor for class org.apache.commons.crypto.utils.AES
- AES_BLOCK_SIZE - Static variable in class org.apache.commons.crypto.cipher.CryptoCipherFactory
-
For AES, the algorithm block is fixed size of 128 bits.
- ALGORITHM - Static variable in class org.apache.commons.crypto.utils.AES
-
The AES algorithm name.
- available() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Overrides the
InputStream.available(). - available() - Method in class org.apache.commons.crypto.stream.input.ChannelInput
-
Overrides the
Input.available(). - available() - Method in interface org.apache.commons.crypto.stream.input.Input
-
Returns an estimate of the number of bytes that can be read (or skipped over) from this input without blocking by the next invocation of a method for this input stream.
- available() - Method in class org.apache.commons.crypto.stream.input.StreamInput
-
Overrides the
Input.available().
C
- 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
-
The ChannelInput class takes a
ReadableByteChannelobject and wraps it asInputobject acceptable byCryptoInputStream. - ChannelInput(ReadableByteChannel) - Constructor for class org.apache.commons.crypto.stream.input.ChannelInput
-
Constructs the
ChannelInput. - ChannelOutput - Class in org.apache.commons.crypto.stream.output
-
The ChannelOutput class takes a
WritableByteChannelobject and wraps it asOutputobject acceptable byCryptoOutputStreamas the output target. - ChannelOutput(WritableByteChannel) - Constructor for class org.apache.commons.crypto.stream.output.ChannelOutput
-
Constructs a
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
-
Deprecated.
- 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
IOExceptionor null pointers. - close() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Overrides the
InputStream.close(). - close() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Overrides the
OutputStream.close(). - close() - Method in class org.apache.commons.crypto.stream.input.ChannelInput
-
Overrides the
Input.seek(long). - 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
-
Overrides the
Input.seek(long). - close() - Method in class org.apache.commons.crypto.stream.output.ChannelOutput
-
Overrides the
Output.close(). - 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
-
Overrides the
Output.close(). - close() - Method in class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
Overrides the
CryptoInputStream.close(). - closeQuietly(Closeable) - Static method in class org.apache.commons.crypto.utils.IoUtils
-
Closes the given
Closeablequietly 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
-
Creates
CryptoCipherinstances. - 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(InputStream, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
Constructs a
CryptoInputStream. - CryptoInputStream(String, Properties, InputStream, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
Constructs a
CryptoInputStream. - CryptoInputStream(String, Properties, ReadableByteChannel, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
Constructs a
CryptoInputStream. - CryptoInputStream(ReadableByteChannel, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
Constructs a
CryptoInputStream. - CryptoInputStream(Input, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoInputStream
-
Constructs a
CryptoInputStream. - CryptoOutputStream - Class in org.apache.commons.crypto.stream
-
CryptoOutputStreamencrypts data and writes to the under layer output. - CryptoOutputStream(OutputStream, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
Constructs a
CryptoOutputStream. - CryptoOutputStream(String, Properties, OutputStream, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
Constructs a
CryptoOutputStream. - CryptoOutputStream(String, Properties, WritableByteChannel, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
Constructs a
CryptoOutputStream. - CryptoOutputStream(WritableByteChannel, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
Constructs a
CryptoOutputStream. - CryptoOutputStream(Output, CryptoCipher, int, Key, AlgorithmParameterSpec) - Constructor for class org.apache.commons.crypto.stream.CryptoOutputStream
-
Constructs a
CryptoOutputStream. - CryptoRandom - Interface in org.apache.commons.crypto.random
-
Generates random bytes.
- CryptoRandomFactory - Class in org.apache.commons.crypto.random
-
Creates
CryptoRandominstances - 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(InputStream, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(InputStream, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(ReadableByteChannel, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(ReadableByteChannel, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(Properties, InputStream, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(Properties, InputStream, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(Properties, ReadableByteChannel, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(Properties, ReadableByteChannel, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(Input, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoInputStream(Input, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Constructs a
CtrCryptoInputStream. - CtrCryptoOutputStream - Class in org.apache.commons.crypto.stream
-
CtrCryptoOutputStream encrypts data.
- CtrCryptoOutputStream(OutputStream, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(OutputStream, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(WritableByteChannel, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(WritableByteChannel, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(Properties, OutputStream, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(Properties, OutputStream, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(Properties, WritableByteChannel, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(Properties, WritableByteChannel, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(Output, CryptoCipher, int, byte[], byte[]) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream. - CtrCryptoOutputStream(Output, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Constructs a
CtrCryptoOutputStream.
D
- 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(long, byte[], int, int) - Method in class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
Decrypts length bytes in buffer starting at offset.
- 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.
- 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.
E
- encrypt() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Does the encryption, input is
CryptoOutputStream.inBufferand output isCryptoOutputStream.outBuffer. - encrypt() - Method in class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Does the encryption, input is
CryptoOutputStream.inBufferand output isCryptoOutputStream.outBuffer. - encryptFinal() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Does final encryption of the last data.
- encryptFinal() - Method in class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Does final encryption of the last data.
- EOS - Static variable in class org.apache.commons.crypto.stream.CryptoInputStream
-
The index value when the end of the stream has been reached
-1.
F
- flush() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Overrides the
OutputStream.flush(). - flush() - Method in class org.apache.commons.crypto.stream.output.ChannelOutput
-
Overrides the
Output.flush(). - flush() - Method in interface org.apache.commons.crypto.stream.output.Output
-
Flushes this output and forces any buffered output bytes to be written out if the under layer output method support.
- flush() - Method in class org.apache.commons.crypto.stream.output.StreamOutput
-
Overrides the
Output.flush(). - freeBuffers() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Forcibly free the direct buffers.
- freeBuffers() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Forcibly free the direct buffers.
G
- 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
CryptoCipherobject. - 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
-
Gets a CryptoRandom instance using the default implementation as defined by
CryptoRandomFactory.CLASSES_DEFAULT - 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
-
Gets a properties instance that defaults to the System Properties plus any other properties found in the file
Utils.SYSTEM_PROPERTIES_FILE - 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() - Method in class org.apache.commons.crypto.utils.Transformation
-
Gets the padding.
- getPadding(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Gets the padding for input stream position.
- 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.
I
- init(int, Key, AlgorithmParameterSpec) - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Initializes the cipher with mode, key and iv.
- initCipher() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Initializes the cipher.
- initCipher() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Initializes the cipher.
- initCipher() - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Overrides the
CtrCryptoInputStream.initCipher(). - initCipher() - Method in class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Overrides the
CryptoOutputStream.initCipher(). - initialisationError() - Static method in class org.apache.commons.crypto.jna.OpenSslJna
- Input - Interface in org.apache.commons.crypto.stream.input
-
The Input interface abstract the input source of
CryptoInputStreamso that different implementation of input can be used. - IoUtils - Class in org.apache.commons.crypto.utils
-
General utility methods for working with IO.
- isEnabled() - Static method in class org.apache.commons.crypto.jna.OpenSslJna
- isNativeCodeLoaded() - Static method in class org.apache.commons.crypto.Crypto
-
Checks whether the native code has been successfully loaded for the platform.
- isOpen() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Overrides the
Channel.isOpen(). - isOpen() - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Overrides the
Channel.isOpen().
J
- JAVA - Enum constant in enum org.apache.commons.crypto.random.CryptoRandomFactory.RandomProvider
-
The SecureRandom implementation from the JVM
- JAVA_ALGORITHM_DEFAULT - Static variable in class org.apache.commons.crypto.random.CryptoRandomFactory
-
The default value ("SHA1PRNG") of the algorithm of secure random.
- JAVA_ALGORITHM_KEY - Static variable in class org.apache.commons.crypto.random.CryptoRandomFactory
-
The configuration key of the algorithm of secure random.
- JCE - Enum constant in enum org.apache.commons.crypto.cipher.CryptoCipherFactory.CipherProvider
-
The JCE cipher implementation from the JVM
- JCE_PROVIDER_KEY - Static variable in class org.apache.commons.crypto.cipher.CryptoCipherFactory
-
The configuration key of the provider class for JCE cipher.
L
- LIB_NAME_KEY - Static variable in class org.apache.commons.crypto.Crypto
-
The configuration key of the file name for loading crypto library.
- LIB_PATH_KEY - Static variable in class org.apache.commons.crypto.Crypto
-
The configuration key of the path for loading crypto library.
- LIB_TEMPDIR_KEY - Static variable in class org.apache.commons.crypto.Crypto
-
The configuration key of temp directory for extracting crypto library.
M
- main(String[]) - Static method in class org.apache.commons.crypto.Crypto
-
The Main of Crypto.
- main(String[]) - Static method in class org.apache.commons.crypto.jna.OpenSslJna
- markSupported() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Overrides the
InputStream.markSupported().
N
- newInstance(Class, Object...) - Static method in class org.apache.commons.crypto.utils.ReflectionUtils
-
Uses the constructor represented by this
Constructorobject to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters. - newSecretKeySpec(byte[]) - Static method in class org.apache.commons.crypto.utils.AES
-
Creates a new SecretKeySpec for the given key and
AES.ALGORITHM. - nextBytes(byte[]) - Method in interface org.apache.commons.crypto.random.CryptoRandom
-
Generates random bytes and places them into a user-supplied byte array.
- NoPadding - Enum constant in enum org.apache.commons.crypto.utils.Padding
-
Don't change the order of this enum value.
O
- OPENSSL - Enum constant in enum org.apache.commons.crypto.cipher.CryptoCipherFactory.CipherProvider
-
The OpenSSL cipher implementation (using JNI)
- OPENSSL - Enum constant in enum org.apache.commons.crypto.random.CryptoRandomFactory.RandomProvider
-
The OpenSSL Random implementation (using JNI)
- OpenSslJna - Class in org.apache.commons.crypto.jna
-
Provides access to package protected class objects and a
OpenSslJna.main(String[])method that prints version information. - OpenSslJna() - Constructor for class org.apache.commons.crypto.jna.OpenSslJna
- org.apache.commons.crypto - package org.apache.commons.crypto
-
Crypto classes
- org.apache.commons.crypto.cipher - package org.apache.commons.crypto.cipher
-
CryptoCipher classes
- org.apache.commons.crypto.jna - package org.apache.commons.crypto.jna
-
JNA classes
- org.apache.commons.crypto.random - package org.apache.commons.crypto.random
-
Random classes
- org.apache.commons.crypto.stream - package org.apache.commons.crypto.stream
-
Stream classes
- org.apache.commons.crypto.stream.input - package org.apache.commons.crypto.stream.input
-
Input classes
- org.apache.commons.crypto.stream.output - package org.apache.commons.crypto.stream.output
-
Output classes
- org.apache.commons.crypto.utils - package org.apache.commons.crypto.utils
-
Utils classes
- OS - Enum constant in enum org.apache.commons.crypto.random.CryptoRandomFactory.RandomProvider
-
The OS random device implementation.
- Output - Interface in org.apache.commons.crypto.stream.output
-
The Output interface abstract the output target of
CryptoOutputStreamso that different implementation of output can be used.
P
- Padding - Enum in org.apache.commons.crypto.utils
-
Padding types.
- parse(String) - Static method in class org.apache.commons.crypto.utils.Transformation
-
Parses a transformation.
- PKCS5Padding - Enum constant in enum org.apache.commons.crypto.utils.Padding
-
Don't change the order of this enum value.
- PositionedCryptoInputStream - Class in org.apache.commons.crypto.stream
-
PositionedCryptoInputStream provides the capability to decrypt the stream starting at random position as well as provides the foundation for positioned read for decrypting.
- PositionedCryptoInputStream(Properties, Input, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
Constructs a
PositionedCryptoInputStream. - PositionedCryptoInputStream(Properties, Input, CryptoCipher, int, byte[], byte[], long) - Constructor for class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
Constructs a
PositionedCryptoInputStream. - postDecryption(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
This method is executed immediately after decryption.
R
- read() - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Overrides the
InputStream.read(). - read(byte[], int, int) - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Overrides the
InputStream.read(byte[], int, int). - read(long, byte[], int, int) - Method in class org.apache.commons.crypto.stream.input.ChannelInput
-
Overrides the
Input.read(long, byte[], int, int). - read(long, byte[], int, int) - Method in interface org.apache.commons.crypto.stream.input.Input
-
Reads up to the specified number of bytes from a given position within a stream and return the number of bytes read.
- read(long, byte[], int, int) - Method in class org.apache.commons.crypto.stream.input.StreamInput
-
Overrides the
Input.read(long, byte[], int, int). - read(long, byte[], int, int) - Method in class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
Reads up to the specified number of bytes from a given position within a stream and return the number of bytes read.
- read(ByteBuffer) - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Overrides the
ReadableByteChannel.read(ByteBuffer). - read(ByteBuffer) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Overrides the
CtrCryptoInputStream.read(ByteBuffer). - read(ByteBuffer) - Method in class org.apache.commons.crypto.stream.input.ChannelInput
-
Overrides the
Input.read(ByteBuffer). - read(ByteBuffer) - Method in interface org.apache.commons.crypto.stream.input.Input
-
Reads a sequence of bytes from input into the given buffer.
- read(ByteBuffer) - Method in class org.apache.commons.crypto.stream.input.StreamInput
-
Overrides the
Input.read(ByteBuffer). - readFully(long, byte[]) - Method in class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
Reads the specified number of bytes from a given position within a stream.
- readFully(long, byte[], int, int) - Method in class org.apache.commons.crypto.stream.PositionedCryptoInputStream
-
Reads the specified number of bytes from a given position within a stream.
- readFully(InputStream, byte[], int, int) - Static method in class org.apache.commons.crypto.utils.IoUtils
-
Does the readFully based on the Input read.
- readFully(Input, long, byte[], int, int) - Static method in class org.apache.commons.crypto.utils.IoUtils
-
Does the readFully based on Input's positioned read.
- ReflectionUtils - Class in org.apache.commons.crypto.utils
-
General utility methods for working with reflection.
- resetCipher(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Calculates the counter and iv, resets the cipher.
- resetStreamOffset(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Resets the underlying stream offset; clear
CryptoInputStream.inBufferandCryptoInputStream.outBuffer.
S
- seek(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Seeks the stream to a specific position relative to start of the under layer stream.
- seek(long) - Method in class org.apache.commons.crypto.stream.input.ChannelInput
-
Overrides the
Input.seek(long). - seek(long) - Method in interface org.apache.commons.crypto.stream.input.Input
-
Seeks to the given offset from the start of the stream.
- seek(long) - Method in class org.apache.commons.crypto.stream.input.StreamInput
-
Overrides the
Input.seek(long). - setStreamOffset(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Sets the offset of stream.
- setStreamOffset(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoOutputStream
-
Set the underlying stream offset
- skip(long) - Method in class org.apache.commons.crypto.stream.CryptoInputStream
-
Overrides the
InputStream.skip(long). - skip(long) - Method in class org.apache.commons.crypto.stream.CtrCryptoInputStream
-
Overrides the
CryptoInputStream.skip(long). - skip(long) - Method in class org.apache.commons.crypto.stream.input.ChannelInput
-
Overrides the
Input.skip(long). - skip(long) - Method in interface org.apache.commons.crypto.stream.input.Input
-
Skips over and discards
nbytes of data from this input Theskipmethod may, for a variety of reasons, end up skipping over some smaller number of bytes, possibly0. - skip(long) - Method in class org.apache.commons.crypto.stream.input.StreamInput
-
Overrides the
Input.skip(long). - splitClassNames(String, String) - Static method in class org.apache.commons.crypto.utils.Utils
-
Splits class names sequence into substrings, Trim each substring into an entry,and returns an list of the entries.
- STREAM_BUFFER_SIZE_KEY - Static variable in class org.apache.commons.crypto.stream.CryptoInputStream
-
The configuration key of the buffer size for stream.
- StreamInput - Class in org.apache.commons.crypto.stream.input
-
The StreamInput class takes a
InputStreamobject and wraps it asInputobject acceptable byCryptoInputStream. - StreamInput(InputStream, int) - Constructor for class org.apache.commons.crypto.stream.input.StreamInput
-
Constructs a
StreamInput. - StreamOutput - Class in org.apache.commons.crypto.stream.output
-
The StreamOutput class takes a
OutputStreamobject and wraps it asOutputobject acceptable byCryptoOutputStreamas the output target. - StreamOutput(OutputStream, int) - Constructor for class org.apache.commons.crypto.stream.output.StreamOutput
-
Constructs a new instance.
T
- Transformation - Class in org.apache.commons.crypto.utils
-
Transformation algorithm, mode and padding, in the format "Algorithm/Mode/Padding", for example "AES/CBC/NoPadding".
U
- update(byte[], int, int, byte[], int) - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Continues a multiple-part encryption/decryption operation.
- update(ByteBuffer, ByteBuffer) - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Continues a multiple-part encryption/decryption operation.
- updateAAD(byte[]) - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Continues a multi-part update of the Additional Authentication Data (AAD).
- updateAAD(ByteBuffer) - Method in interface org.apache.commons.crypto.cipher.CryptoCipher
-
Continues a multi-part update of the Additional Authentication Data (AAD).
- Utils - Class in org.apache.commons.crypto.utils
-
General utility methods.
V
- valueOf(String) - Static method in enum org.apache.commons.crypto.cipher.CryptoCipherFactory.CipherProvider
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.apache.commons.crypto.random.CryptoRandomFactory.RandomProvider
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.apache.commons.crypto.utils.Padding
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.apache.commons.crypto.cipher.CryptoCipherFactory.CipherProvider
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.apache.commons.crypto.random.CryptoRandomFactory.RandomProvider
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.apache.commons.crypto.utils.Padding
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- write(byte[], int, int) - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Overrides the
OutputStream.write(byte[], int, int). - write(int) - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Overrides the
OutputStream.write(byte[]). - write(ByteBuffer) - Method in class org.apache.commons.crypto.stream.CryptoOutputStream
-
Overrides the
WritableByteChannel.write(ByteBuffer). - write(ByteBuffer) - Method in class org.apache.commons.crypto.stream.output.ChannelOutput
-
Overrides the
Output.write(ByteBuffer). - write(ByteBuffer) - Method in interface org.apache.commons.crypto.stream.output.Output
-
Writes a sequence of bytes to this output from the given buffer.
- write(ByteBuffer) - Method in class org.apache.commons.crypto.stream.output.StreamOutput
-
Overrides the
Output.write(ByteBuffer).
All Classes and Interfaces|All Packages|Constant Field Values
Objects.requireNonNull(Object).