public class CBCAlgorithmIdentifier extends AlgorithmIdentifier
AES, DES, DES_EDE, Blowfish, Serialized Form| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
equals, getOID, getParameters, hashCode, length, output, readExternal, toString, writeExternalpublic 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.AlgorithmIdentifierExceptionpublic 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.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 Streamableinput in class AlgorithmIdentifieris - The input stream.java.io.IOException - If an I/O error occurs.