Class Crypto
- java.lang.Object
-
- be.business.connector.core.technical.connector.utils.Crypto
-
public class Crypto extends Object
The Class Crypto.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]seal(byte[] data, SecretKey secretKey, String keyId)Seal an unencrypted message.byte[]seal(be.fgov.ehealth.etee.crypto.encrypt.EncryptionToken etk, byte[] data)Seal an unencrypted message.byte[]seal(List<be.fgov.ehealth.etee.crypto.encrypt.EncryptionToken> etks, byte[] data)Seal an unencrypted message.byte[]unseal(byte[] data)Unseal an encrypted message.byte[]unseal(SecretKey secretKey, byte[] data)Unseal an encrypted message.byte[]unsealForUnknown(be.ehealth.technicalconnector.service.kgss.domain.KeyResult keyResult, byte[] data)Unseal an encrypted message.
-
-
-
Constructor Detail
-
Crypto
public Crypto()
Instantiates a newCrypto.
-
-
Method Detail
-
seal
public byte[] seal(be.fgov.ehealth.etee.crypto.encrypt.EncryptionToken etk, byte[] data)Seal an unencrypted message.- Parameters:
etk- the etkdata- the data- Returns:
- the byte[]
-
seal
public byte[] seal(byte[] data, SecretKey secretKey, String keyId)Seal an unencrypted message.- Parameters:
data- the datasecretKey- the secret keykeyId- the key id- Returns:
- the byte[]
-
seal
public byte[] seal(List<be.fgov.ehealth.etee.crypto.encrypt.EncryptionToken> etks, byte[] data)
Seal an unencrypted message.- Parameters:
etks- the etksdata- the data- Returns:
- the byte[]
-
unseal
public byte[] unseal(byte[] data) throws IntegrationModuleExceptionUnseal an encrypted message.- Parameters:
data- the data- Returns:
- the byte[]
- Throws:
IntegrationModuleException- the integration module exception
-
unsealForUnknown
public byte[] unsealForUnknown(be.ehealth.technicalconnector.service.kgss.domain.KeyResult keyResult, byte[] data)Unseal an encrypted message.- Parameters:
keyResult- the key resultdata- the data- Returns:
- the byte[]
-
unseal
public byte[] unseal(SecretKey secretKey, byte[] data)
Unseal an encrypted message.- Parameters:
secretKey- the secret keydata- the data- Returns:
- the byte[]
-
-