Flow PHP

SFTPPrivateKey implements SFTPCredential

Read onlyYes
FinalYes

Interfaces

SFTPCredential

Methods

__construct()  : mixed
login()  : bool
normalize()  : array{private_key: string, passphrase: null|string}

Methods

__construct()

public __construct(string $pem[, string|null $passphrase = null ]) : mixed
Parameters
$pem : string
$passphrase : string|null = null

login()

public login(SFTP $sftp, string $user) : bool
Parameters
$sftp : SFTP
$user : string
Tags
throws
InvalidArgumentException

when the PEM is not a private key

Return values
bool

normalize()

public normalize() : array{private_key: string, passphrase: null|string}
Return values
array{private_key: string, passphrase: null|string}
On this page

Search results