pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\KeyLoader\KeyLoaderInterface Interface Reference

Static Public Member Functions

static loadPrivate ($data, $passphrase= '')
 
static loadPublic ($data)
 

Detailed Description

Interface for a key loader.

This interface can be used to load both public and private keys.

Definition at line 20 of file KeyLoaderInterface.php.

Member Function Documentation

static fpoirotte\Pssht\KeyLoader\KeyLoaderInterface::loadPrivate (   $data,
  $passphrase = '' 
)
static

Load a private key.

Parameters
string$dataData representing the private key to load.
string$passphrase(optional) Passphrase for the private key.
Return values
KeyInterfacePrivate key as loaded from the data.
static fpoirotte\Pssht\KeyLoader\KeyLoaderInterface::loadPublic (   $data)
static

Load a public key.

Parameters
string$dataData representing the public key to load.
Return values
KeyInterfacePublic key as loaded from the data.

The documentation for this interface was generated from the following file: