abstract class PublicKeyLoader (View source)

PublicKeyLoader

Methods

static AsymmetricKey
load(string|array $key, string $password = false)

Loads a public or private key

PrivateKey
loadPrivateKey(string|array $key, string $password = false)

Loads a private key

PublicKey
loadPublicKey(string|array $key)

Loads a public key

AsymmetricKey
loadParameters(string|array $key)

Loads parameters

Details

static AsymmetricKey load(string|array $key, string $password = false)

Loads a public or private key

Parameters

string|array $key
string $password optional

Return Value

AsymmetricKey

PrivateKey loadPrivateKey(string|array $key, string $password = false)

Loads a private key

Parameters

string|array $key
string $password optional

Return Value

PrivateKey

PublicKey loadPublicKey(string|array $key)

Loads a public key

Parameters

string|array $key

Return Value

PublicKey

AsymmetricKey loadParameters(string|array $key)

Loads parameters

Parameters

string|array $key

Return Value

AsymmetricKey