Adds signature key and senders certificate to an element (Message or Assertion).
public static addSign ( string | DomDocument $xml, string $key, string $cert, string $signAlgorithm = XMLSecurityKey::RSA_SHA1 ) : string | ||
$xml | string | DomDocument | The element we should sign |
$key | string | The private key |
$cert | string | The public |
$signAlgorithm | string | Signature algorithm method |
Résultat | string |