Package | Description |
---|---|
es.gob.afirma.core.ciphers |
Clases del núcleo relacionadas con los cifrados simétricos.
|
es.gob.afirma.core.envelopers |
Clases del núcleo relacionadas con los sobres digitales.
|
es.gob.afirma.envelopers.cms |
Módulo de generación de sobres digitales en formato CMS.
|
Modifier and Type | Method and Description |
---|---|
CipherConstants.AOCipherAlgorithm |
AOCipherConfig.getAlgorithm()
Obtiene el algoritmo de cifrado.
|
static CipherConstants.AOCipherAlgorithm |
CipherConstants.AOCipherAlgorithm.getDefault()
Obtiene al algoritmo de cifrado por defecto.
|
static CipherConstants.AOCipherAlgorithm |
CipherConstants.AOCipherAlgorithm.getValueOf(java.lang.String algorithmName)
Recupera el algoritmo soportado cuyo nombre se indique.
|
static CipherConstants.AOCipherAlgorithm |
CipherConstants.AOCipherAlgorithm.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CipherConstants.AOCipherAlgorithm[] |
CipherConstants.AOCipherAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
AOCipherConfig.setAlgorithm(CipherConstants.AOCipherAlgorithm algo)
Establece el algoritmo de cifrado.
|
Constructor and Description |
---|
AOCipherConfig(CipherConstants.AOCipherAlgorithm algo,
CipherConstants.AOCipherBlockMode mode,
CipherConstants.AOCipherPadding padd)
Construyye una configuración de cifrado.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
AOEnveloper.encrypt(byte[] data,
java.lang.String digestAlgorithm,
java.lang.String key,
CipherConstants.AOCipherAlgorithm cipherAlgorithm,
java.lang.String dataType)
Cifra un contenido.
|
byte[] |
AOEnveloper.envelop(byte[] data,
java.lang.String digestAlgorithm,
java.lang.String type,
java.security.KeyStore.PrivateKeyEntry keyEntry,
java.security.cert.X509Certificate[] certDest,
CipherConstants.AOCipherAlgorithm cipherAlgorithm,
java.lang.String dataType,
java.util.Properties extraParams)
Contruye distintas estructuras PKCS#7.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
AOCMSMultiEnveloper.coEnvelop(byte[] cmsData,
java.lang.String digestAlgorithm,
java.lang.String type,
java.security.KeyStore.PrivateKeyEntry keyEntry,
java.security.cert.X509Certificate[] certDest,
CipherConstants.AOCipherAlgorithm cipherAlgorithm,
java.lang.String dataType,
java.util.Properties extraParams)
Método que realiza el resto de firmas permitidas por CADES.
|
byte[] |
AOCMSEnveloper.encrypt(byte[] data,
java.lang.String digestAlgorithm,
java.lang.String key,
CipherConstants.AOCipherAlgorithm cipherAlgorithm,
java.lang.String dataType)
Cifra datos usando para ello una clave de cifrado.
|
byte[] |
AOCMSEnveloper.envelop(byte[] data,
java.lang.String digestAlgorithm,
java.lang.String type,
java.security.KeyStore.PrivateKeyEntry keyEntry,
java.security.cert.X509Certificate[] certDest,
CipherConstants.AOCipherAlgorithm cipherAlgorithm,
java.lang.String dataType,
java.util.Properties extraParams)
Método para la generación de envolturas de datos.
|