public final class AOSunJCECipher
extends java.lang.Object
implements es.gob.afirma.core.ciphers.AOCipher
Constructor and Description |
---|
AOSunJCECipher() |
Modifier and Type | Method and Description |
---|---|
byte[] |
cipher(byte[] data,
es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig,
java.security.Key cipherKey) |
byte[] |
decipher(byte[] data,
es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig,
java.security.Key decipherKey) |
java.security.Key |
decodeKey(byte[] keyEncoded,
es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig,
java.lang.Object[] params) |
java.security.Key |
decodePassphrase(char[] passphrase,
es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig,
java.lang.Object[] params) |
java.security.Key |
generateKey(es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig) |
es.gob.afirma.core.ciphers.AOCipherConfig[] |
getSupportedConfigs() |
public es.gob.afirma.core.ciphers.AOCipherConfig[] getSupportedConfigs()
getSupportedConfigs
in interface es.gob.afirma.core.ciphers.AOCipher
public byte[] cipher(byte[] data, es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig, java.security.Key cipherKey) throws es.gob.afirma.core.AOException, java.security.KeyException
cipher
in interface es.gob.afirma.core.ciphers.AOCipher
es.gob.afirma.core.AOException
java.security.KeyException
public byte[] decipher(byte[] data, es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig, java.security.Key decipherKey) throws es.gob.afirma.core.AOException, java.security.InvalidKeyException
decipher
in interface es.gob.afirma.core.ciphers.AOCipher
es.gob.afirma.core.AOException
java.security.InvalidKeyException
public java.security.Key decodeKey(byte[] keyEncoded, es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig, java.lang.Object[] params) throws java.security.KeyException
decodeKey
in interface es.gob.afirma.core.ciphers.AOCipher
java.security.KeyException
public java.security.Key decodePassphrase(char[] passphrase, es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig, java.lang.Object[] params) throws es.gob.afirma.core.AOException
decodePassphrase
in interface es.gob.afirma.core.ciphers.AOCipher
es.gob.afirma.core.AOException
public java.security.Key generateKey(es.gob.afirma.core.ciphers.AOCipherConfig algorithmConfig) throws es.gob.afirma.core.AOException
generateKey
in interface es.gob.afirma.core.ciphers.AOCipher
es.gob.afirma.core.AOException