xml.CryptoX509 methods

Methods for the xml.CryptoX509 class.

Table 1. Class methods: Creation
Name Description
xml.CryptoX509.Create()
  RETURNING object xml.CryptoX509
Constructor of an empty CryptoX509 object.
xml.CryptoX509.CreateFromNode(
   node xml.DomNode )
  RETURNING object xml.CryptoX509
Constructor of a new CryptoX509 object from a XML X509 certificate node, according to the XML-Signature specification
Table 2. Object methods: Access
Name Description
getIdentifier()
  RETURNING idpart STRING
Gets the identification part of an X509 certificate
getThumbprintSHA1()
  RETURNING setp STRING
Gets the SHA1 encoded thumbprint identifying this X509 certificate.
Table 3. Object methods: Modify
Name Description
createPublicKey(
   url STRING )
  RETURNING object xml.CryptoX509
Creates a new public CryptoKey object for the given url, from the public key embedded in a certificate.
Table 4. Object methods: Load and save
Name Description
loadPEM(
   file STRING )
Loads a X509 certificate from a file in PEM format.
loadDER(
   file STRING )
Loads a X509 certificate from a file in DER format.
save()
  RETURNING object xml.DomDocument
Saves the CryptoX509 certificate into a XML document with ds:X509Data as root node according to the XML-Signature specification.
saveToString()
  RETURNING cert STRING
Saves the CryptoX509 certificate into a BASE64 string format.
load(
   xml xml.DomDocument )
Loads the given XML document with ds:X509Data as root node according to the XML-Signature specification, into the CryptoX509 object.
loadFromString(
   str STRING )
Loads the given X509 certificate in BASE64 string format into this CryptoX509 object.
Table 5. Object methods: Feature
Name Description
setFeature(
   feature STRING,
   value STRING )
Sets or resets the given feature for this CryptoX509 object.
getFeature(
   feature STRING )
  RETURNING value STRING
Get the value of a given feature of a CryptoX509 object.