public class CipherIntegra
extends java.lang.Object
implements java.io.Serializable
Class to decode and encode text using different symmetric or asymmetric algorithms.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Constructor and Description |
|---|
CipherIntegra(AlgorithmCipherEnum algorithmCipherParam,
java.security.Key keyParam)
Constructor method for the class Cipher.java.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decrypt(java.lang.String message)
Method for symmetric decryption.
|
java.lang.String |
encrypt(java.lang.String message)
Method for symmetric encryption of data.
|
public CipherIntegra(AlgorithmCipherEnum algorithmCipherParam, java.security.Key keyParam) throws CipherException
algorithmCipherParam - Parameter that represents the selected cipher algorithm.keyParam - Parameter that represents the used key to encrypt/decrypt a message.CipherExceptionpublic final java.lang.String encrypt(java.lang.String message)
throws CipherException
message - Text to be encoded.CipherException - If the method fails.public final java.lang.String decrypt(java.lang.String message)
throws CipherException
message - Text to be decoded.CipherException - If the method fails.