• Field Summary

    Fields

    static final int

    Constant used to initialize cipher to decryption mode.

    static final int

    Constant used to initialize cipher to encryption mode.

    static final int

    Constant used to indicate the to-be-unwrapped key is a "private key".

    static final int

    Constant used to indicate the to-be-unwrapped key is a "public key".

    static final int

    Constant used to indicate the to-be-unwrapped key is a "secret key".

    static final int

    Constant used to initialize cipher to key-unwrapping mode.

    static final int

    Constant used to initialize cipher to key-wrapping mode.

  • Constructor Summary

    Constructors

  • Method Summary

    final byte[]

    doFinal()

    Finishes a multiple-part encryption or decryption operation, depending on how this Cipher object was initialized.

    final byte[]

    doFinal(byte[] input)

    Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

    final int

    doFinal(byte[] output, int outputOffset)

    Finishes a multiple-part encryption or decryption operation, depending on how this Cipher object was initialized.

    final byte[]

    doFinal(byte[] input, int inputOffset, int inputLen)

    Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

    final int

    doFinal(byte[] input, int inputOffset, int inputLen, byte[] output)

    Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

    final int

    doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)

    Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

    final int

    Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

    Returns the algorithm name of this Cipher object.

    final int

    Returns the block size (in bytes).

    Returns the exemption mechanism object used with this Cipher object.

    Returns a Cipher object that implements the specified transformation.

    Returns a Cipher object that implements the specified transformation.

    Returns a Cipher object that implements the specified transformation.

    final byte[]

    getIV()

    Returns the initialization vector (IV) in a new buffer.

    static final int

    Returns the maximum key length for the specified transformation according to the installed JCE jurisdiction policy files.

    Returns an {code AlgorithmParameterSpec} object which contains the maximum Cipher parameter value according to the jurisdiction policy file.

    final int

    getOutputSize(int inputLen)

    Returns the length in bytes that an output buffer would need to be in order to hold the result of the next update or doFinal operation, given the input length inputLen (in bytes).

    Returns the parameters used with this Cipher object.

    Returns the provider of this Cipher object.

    final void

    Initializes this Cipher object with the public key from the given certificate.

    final void

    Initializes this Cipher object with the public key from the given certificate and a source of randomness.

    final void

    init(int opmode, Key key)

    Initializes this Cipher object with a key.

    final void

    Initializes this Cipher object with a key and a set of algorithm parameters.

    final void

    Initializes this Cipher object with a key, a set of algorithm parameters, and a source of randomness.

    final void

    Initializes this Cipher object with a key and a source of randomness.

    final void

    Initializes this Cipher object with a key and a set of algorithm parameters.

    final void

    Initializes this Cipher object with a key, a set of algorithm parameters, and a source of randomness.

    toString()

    Returns a String representation of this Cipher object.

    unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)

    Unwrap a previously wrapped key.

    final byte[]

    update(byte[] input)

    Continues a multiple-part encryption or decryption operation (depending on how this Cipher object was initialized), processing another data part.

    final byte[]

    update(byte[] input, int inputOffset, int inputLen)

    Continues a multiple-part encryption or decryption operation (depending on how this Cipher object was initialized), processing another data part.

    final int

    update(byte[] input, int inputOffset, int inputLen, byte[] output)

    Continues a multiple-part encryption or decryption operation (depending on how this Cipher object was initialized), processing another data part.

    final int

    update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)

    Continues a multiple-part encryption or decryption operation (depending on how this Cipher object was initialized), processing another data part.

    final int

    Continues a multiple-part encryption or decryption operation (depending on how this Cipher object was initialized), processing another data part.

    final void

    updateAAD(byte[] src)

    Continues a multi-part update of the Additional Authentication Data (AAD).

    final void

    updateAAD(byte[] src, int offset, int len)

    Continues a multi-part update of the Additional Authentication Data (AAD), using a subset of the provided buffer.

    final void

    Continues a multi-part update of the Additional Authentication Data (AAD).

    final byte[]

  • Field Details

    • ENCRYPT_MODE

    • DECRYPT_MODE

    • WRAP_MODE

    • UNWRAP_MODE

    • PUBLIC_KEY

    • PRIVATE_KEY

    • SECRET_KEY

  • Constructor Details

    • Cipher

  • Method Details

    • getInstance

    • getInstance

    • getInstance

    • getProvider

    • getAlgorithm

    • getBlockSize

    • getOutputSize

    • getIV

    • getParameters

    • getExemptionMechanism

    • init

    • init

    • init

    • init

    • init

    • init

    • init

    • init

    • update

    • update

    • update

    • update

    • update

    • doFinal

    • doFinal

    • doFinal

    • doFinal

    • doFinal

    • doFinal

    • doFinal

    • wrap

    • unwrap

    • getMaxAllowedKeyLength

    • getMaxAllowedParameterSpec

    • updateAAD

    • updateAAD

    • updateAAD

    • toString