Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JKeychain
+ Graphe d'héritage de JKeychain:

Fonctions membres publiques

 createPassphraseFile ($passphrase, $passphraseFile, $privateKeyFile, $privateKeyPassphrase)
 
 deleteValue ($path)
 
 loadKeychain ($keychainFile, $passphraseFile, $publicKeyFile)
 
 saveKeychain ($keychainFile, $passphraseFile, $publicKeyFile)
 
- Fonctions membres publiques hérités de Registry
 __construct ($data=null)
 
 __clone ()
 
 __toString ()
 
 count ()
 
 jsonSerialize ()
 
 def ($key, $default='')
 
 exists ($path)
 
 get ($path, $default=null)
 
 getIterator ()
 
 loadArray ($array, $flattened=false, $separator=null)
 
 loadObject ($object)
 
 loadFile ($file, $format='JSON', $options=array())
 
 loadString ($data, $format='JSON', $options=array())
 
 merge ($source, $recursive=false)
 
 extract ($path)
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 set ($path, $value, $separator=null)
 
 append ($path, $value)
 
 remove ($path)
 
 toArray ()
 
 toObject ()
 
 toString ($format='JSON', $options=array())
 
 flatten ($separator=null)
 

Champs de données

 $method = 'aes-128-cbc'
 
 $iv = '1234567890123456'
 
- Champs de données hérités de Registry
 $separator = '.'
 

Fonctions membres protégées

 getPassphraseFromFile ($passphraseFile, $publicKeyFile)
 
- Fonctions membres protégées hérités de Registry
 bindData ($parent, $data, $recursive=true, $allowNull=true)
 
 asArray ($data)
 
 toFlatten ($separator=null, $data=null, &$array=array(), $prefix='')
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de Registry
static getInstance ($id)
 
- Attributs protégés hérités de Registry
 $data
 
 $initialized = false
 
- Attributs protégés statiques hérités de Registry
static $instances = array()
 

Description détaillée

Keychain Class

Depuis
3.1.4
Obsolète:
4.0 Deprecated without replacement

Documentation des fonctions membres

◆ createPassphraseFile()

createPassphraseFile (   $passphrase,
  $passphraseFile,
  $privateKeyFile,
  $privateKeyPassphrase 
)

Create a passphrase file

Paramètres
string$passphraseThe passphrase to store in the passphrase file.
string$passphraseFilePath to the passphrase file to create.
string$privateKeyFilePath to the private key file to encrypt the passphrase file.
string$privateKeyPassphraseThe passphrase for the private key.
Renvoie
boolean Result of writing the passphrase file to disk.
Depuis
3.1.4
Exceptions
RuntimeException

◆ deleteValue()

deleteValue (   $path)

Delete a registry value (very simple method)

Paramètres
string$pathRegistry Path (e.g. joomla.content.showauthor)
Renvoie
mixed Value of old value or boolean false if operation failed
Depuis
3.1.4

Références $data, $i, $n, $path, et null.

◆ getPassphraseFromFile()

getPassphraseFromFile (   $passphraseFile,
  $publicKeyFile 
)
protected

Get the passphrase for this keychain

Paramètres
string$passphraseFileThe file containing the passphrase to encrypt and decrypt.
string$publicKeyFileThe file containing the public key to decrypt the passphrase file.
Renvoie
string The passphrase in from passphraseFile
Depuis
3.1.4
Exceptions
RuntimeException

◆ loadKeychain()

loadKeychain (   $keychainFile,
  $passphraseFile,
  $publicKeyFile 
)

Load a keychain file into this object.

Paramètres
string$keychainFilePath to the keychain file.
string$passphraseFileThe path to the passphrase file to decript the keychain.
string$publicKeyFileThe file containing the public key to decrypt the passphrase file.
Renvoie
boolean Result of loading the object.
Depuis
3.1.4
Exceptions
RuntimeException

Références method.

Référencé par KeychainManager\loadKeychain().

◆ saveKeychain()

saveKeychain (   $keychainFile,
  $passphraseFile,
  $publicKeyFile 
)

Save this keychain to a file.

Paramètres
string$keychainFileThe path to the keychain file.
string$passphraseFileThe path to the passphrase file to encrypt the keychain.
string$publicKeyFileThe file containing the public key to decrypt the passphrase file.
Renvoie
boolean Result of storing the file.
Depuis
3.1.4
Exceptions
RuntimeException

Références $data, et method.

Documentation des champs

◆ $iv

$iv = '1234567890123456'

◆ $method

$method = 'aes-128-cbc'

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