public static enum CipherConstants.AOCipherAlgorithm extends java.lang.Enum<CipherConstants.AOCipherAlgorithm>
Enum Constant and Description |
---|
AES
Advanced Encryption Standard (AES).
|
ARCFOUR
Alleged RC4.
|
BLOWFISH
Blowfish.
|
DES
Data Encryption Standard (DES).
|
HMACMD5
MAC HMACMD5
|
HMACSHA1
MAC HMACSHA1
|
HMACSHA256
MAC HMACSHA256
|
HMACSHA384
MAC HMACSHA384
|
HMACSHA512
MAC HMACSHA512
|
PBEWITHMD5ANDDES
Contraseña con MD5 y DES.
|
PBEWITHSHA1ANDDESEDE
Contraseña con SHA1 y 3DES.
|
PBEWITHSHA1ANDRC2_40
Contraseña con SHA1 y RC2.
|
RC2
RC2.
|
TRIPLEDES
Triple DES (3DES).
|
Modifier and Type | Method and Description |
---|---|
static CipherConstants.AOCipherAlgorithm |
getDefault()
Obtiene al algoritmo de cifrado por defecto.
|
java.lang.String |
getName()
Obtiene el nombre del algoritmo.
|
java.lang.String |
getOid()
Obtiene el OID (Object IDentifier) ASN.1 del algoritmo.
|
static CipherConstants.AOCipherAlgorithm |
getValueOf(java.lang.String algorithmName)
Recupera el algoritmo soportado cuyo nombre se indique.
|
boolean |
supportsKey()
Indica si el algoritmo de cifrado soporta claves.
|
boolean |
supportsPassword()
Indica si el algoritmo de cifrado soporta contraseñas.
|
java.lang.String |
toString() |
static CipherConstants.AOCipherAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CipherConstants.AOCipherAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CipherConstants.AOCipherAlgorithm AES
public static final CipherConstants.AOCipherAlgorithm ARCFOUR
public static final CipherConstants.AOCipherAlgorithm BLOWFISH
public static final CipherConstants.AOCipherAlgorithm DES
public static final CipherConstants.AOCipherAlgorithm TRIPLEDES
public static final CipherConstants.AOCipherAlgorithm RC2
public static final CipherConstants.AOCipherAlgorithm PBEWITHMD5ANDDES
public static final CipherConstants.AOCipherAlgorithm PBEWITHSHA1ANDDESEDE
public static final CipherConstants.AOCipherAlgorithm PBEWITHSHA1ANDRC2_40
public static final CipherConstants.AOCipherAlgorithm HMACMD5
public static final CipherConstants.AOCipherAlgorithm HMACSHA1
public static final CipherConstants.AOCipherAlgorithm HMACSHA256
public static final CipherConstants.AOCipherAlgorithm HMACSHA384
public static final CipherConstants.AOCipherAlgorithm HMACSHA512
public static CipherConstants.AOCipherAlgorithm[] values()
for (CipherConstants.AOCipherAlgorithm c : CipherConstants.AOCipherAlgorithm.values()) System.out.println(c);
public static CipherConstants.AOCipherAlgorithm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CipherConstants.AOCipherAlgorithm getDefault()
public boolean supportsPassword()
true
si el algoritmo soporta contraseñas
(en vez de claves), false
en caso contrariopublic boolean supportsKey()
true
si el algoritmo soporta claves (en vez de
contraseñas), false
en caso contrariopublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<CipherConstants.AOCipherAlgorithm>
public java.lang.String getOid()
public static CipherConstants.AOCipherAlgorithm getValueOf(java.lang.String algorithmName)
null
.algorithmName
- Nombre del algoritmo.