SignatureEncoding

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.

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

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