|
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.RC2AlgorithmIdentifier
An algorithm identifier for the RC2 symmetric cipher in CBC mode, which use an initialization vector and effective key length as parameters.
If an effective key length is not specified, the default will be 0 which has the the meaning of "no effective key length specified".
RC2
Constructor Summary | |
RC2AlgorithmIdentifier(ASN1ObjectID oid, ASN1Object params) Create a new RC2AlgorithmIdentifier using the given OID, and obtaining the initialization vector and effective key length by decoding the given ASN1Object . |
|
RC2AlgorithmIdentifier(byte[] iv, int effectiveKeyLength) Create a new RC2AlgorithmIdentifier using the given initialization vector and effective key length. |
|
RC2AlgorithmIdentifier(java.io.InputStream is) Makes a new instance by reading its encoding from the given InputStream. |
|
RC2AlgorithmIdentifier(int effectiveKeyLength) Create a new RC2AlgorithmIdentifier using the given effective key length. |
Method Summary | |
java.lang.Object |
clone() Creates a deep copy of this RC2AlgorithmIdentifier object. |
int |
getEffectiveKeyLength() Returns the effective key length, in bits. |
byte[] |
getIV() Returns the bytes of the initialization vector. |
void |
input(java.io.InputStream is) Reads in a RC2AlgorithmIdentifier 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 RC2AlgorithmIdentifier(ASN1ObjectID oid, ASN1Object params) throws AlgorithmIdentifierException
RC2AlgorithmIdentifier
using the given OID, and obtaining the initialization vector and effective key length by decoding the given ASN1Object
.oid
- The object identifier for the cipher algorithm, which must be equal to the OID from AlgID.RC2_CBC
.params
- An ASN1Object
containing the encoding of the parameters.public RC2AlgorithmIdentifier(byte[] iv, int effectiveKeyLength)
RC2AlgorithmIdentifier
using the given initialization vector and effective key length.iv
- The bytes of the initialization vector.effectiveKeyLength
- The effective key length, in bits.public RC2AlgorithmIdentifier(int effectiveKeyLength)
RC2AlgorithmIdentifier
using the given effective key length. The initialization vector is set to null
.effectiveKeyLength
- The effective key length, in bits.public RC2AlgorithmIdentifier(java.io.InputStream is) throws java.io.IOException
is
- the InputStream from which the RC2AlgorithmIdentifier object comesjava.io.IOException
- If an input exception occured.Method Detail |
public byte[] getIV()
public int getEffectiveKeyLength()
public java.lang.Object clone()
RC2AlgorithmIdentifier
object.clone
in class AlgorithmIdentifier
public void input(java.io.InputStream is) throws java.io.IOException
RC2AlgorithmIdentifier
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 |