xml.CryptoKey.CreateFromNode
Constructor of a new CryptoKey object based on a URL, from a XML node based on the XML-Signature and XML-Encryption specification.
Syntax
xml.CryptoKey.CreateFromNode(
url STRING,
node xml.DomNode )
RETURNS xml.CryptoKey
- url defines a key identifier restricted to PUBLIC/PRIVATE keys.
- node defines an
ELEMENT
node whose local name is either:-
DSAKeyValue or RSAKeyValue belonging to the XML-Signature namespace http://www.w3.org/2000/09/xmldsig#
-
RSAKeyPair belonging to the XKMS 2.0 namespace http://www.w3.org/2002/03/xkms#
-
Usage
Returns a CryptoKey object or NULL.
If the local name is RSAKeyValue or RSAKeyPair, the URL must be a RSA key. If the local name is DSAKeyValue, the URL must be a DSA key.
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).