The CryptoKey class / xml.CryptoKey methods |
Loads a symmetric or HMAC key from a file in raw format.
Raw format means that the data in the file are read without any transformation, and will be stored as it in the key.
For instance, if you file contains hello, it has the same effect as calling 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).