| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.mozilla.jss.crypto.Algorithmorg.mozilla.jss.crypto.KeyGenAlgorithmorg.mozilla.jss.crypto.PBEAlgorithmpublic class PBEAlgorithmextends KeyGenAlgorithmNested Class Summary |
Nested classes/interfaces inherited from class org.mozilla.jss.crypto.KeyGenAlgorithm | |
KeyGenAlgorithm.FixedKeyStrengthValidator, KeyGenAlgorithm.KeyStrengthValidator | |
Field Summary | |
static PBEAlgorithm | |
static PBEAlgorithm | |
static PBEAlgorithm | |
static PBEAlgorithm | |
static PBEAlgorithm | |
static PBEAlgorithm | |
static PBEAlgorithm | |
static PBEAlgorithm | |
Fields inherited from class org.mozilla.jss.crypto.KeyGenAlgorithm | |
AES, DES, DES3, DESede, PBA_SHA1_HMAC, RC2, RC4 | |
Constructor Summary | |
| |
Method Summary | |
EncryptionAlgorithm |
|
int |
|
Methods inherited from class org.mozilla.jss.crypto.KeyGenAlgorithm | |
fromOID, isValidStrength | |
Methods inherited from class org.mozilla.jss.crypto.Algorithm | |
getParameterClass, getParameterClasses, isValidParameterObject, toOID, toString | |
protected PBEAlgorithm(int oidTag,
String name,
int validStrength,
OBJECT_IDENTIFIER oid,
EncryptionAlgorithm encAlg,
int saltLength)public EncryptionAlgorithm getEncryptionAlg()
Returns the EncryptionAlgorithm that should be used with keys generated with this PBEAlgorithm. For example,PBE_MD2_DES_CBC.getEncryptionAlg()returnsEncryptionAlgorithm.DES_CBC.
public int getSaltLength()
Returns the number of bytes of salt that should be supplied when generating keys with this algorithm. PKCS #5 algorithms require exactly 8 bytes of salt. PKCS #12 algorithms take a variable length, but recommend that the salt length be at least as long as the output of the hash function. For SHA-1, the output length is 20 bytes.