Table of contents
Namespace: Com\Tecnick\Pdf\Sign\Cms
Backing type: string
File: SignatureEncoding.php line 40
Backed enum for the encoding of a signature handed to Builder::buildFromSignature(). CMS carries an ECDSA signature as the DER SEQUENCE of the two integers, while some hardware tokens and remote signing services return the fixed-width concatenation defined by IEEE P1363. The case selects which one is supplied. An RSA signature is always Der.
Tags
- since: 2026-08-24
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-sign
Cases
Der
File: SignatureEncoding.php line 45
P1363
File: SignatureEncoding.php line 50
Methods
fromLoose()
File: SignatureEncoding.php line 62
public static fromLoose(string|self $value) : self
Accepts the canonical encoding string or an enum instance (returned unchanged). Unknown values throw.
Parameters
- $value : string|self: Signature encoding name or enum case.
Tags
- throws: Exception if the value does not match a known signature encoding.
Return values
self