|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.AlgorithmIdentifier
oracle.security.crypto.core.CBCAlgorithmIdentifier
An algorithm identifier for Cipher Block Chaining (CBC) mode symmetric block ciphers, which use an initialization vector as a parameter.
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 |
public CBCAlgorithmIdentifier(ASN1ObjectID oid, ASN1Object params) throws AlgorithmIdentifierException
CBCAlgorithmIdentifier
using the given OID, and obtaining the initialization vector by decoding the given ASN1Object
.oid
- The object identifier for the cipher algorithm.params
- An ASN1Object
containing the encoding of the bytes of the initialization vector.public CBCAlgorithmIdentifier(ASN1ObjectID oid, byte[] iv)
CBCAlgorithmIdentifier
using the given OID and initialization vector.oid
- The object identifier for the cipher algorithm.iv
- The bytes of the initialization vector.public CBCAlgorithmIdentifier(AlgorithmIdentifier algID, byte[] iv)
CBCAlgorithmIdentifier
using the OID from the given algorithm identifier and initialization vector.algID
- The algorithm identifier from which to obtain the object identifier for the cipher algorithm.iv
- The bytes of the initialization vector.public CBCAlgorithmIdentifier(java.io.InputStream is) throws java.io.IOException
is
- the InputStream from which the CBCAlgorithmIdentifier object comesjava.io.IOException
- If an input exception occured.Method Detail |
public byte[] getIV()
public java.lang.Object clone()
CBCAlgorithmIdentifier
object.clone
in class AlgorithmIdentifier
public void input(java.io.InputStream is) throws java.io.IOException
CBCAlgorithmIdentifier
object from the given input stream.input
in interface Streamable
input
in class AlgorithmIdentifier
is
- The input stream.java.io.IOException
- If an I/O error occurs.
|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |