Class NoopCryptoService
java.lang.Object
ch.admin.bit.jeap.crypto.internal.core.noop.NoopCryptoService
- All Implemented Interfaces:
CryptoService
Should only be used to bypass encryption and decryption in dev environments. Hence, plaintext and ciphertext are
returned untouched. No encryption or decryption is performed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoopCryptoService
public NoopCryptoService()
-
-
Method Details
-
encrypt
public byte[] encrypt(byte[] plaintext) Description copied from interface:CryptoServiceEncrypts plaintext to a jEAP crypto container, using a data key for encryption of the data.- Specified by:
encryptin interfaceCryptoService- Parameters:
plaintext- Plaintext bytes to be encrypted- Returns:
- Encrypted data container, formatted according to a
JeapCryptoDataFormat
-
decrypt
public byte[] decrypt(byte[] ciphertextCryptoContainer) Description copied from interface:CryptoServiceDecrypts a jEAP crypto container back to the plaintext bytes.- Specified by:
decryptin interfaceCryptoService- Parameters:
ciphertextCryptoContainer- Encrypted data container, formatted according to aJeapCryptoDataFormat- Returns:
- Decrypted plaintext bytes
-