xml.CryptoKey.loadBin
Loads a symmetric or HMAC key from a file in raw format.
Syntax
loadBin(
filename STRING )
- filename defines the filename 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).