Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle Security Developer Tools Crypto Java API Reference 10g Release 3 (10.1.3) B25378-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.security.crypto.core
Class CBCAlgorithmIdentifier

`java.lang.Object
oracle.security.crypto.core.AlgorithmIdentifier
oracle.security.crypto.core.CBCAlgorithmIdentifier`

All Implemented Interfaces:
  ASN1Object, java.lang.Cloneable, Streamable

public class CBCAlgorithmIdentifier
extends AlgorithmIdentifier

An algorithm identifier for Cipher Block Chaining (CBC) mode symmetric block ciphers, which use an initialization vector as a parameter.

Since:
  2.1
See Also:
  `AES`, `DES`, `DES_EDE`, `Blowfish`

Constructor Summary
`CBCAlgorithmIdentifier(AlgorithmIdentifier algID, byte[] iv)` Create a new `CBCAlgorithmIdentifier` using the OID from the given algorithm identifier and initialization vector.
`CBCAlgorithmIdentifier(ASN1ObjectID oid, ASN1Object params)` Create a new `CBCAlgorithmIdentifier` using the given OID, and obtaining the initialization vector by decoding the given `ASN1Object`.
`CBCAlgorithmIdentifier(ASN1ObjectID oid, byte[] iv)` Create a new `CBCAlgorithmIdentifier` using the given OID and initialization vector.
`CBCAlgorithmIdentifier(java.io.InputStream is)` Makes a new instance by reading its encoding from the given InputStream.

Method Summary
`java.lang.Object` | `clone()` Creates a deep clone of this `CBCAlgorithmIdentifier` object.
`byte[]` | `getIV()` Returns the bytes of the initialization vector.
`void` | `input(java.io.InputStream is)` Reads in a `CBCAlgorithmIdentifier` object from the given input stream.

Methods inherited from class oracle.security.crypto.core.AlgorithmIdentifier
`equals, getOID, getParameters, hashCode, length, output, toString`

Methods inherited from class java.lang.Object
`finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### CBCAlgorithmIdentifier

    public CBCAlgorithmIdentifier(ASN1ObjectID oid,
                                  ASN1Object params)
                           throws AlgorithmIdentifierException

  Create a new `CBCAlgorithmIdentifier` using the given OID, and obtaining the initialization vector by decoding the given `ASN1Object`.
Parameters:
  `oid` - The object identifier for the cipher algorithm.
  `params` - An `ASN1Object` containing the encoding of the bytes of the initialization vector.

### CBCAlgorithmIdentifier

    public CBCAlgorithmIdentifier(ASN1ObjectID oid,
                                  byte[] iv)

  Create a new `CBCAlgorithmIdentifier` using the given OID and initialization vector.
Parameters:
  `oid` - The object identifier for the cipher algorithm.
  `iv` - The bytes of the initialization vector.

### CBCAlgorithmIdentifier

    public CBCAlgorithmIdentifier(AlgorithmIdentifier algID,
                                  byte[] iv)

  Create a new `CBCAlgorithmIdentifier` using the OID from the given algorithm identifier and initialization vector.
Parameters:
  `algID` - The algorithm identifier from which to obtain the object identifier for the cipher algorithm.
  `iv` - The bytes of the initialization vector.

### CBCAlgorithmIdentifier

    public CBCAlgorithmIdentifier(java.io.InputStream is)
                           throws java.io.IOException

  Makes a new instance by reading its encoding from the given InputStream.
Parameters:
  `is` - the InputStream from which the CBCAlgorithmIdentifier object comes
Throws:
  `java.io.IOException` - If an input exception occured.

Method Detail

### getIV

    public byte[] getIV()

  Returns the bytes of the initialization vector.

### clone

    public java.lang.Object clone()

  Creates a deep clone of this `CBCAlgorithmIdentifier` object.
  Overrides:
    `clone` in class `AlgorithmIdentifier`

### input

    public void input(java.io.InputStream is)
               throws java.io.IOException

  Reads in a `CBCAlgorithmIdentifier` object from the given input stream.
  Specified by:
    `input` in interface `Streamable`
  Overrides:
    `input` in class `AlgorithmIdentifier`
  Parameters:
    `is` - The input stream.
  Throws:
    `java.io.IOException` - If an I/O error occurs.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle Security Developer Tools Crypto Java API Reference 10g Release 3 (10.1.3) B25378-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005, 2006 , Oracle. All rights reserved.