File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ public function getCertificateDetails(): array
138138 *
139139 * @param string $file The file where the PEM-encoded certificate is stored.
140140 *
141- * @return \SimpleSAML\XMLSecurity\Key\PublicKey A new X509Certificate key.
141+ * @return \SimpleSAML\XMLSecurity\Key\X509Certificate A new X509Certificate key.
142142 * @throws \SimpleSAML\XMLSecurity\Exception\InvalidArgumentException If the file cannot be read.
143143 */
144- public static function fromFile (string $ file ): PublicKey
144+ public static function fromFile (string $ file ): X509Certificate
145145 {
146146 return new static (static ::readFile ($ file ));
147147 }
Original file line number Diff line number Diff line change 99use SimpleSAML \XMLSecurity \Exception \InvalidArgumentException ;
1010use SimpleSAML \XMLSecurity \Key \PrivateKey ;
1111use SimpleSAML \XMLSecurity \Key \X509Certificate ;
12- use SimpleSAML \XMLSecurity \Signature ;
1312
1413/**
1514 * Test for XML digital signatures.
Original file line number Diff line number Diff line change 11<ds : Signature xmlns : ds =" http://www.w3.org/2000/09/xmldsig#" Id =" def456" >
2- <ds : SignedInfo >
2+ <ds : SignedInfo Id = " abc123 " >
33 <ds : CanonicalizationMethod Algorithm =" http://www.w3.org/2001/10/xml-exc-c14n#" />
44 <ds : SignatureMethod Algorithm =" http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
5- <ds : Reference URI =" #_6b3172c144b22df2e6d4d1c57b3e4000435397a2f9 " >
5+ <ds : Reference Id = " abc123 " Type = " someType " URI =" #_1e280ee704fb1d8d9dec4bd6c1889ec96942921153 " >
66 <ds : Transforms >
77 <ds : Transform Algorithm =" http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
88 <ds : Transform Algorithm =" http://www.w3.org/2001/10/xml-exc-c14n#" />
99 </ds : Transforms >
1010 <ds : DigestMethod Algorithm =" http://www.w3.org/2001/04/xmlenc#sha256" />
11- <ds : DigestValue >Rx8tHdemC1h0efVwTOSkYww3zUR1n7XBTreo0BN8N6w =</ds : DigestValue >
11+ <ds : DigestValue >/CTj03d1DB5e2t7CTo9BEzCf5S9NRzwnBgZRlm32REI =</ds : DigestValue >
1212 </ds : Reference >
1313 </ds : SignedInfo >
14- <ds : SignatureValue >j14G9v6AnsOiEJYgkTg864DG3e/KLqoGpuybPGSGblVTn7ST6M/BsvP7YiVZjLqJEuEvWmf2mW4DPb+pbArzzDcsLWEtNveMrw+FkWehDUQV9oe20iepo+W46wmj7zB/eWL+Z8MrGvlycoTndJU6CVwHTLsB+dq2FDa7JV4pAPjMY32JZTbiwKhzqw3nEi/eVrujJE4YRrlW28D+rXhITfoUAGGvsqPzcwGzp02lnMe2SmXADY1u9lbVjOhUrJpgvWfn9YuiCR+wjvaGMwIwzfJxChLJZOBV+1ad1CyNTiu6qAblxZ4F8cWlMWJ7f0KkWvtw66HOf2VNR6Qan2Ra7Q==</ds : SignatureValue >
14+ <ds : SignatureValue >
15+ j14G9v6AnsOiEJYgkTg864DG3e/KLqoGpuybPGSGblVTn7ST6M/BsvP7YiVZjLqJEuEvWmf2mW4D
16+ Pb+pbArzzDcsLWEtNveMrw+FkWehDUQV9oe20iepo+W46wmj7zB/eWL+Z8MrGvlycoTndJU6CVwH
17+ TLsB+dq2FDa7JV4pAPjMY32JZTbiwKhzqw3nEi/eVrujJE4YRrlW28D+rXhITfoUAGGvsqPzcwGz
18+ p02lnMe2SmXADY1u9lbVjOhUrJpgvWfn9YuiCR+wjvaGMwIwzfJxChLJZOBV+1ad1CyNTiu6qAbl
19+ xZ4F8cWlMWJ7f0KkWvtw66HOf2VNR6Qan2Ra7Q==
20+ </ds : SignatureValue >
1521 <ds : KeyInfo Id =" abc123" >
1622 <ds : KeyName >testkey</ds : KeyName >
1723 <ds : X509Data >
2127 <ds : KeySomething >Some unknown tag within the ds-namespace</ds : KeySomething >
2228 <some >Chunk</some >
2329 </ds : KeyInfo >
24- <ds : Object Id =" abc123" MimeType =" image/png" Encoding =" http://www.w3.org/2000/09/xmldsig#base64" >iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=</ds : Object >
30+ <ds : Object >
31+ <some >Chunk</some >
32+ </ds : Object >
2533</ds : Signature >
You can’t perform that action at this time.
0 commit comments