xml.CryptoKey.loadBIN

Loads a symmetric or HMAC key from a file in raw format.

Syntax

loadBIN(
   filename STRING )
  1. filename defines the file name or an entry in the FGLPROFILE file.

Usage

Raw format means that data in the file is read without any transformation, and will be stored as is in the key.

For instance, if your file contains "hello", it has the same effect as calling xml.CryptoKey.setKey() with "hello" as parameter.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).