depage-fs
Loading...
Searching...
No Matches
PrivateSshKey Class Reference

Detailed Description

Definition at line 7 of file PrivateSshKey.php.

Public Member Functions

 extractPublicKey ($tmpDir)
 from http://stackoverflow.com/questions/5524121/converting-an-openssl-generated-rsa-public-key-to-openssh-format-php
Public Member Functions inherited from PublicSshKey
 __construct ($data, $tmpDir=false)
 __destruct ()
 __toString ()
 clean ()
 file_put_contents ($filename, $data, $flags=0, $context=null)
 Hook, allows overriding of file_put_contents function.

Protected Member Functions

 parse ($keyString)
 sshEncodeBuffer ($buffer)
 from http://stackoverflow.com/questions/5524121/converting-an-openssl-generated-rsa-public-key-to-openssh-format-php
 openssl_pkey_get_private ($key, $passphrase='')
 hook, allows overriding openssl_pkey_get_private
Protected Member Functions inherited from PublicSshKey
 createTmpFile ($tmpDir, $data)

Additional Inherited Members

Protected Attributes inherited from PublicSshKey
 $key = null
 $path = null
 $temporary = false

Member Function Documentation

◆ extractPublicKey()

extractPublicKey ( $tmpDir)

Definition at line 22 of file PrivateSshKey.php.

◆ openssl_pkey_get_private()

openssl_pkey_get_private ( $key,
$passphrase = '' )
protected

Definition at line 54 of file PrivateSshKey.php.

◆ parse()

parse ( $keyString)
protected

Reimplemented from PublicSshKey.

Definition at line 9 of file PrivateSshKey.php.

◆ sshEncodeBuffer()

sshEncodeBuffer ( $buffer)
protected

Definition at line 40 of file PrivateSshKey.php.


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