SetaPDF_Signer_Pem Helper class for en- and decoding of PEM encoded data.

File: /SetaPDF v2/Signer/Pem.php

Class hierarchy

Summary

Static Methods

decode()

public static SetaPDF_Signer_Pem::decode (
string $data [, null &$label = null ]
): string

Decode PEM encoded data.

Parameters
$data : string
 
$label : null

The matched label.

encode()

public static SetaPDF_Signer_Pem::encode (
string $data, string $label
): string

Encodes data to PEM.

Parameters
$data : string
 
$label : string
 

extract()

public static SetaPDF_Signer_Pem::extract (
string $bundle
): string[]

Extracts all PEM encoded strings from a bundle.

Parameters
$bundle : string
 

extractFromFile()

public static SetaPDF_Signer_Pem::extractFromFile (
string $bundlePath
): string[]

Extracts all PEM encoded strings from a file.

Parameters
$bundlePath : string