org.mozilla.jss.crypto
public class KeyGenAlgorithm extends Algorithm
Nested Class Summary | |
---|---|
protected static class | KeyGenAlgorithm.FixedKeyStrengthValidator |
protected static interface | KeyGenAlgorithm.KeyStrengthValidator |
Field Summary | |
---|---|
static KeyGenAlgorithm | AES |
static KeyGenAlgorithm | DES |
static KeyGenAlgorithm | DES3 |
static KeyGenAlgorithm | DESede |
static KeyGenAlgorithm | PBA_SHA1_HMAC |
static KeyGenAlgorithm | RC2 |
static KeyGenAlgorithm | RC4 |
Constructor Summary | |
---|---|
protected | KeyGenAlgorithm(int oidTag, String name, KeyGenAlgorithm.KeyStrengthValidator keyStrengthValidator, OBJECT_IDENTIFIER oid, Class paramClass) |
Method Summary | |
---|---|
static KeyGenAlgorithm | fromOID(OBJECT_IDENTIFIER oid) |
boolean | isValidStrength(int strength)
Returns true if the given strength is valid for this
key generation algorithm. |
true
if the given strength is valid for this
key generation algorithm. Note that PBE algorithms require
PBEParameterSpecs rather than strengths. It is the responsibility
of the caller to verify this.