Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe OpenSSH

Fonctions membres publiques statiques

static setComment ($comment)
 
static load ($key, $password='')
 
static setBinaryOutput ($enabled)
 

Fonctions membres protégées statiques

static wrapPrivateKey ($publicKey, $privateKey, $password, $options)
 

Attributs protégés statiques

static $comment = 'phpseclib-generated-key'
 
static $binary = false
 

Fonctions membres privées statiques

static checkType ($candidate)
 

Documentation des fonctions membres

◆ checkType()

static checkType (   $candidate)
staticprivate

Checks to see if the type is valid

private

Paramètres
string$candidate

◆ load()

static load (   $key,
  $password = '' 
)
static

Break a public or private key down into its constituent components

$type can be either ssh-dss or ssh-rsa

public

Paramètres
string$key
string$password
Renvoie
array

Références OpenSSH\$comment, $key, $parts, $type, EncoderInterface\decode(), Strings\is_stringable(), Strings\shift(), et Strings\unpackSSH2().

◆ setBinaryOutput()

static setBinaryOutput (   $enabled)
static

Toggle between binary and printable keys

Printable keys are what are generated by default. These are the ones that go in $HOME/.ssh/authorized_key.

public

Paramètres
bool$enabled

Références $enabled.

◆ setComment()

static setComment (   $comment)
static

Sets the default comment

public

Paramètres
string$comment

Références OpenSSH\$comment.

◆ wrapPrivateKey()

static wrapPrivateKey (   $publicKey,
  $privateKey,
  $password,
  $options 
)
staticprotected

Wrap a private key appropriately

public

Paramètres
string$publicKey
string$privateKey
string$password
array$options
Renvoie
string

Références OpenSSH\$comment, $i, $key, $options, $password, Base64\encode(), Strings\packSSH2(), et Random\string().

Documentation des champs

◆ $binary

$binary = false
staticprotected

◆ $comment

$comment = 'phpseclib-generated-key'
staticprotected

La documentation de cette classe a été générée à partir du fichier suivant :