|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-05 |
||||||||
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.PBEAlgorithmIdentifier
public class PBEAlgorithmIdentifier
An Algorithm Identifier used for Password Based Encryption operations.
PBE
, PKCS5PBE
, PKCS12PBE
, Serialized FormField Summary | |
---|---|
static int |
DEFAULT_ITER_COUNT Default password-based key derivation iteration count is 1024. |
static int |
DEFAULT_SALT_LEN Default password-based key derivation salt length is 8 bytes. |
static ASN1ObjectID |
id_PBES2 OID for PKCS#5 that identifies the PBES2 encryption scheme |
static ASN1ObjectID |
id_PBKDF2 OID for PKCS#5 that identifies the PBKDF2 key derivation function |
static ASN1ObjectID |
pbeWithMD2AndDES_CBC OID for PKCS#5 PBE MD2 with DES CBC algorithm |
static ASN1ObjectID |
pbeWithMD2AndRC2_CBC OID for PKCS#5 PBE MD2 with RC2 CBC algorithm |
static ASN1ObjectID |
pbeWithMD5AndDES_CBC OID for PKCS#5 PBE MD5 with DES CBC algorithm |
static ASN1ObjectID |
pbeWithMD5AndRC2_CBC OID for PKCS#5 PBE MD5 with RC2 CBC algorithm |
static ASN1ObjectID |
pbeWithSHA1AndDES_CBC OID for PKCS#5 PBE SHA1 with DES CBC algorithm |
static ASN1ObjectID |
pbeWithSHA1AndRC2_CBC OID for PKCS#5 PBE SHA1 with RC2 CBC algorithm |
static ASN1ObjectID |
pbeWithSHAAnd128BitRC2_CBC OID for PKCS#12 PBE SHA1 with RC2 CBC 128 bits algorithm |
static ASN1ObjectID |
pbeWithSHAAnd128BitRC4 OID for PKCS#12 PBE SHA1 with RC4 128 bits algorithm |
static ASN1ObjectID |
pbeWithSHAAnd2_KeyTripleDES_CBC OID for PKCS#12 PBE SHA1 with Triple DES CBC 112 bits algorithm |
static ASN1ObjectID |
pbeWithSHAAnd3_KeyTripleDES_CBC OID for PKCS#12 PBE SHA1 with Triple DES CBC 168 bits algorithm |
static ASN1ObjectID |
pbeWithSHAAnd40BitRC2_CBC OID for PKCS#12 PBE SHA1 with RC2 CBC 40 bits algorithm |
static ASN1ObjectID |
pbeWithSHAAnd40BitRC4 OID for PKCS#12 PBE SHA1 with RC4 40 bits algorithm |
static ASN1ObjectID |
pkcs12PBEids OID for PKCS#12 PBE algorithms |
static ASN1ObjectID |
pkcs5 OID for PKCS#5 PBE algorithms |
Constructor Summary | |
---|---|
PBEAlgorithmIdentifier() Empty constructor. |
|
PBEAlgorithmIdentifier(ASN1ObjectID oid) Creates an PBEAlgorithmIdentifier used with the PBES1 encryption scheme using the default salt size and the default iteration count. |
|
PBEAlgorithmIdentifier(ASN1ObjectID oid, byte[] salt, int iterationCount) Creates an PBEAlgorithmIdentifier used with the PBES1 encryption scheme. |
|
PBEAlgorithmIdentifier(ASN1ObjectID oid, RandomBitsSource rbs) Creates an PBEAlgorithmIdentifier used with the PBES1 encryption scheme using the default salt size and the default iteration count. |
|
PBEAlgorithmIdentifier(byte[] salt, int iterationCount, AlgorithmIdentifier cipherAlgID) Creates an PBEAlgorithmIdentifier used with the PBES2 encryption scheme. |
|
PBEAlgorithmIdentifier(byte[] salt, int iterationCount, int keyLength, AlgorithmIdentifier prfAlgID, AlgorithmIdentifier cipherAlgID) Creates an PBEAlgorithmIdentifier used with the PBES2 encryption scheme. |
|
PBEAlgorithmIdentifier(java.io.InputStream is) Creates a new PBEAlgorithmIdentifier from the given input stream. |
Method Summary | |
---|---|
java.lang.Object |
clone() Clone this Algorithm Identifier. |
AlgorithmIdentifier |
getEncryptionScheme() Returns the The algorithm that identifies the underlying encryption scheme in case of a PBES2 algorithm or null otherwise. |
int |
getIterationCount() Returns the iteration count value. |
int |
getKeyLength() Returns the key length if set in case of the PBSE2 algorithm. |
AlgorithmIdentifier |
getPseudorandomFunc() Returns the The algorithm that identifies the underlying pseudorandom function in case of a PBES2 algorithm or null otherwise. |
byte[] |
getSalt() Returns the salt value. |
void |
input(java.io.InputStream is) Reads in a PBEAlgorithmIdentifier 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 |
Field Detail |
---|
public static final ASN1ObjectID pkcs5
public static final ASN1ObjectID pbeWithMD2AndDES_CBC
public static final ASN1ObjectID pbeWithMD2AndRC2_CBC
public static final ASN1ObjectID pbeWithMD5AndDES_CBC
public static final ASN1ObjectID pbeWithMD5AndRC2_CBC
public static final ASN1ObjectID pbeWithSHA1AndDES_CBC
public static final ASN1ObjectID pbeWithSHA1AndRC2_CBC
public static final ASN1ObjectID id_PBKDF2
public static final ASN1ObjectID id_PBES2
public static final ASN1ObjectID pkcs12PBEids
public static final ASN1ObjectID pbeWithSHAAnd128BitRC4
public static final ASN1ObjectID pbeWithSHAAnd40BitRC4
public static final ASN1ObjectID pbeWithSHAAnd3_KeyTripleDES_CBC
public static final ASN1ObjectID pbeWithSHAAnd2_KeyTripleDES_CBC
public static final ASN1ObjectID pbeWithSHAAnd128BitRC2_CBC
public static final ASN1ObjectID pbeWithSHAAnd40BitRC2_CBC
public static final int DEFAULT_SALT_LEN
public static final int DEFAULT_ITER_COUNT
Constructor Detail |
---|
public PBEAlgorithmIdentifier(ASN1ObjectID oid) throws AlgorithmIdentifierException
PBEAlgorithmIdentifier
used with the PBES1 encryption scheme using the default salt size and the default iteration count.
oid
- The object identifier of the algorithm identifier.AlgorithmIdentifierException
public PBEAlgorithmIdentifier(ASN1ObjectID oid, RandomBitsSource rbs) throws AlgorithmIdentifierException
PBEAlgorithmIdentifier
used with the PBES1 encryption scheme using the default salt size and the default iteration count.
oid
- The object identifier of the algorithm identifier.rbs
- The RandomBitsSource to use to generate the salt.AlgorithmIdentifierException
public PBEAlgorithmIdentifier(ASN1ObjectID oid, byte[] salt, int iterationCount) throws AlgorithmIdentifierException
PBEAlgorithmIdentifier
used with the PBES1 encryption scheme.
oid
- The object identifier of the algorithm identifier.salt
- The salt that will be part of the parameters of the algorithm.iterationCount
- The iteration count.AlgorithmIdentifierException
public PBEAlgorithmIdentifier(byte[] salt, int iterationCount, int keyLength, AlgorithmIdentifier prfAlgID, AlgorithmIdentifier cipherAlgID) throws AlgorithmIdentifierException
PBEAlgorithmIdentifier
used with the PBES2 encryption scheme. The object identifier of the algorithm will be id_PBES2
.
salt
- The salt that will be part of the parameters of the algorithm.iterationCount
- The iteration count.keyLength
- The length of the key generated by the pseudorandom function.prfAlgID
- The algorithm that identifies the underlying pseudorandom function.cipherAlgID
- The algorithm that identifies the underlying encryption scheme.AlgorithmIdentifierException
public PBEAlgorithmIdentifier(byte[] salt, int iterationCount, AlgorithmIdentifier cipherAlgID) throws AlgorithmIdentifierException
PBEAlgorithmIdentifier
used with the PBES2 encryption scheme. The object identifier of the algorithm will be id_PBES2
. The underlying pseudorandom function is AlgID.hmacWithSHA1
.
salt
- The salt that will be part of the parameters of the algorithm.iterationCount
- The iteration count.cipherAlgID
- The algorithm that identifies the underlying encryption scheme.AlgorithmIdentifierException
public PBEAlgorithmIdentifier() throws java.io.IOException
java.io.IOException
public PBEAlgorithmIdentifier(java.io.InputStream is) throws java.io.IOException
PBEAlgorithmIdentifier
from the given input stream.
java.io.IOException
Method Detail |
---|
public byte[] getSalt()
public int getIterationCount()
public int getKeyLength()
public AlgorithmIdentifier getPseudorandomFunc()
null
otherwise.public AlgorithmIdentifier getEncryptionScheme()
null
otherwise.public void input(java.io.InputStream is) throws java.io.IOException
PBEAlgorithmIdentifier
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.public java.lang.Object clone()
clone
in class AlgorithmIdentifier
|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |