PHP Class pharext\Openssl\PrivateKey

Afficher le fichier Open project: m6w6/pharext Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $file, string $password ) Read a private key
exportPublicKey ( string $file ) Export the public key to a file
sign ( Phar $package ) Sign the PHAR

Method Details

__construct() public méthode

Read a private key
public __construct ( string $file, string $password )
$file string
$password string

exportPublicKey() public méthode

Export the public key to a file
public exportPublicKey ( string $file )
$file string

sign() public méthode

Sign the PHAR
public sign ( Phar $package )
$package Phar