|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-04 |
||||||||
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
public class 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
, Serialized FormConstructor Summary | |
---|---|
CBCAlgorithmIdentifier() Creates a new empty instance. |
|
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, readExternal, toString, writeExternal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CBCAlgorithmIdentifier()
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.AlgorithmIdentifierException
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 will be read.java.io.IOException
- If an input exception occurs reading the algorithm identifier from the stream.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 Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |