Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.mozilla.jss.crypto.Algorithm
org.mozilla.jss.crypto.EncryptionAlgorithm
public class EncryptionAlgorithm
extends Algorithm
Nested Class Summary | |
static class | |
static class | |
static class |
Field Summary | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static OBJECT_IDENTIFIER | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm | |
static EncryptionAlgorithm |
Constructor Summary | |
| |
|
Method Summary | |
static EncryptionAlgorithm |
|
static EncryptionAlgorithm |
|
EncryptionAlgorithm.Alg |
|
int |
|
int |
|
int |
|
EncryptionAlgorithm.Mode |
|
EncryptionAlgorithm.Padding |
|
EncryptionAlgorithm.Padding |
|
boolean |
|
static EncryptionAlgorithm |
|
Methods inherited from class org.mozilla.jss.crypto.Algorithm | |
getParameterClass , getParameterClasses , isValidParameterObject , toOID , toString |
protected EncryptionAlgorithm(int oidTag, EncryptionAlgorithm.Alg alg, EncryptionAlgorithm.Mode mode, EncryptionAlgorithm.Padding padding, Class paramClass, int blockSize, OBJECT_IDENTIFIER oid, int keyStrength)
protected EncryptionAlgorithm(int oidTag, EncryptionAlgorithm.Alg alg, EncryptionAlgorithm.Mode mode, EncryptionAlgorithm.Padding padding, Class[] paramClasses, int blockSize, OBJECT_IDENTIFIER oid, int keyStrength)
public static EncryptionAlgorithm fromOID(OBJECT_IDENTIFIER oid) throws NoSuchAlgorithmException
public static EncryptionAlgorithm fromString(String name) throws NoSuchAlgorithmException
Deprecated. This method is deprecated because algorithm strings don't contain key length, which is necessary to distinguish between AES algorithms.
public EncryptionAlgorithm.Alg getAlg()
Returns the base algorithm, without the parameters. For example, the base algorithm of "AES/CBC/NoPadding" is "AES".
public int getBlockSize()
The blocksize of the algorithm in bytes. Stream algorithms (such as RC4) have a blocksize of 1.
public int getIVLength()
Returns the number of bytes that this algorithm expects in its initialization vector.
- Returns:
- The size in bytes of the IV for this algorithm. A size of 0 means this algorithm does not take an IV.
public int getKeyStrength()
Returns the key strength of this algorithm in bits. Algorithms that use continuously variable key sizes (such as RC4) will return 0 to indicate they can use any key size.
public EncryptionAlgorithm.Padding getPadding()
Returns the padding type of this algorithm.
public EncryptionAlgorithm.Padding getPaddingType()
Returns the type of padding for this algorithm.
public boolean isPadded()
Deprecated. Call getPaddingType() instead.
Returnstrue
if this algorithm performs padding.
public static EncryptionAlgorithm lookup(String algName, String modeName, String paddingName, int keyStrength) throws NoSuchAlgorithmException