SkipReason

Machine-readable classification of a discarded revocation URL, passed to the $onSkip observer alongside the human-readable message.

Namespace: Com\Tecnick\Pdf\Sign\Ltv

enum SkipReason: string

Source: src/Ltv/SkipReason.php:41

Machine-readable classification of a discarded revocation URL, passed to the $onSkip observer alongside the human-readable message.

Revoked stands apart from the rest: it is an answer the responder gave, not a failure to obtain one.

Cases

  • Revoked = 'revoked': The responder or the CRL states that the certificate is revoked.
  • Invalid = 'invalid': The answer was received but rejected: malformed, unsigned, stale, or for another certificate.
  • Unreachable = 'unreachable': The transport did not produce an answer.
  • Duplicate = 'duplicate': The answer was byte-identical to one an earlier URL already produced.
  • NotAttempted = 'not-attempted': No lookup was attempted, the material needed to check the answer not being available.

Methods

fromThrowable()

Classify the failure a fetch callback raised.

A library Exception means the answer arrived and was refused; anything else came out of the host’s transport and means no answer arrived.

public static fromThrowable(Throwable $error): self

Parameters:

  • $error (Throwable)

Returns: self

Source: src/Ltv/SkipReason.php:76