Class Crypto


  • public class Crypto
    extends Object
    The Class Crypto.
    • Constructor Detail

      • Crypto

        public Crypto()
        Instantiates a new Crypto.
    • Method Detail

      • seal

        public byte[] seal​(be.fgov.ehealth.etee.crypto.encrypt.EncryptionToken etk,
                           byte[] data)
        Seal an unencrypted message.
        Parameters:
        etk - the etk
        data - the data
        Returns:
        the byte[]
      • seal

        public byte[] seal​(byte[] data,
                           SecretKey secretKey,
                           String keyId)
        Seal an unencrypted message.
        Parameters:
        data - the data
        secretKey - the secret key
        keyId - 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 etks
        data - the data
        Returns:
        the byte[]
      • unsealForUnknown

        public byte[] unsealForUnknown​(be.ehealth.technicalconnector.service.kgss.domain.KeyResult keyResult,
                                       byte[] data)
        Unseal an encrypted message.
        Parameters:
        keyResult - the key result
        data - the data
        Returns:
        the byte[]
      • unseal

        public byte[] unseal​(SecretKey secretKey,
                             byte[] data)
        Unseal an encrypted message.
        Parameters:
        secretKey - the secret key
        data - the data
        Returns:
        the byte[]