Skip to content

Interface ZIF_LLM_ENCRYPTION

AI Generated documentation.

Overview

The zif_llm_encryption interface provides two public methods for encrypting and decrypting secrets. These methods are designed to handle sensitive data securely, with appropriate error handling for validation and authorization issues.

Public Methods

  1. decrypt
  2. Purpose: Decrypts an encrypted secret.
  3. Parameters:
    • encrypted (IMPORTING): The encrypted data to be decrypted (TYPE xstring).
  4. Returns:
    • result (RETURNING VALUE): The decrypted secret (TYPE string).
  5. Exceptions:

    • zcx_llm_validation: Raised for validation errors.
    • zcx_llm_authorization: Raised for authorization errors.
  6. encrypt

  7. Purpose: Encrypts an unencrypted secret.
  8. Parameters:
    • unencrypted (IMPORTING): The unencrypted data to be encrypted (TYPE string).
  9. Returns:
    • result (RETURNING VALUE): The encrypted secret (TYPE xstring).
  10. Exceptions:
    • zcx_llm_validation: Raised for validation errors.
    • zcx_llm_authorization: Raised for authorization errors.