|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.jss.crypto.Algorithm
org.mozilla.jss.crypto.EncryptionAlgorithm
public class EncryptionAlgorithm
An algorithm for performing symmetric encryption.
Nested Class Summary | |
---|---|
static class |
EncryptionAlgorithm.Alg
|
static class |
EncryptionAlgorithm.Mode
|
static class |
EncryptionAlgorithm.Padding
|
Field Summary | |
---|---|
static EncryptionAlgorithm |
AES_128_CBC
|
static EncryptionAlgorithm |
AES_128_ECB
|
static EncryptionAlgorithm |
AES_192_CBC
|
static EncryptionAlgorithm |
AES_192_ECB
|
static EncryptionAlgorithm |
AES_256_CBC
|
static EncryptionAlgorithm |
AES_256_ECB
|
static EncryptionAlgorithm |
AES_CBC_PAD
|
static OBJECT_IDENTIFIER |
AES_ROOT_OID
|
static EncryptionAlgorithm |
DES_CBC
|
static EncryptionAlgorithm |
DES_CBC_PAD
|
static EncryptionAlgorithm |
DES_ECB
|
static EncryptionAlgorithm |
DES3_CBC
|
static EncryptionAlgorithm |
DES3_CBC_PAD
|
static EncryptionAlgorithm |
DES3_ECB
|
static EncryptionAlgorithm |
RC2_CBC
|
static EncryptionAlgorithm |
RC2_CBC_PAD
|
static EncryptionAlgorithm |
RC4
|
Constructor Summary | |
---|---|
protected |
EncryptionAlgorithm(int oidTag,
EncryptionAlgorithm.Alg alg,
EncryptionAlgorithm.Mode mode,
EncryptionAlgorithm.Padding padding,
java.lang.Class[] paramClasses,
int blockSize,
OBJECT_IDENTIFIER oid,
int keyStrength)
|
protected |
EncryptionAlgorithm(int oidTag,
EncryptionAlgorithm.Alg alg,
EncryptionAlgorithm.Mode mode,
EncryptionAlgorithm.Padding padding,
java.lang.Class paramClass,
int blockSize,
OBJECT_IDENTIFIER oid,
int keyStrength)
|
Method Summary | |
---|---|
static EncryptionAlgorithm |
fromOID(OBJECT_IDENTIFIER oid)
|
static EncryptionAlgorithm |
fromString(java.lang.String name)
Deprecated. This method is deprecated because algorithm strings don't contain key length, which is necessary to distinguish between AES algorithms. |
EncryptionAlgorithm.Alg |
getAlg()
Returns the base algorithm, without the parameters. |
int |
getBlockSize()
The blocksize of the algorithm in bytes. |
int |
getIVLength()
Returns the number of bytes that this algorithm expects in its initialization vector. |
int |
getKeyStrength()
Returns the key strength of this algorithm in bits. |
EncryptionAlgorithm.Mode |
getMode()
Returns the mode of this algorithm. |
EncryptionAlgorithm.Padding |
getPadding()
Returns the padding type of this algorithm. |
EncryptionAlgorithm.Padding |
getPaddingType()
Returns the type of padding for this algorithm. |
boolean |
isPadded()
Deprecated. Call getPaddingType() instead. |
static EncryptionAlgorithm |
lookup(java.lang.String algName,
java.lang.String modeName,
java.lang.String paddingName,
int keyStrength)
|
Methods inherited from class org.mozilla.jss.crypto.Algorithm |
---|
getParameterClass, getParameterClasses, isValidParameterObject, toOID, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EncryptionAlgorithm RC4
public static final EncryptionAlgorithm DES_ECB
public static final EncryptionAlgorithm DES_CBC
public static final EncryptionAlgorithm DES_CBC_PAD
public static final EncryptionAlgorithm DES3_ECB
public static final EncryptionAlgorithm DES3_CBC
public static final EncryptionAlgorithm DES3_CBC_PAD
public static final EncryptionAlgorithm RC2_CBC
public static final EncryptionAlgorithm RC2_CBC_PAD
public static final OBJECT_IDENTIFIER AES_ROOT_OID
public static final EncryptionAlgorithm AES_128_ECB
public static final EncryptionAlgorithm AES_128_CBC
public static final EncryptionAlgorithm AES_192_ECB
public static final EncryptionAlgorithm AES_192_CBC
public static final EncryptionAlgorithm AES_256_ECB
public static final EncryptionAlgorithm AES_256_CBC
public static final EncryptionAlgorithm AES_CBC_PAD
Constructor Detail |
---|
protected EncryptionAlgorithm(int oidTag, EncryptionAlgorithm.Alg alg, EncryptionAlgorithm.Mode mode, EncryptionAlgorithm.Padding padding, java.lang.Class paramClass, int blockSize, OBJECT_IDENTIFIER oid, int keyStrength)
protected EncryptionAlgorithm(int oidTag, EncryptionAlgorithm.Alg alg, EncryptionAlgorithm.Mode mode, EncryptionAlgorithm.Padding padding, java.lang.Class[] paramClasses, int blockSize, OBJECT_IDENTIFIER oid, int keyStrength)
Method Detail |
---|
public EncryptionAlgorithm.Alg getAlg()
public EncryptionAlgorithm.Mode getMode()
public EncryptionAlgorithm.Padding getPadding()
public int getKeyStrength()
public static EncryptionAlgorithm fromOID(OBJECT_IDENTIFIER oid) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static EncryptionAlgorithm fromString(java.lang.String name) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static EncryptionAlgorithm lookup(java.lang.String algName, java.lang.String modeName, java.lang.String paddingName, int keyStrength) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public int getBlockSize()
public boolean isPadded()
true
if this algorithm performs padding.
public EncryptionAlgorithm.Padding getPaddingType()
public int getIVLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |