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

Fonctions membres publiques statiques

static load ($key, $password='')
 
static setNamespace ($namespace)
 
static enableRFC4050Syntax ()
 
static disableRFC4050Syntax ()
 
static savePublicKey (BaseCurve $curve, array $publicKey, array $options=[])
 

Fonctions membres privées statiques

static query ($xpath, $name, $error=null, $decode=true)
 
static isolateNamespace ($xml, $ns)
 
static decodeValue ($value)
 
static extractPointRFC4050 (\DOMXPath $xpath, BaseCurve $curve)
 
static loadCurveByParam (\DOMXPath $xpath)
 
static loadCurveByParamRFC4050 (\DOMXPath $xpath)
 
static encodeXMLParameters (BaseCurve $curve, $pre, array $options=[])
 

Attributs privés statiques

static $namespace
 
static $rfc4050 = false
 

Documentation des fonctions membres

◆ decodeValue()

static decodeValue (   $value)
staticprivate

Decodes the value

Paramètres
string$value

Références $value.

◆ disableRFC4050Syntax()

static disableRFC4050Syntax ( )
static

◆ enableRFC4050Syntax()

static enableRFC4050Syntax ( )
static

Uses the XML syntax specified in https://tools.ietf.org/html/rfc4050

◆ encodeXMLParameters()

static encodeXMLParameters ( BaseCurve  $curve,
  $pre,
array  $options = [] 
)
staticprivate

Encode Parameters

Paramètres
\phpseclib3\Crypt\EC\BaseCurves\Base$curve
string$pre
array$optionsoptional
Renvoie
string|false

Références $b, EC\$curve, $options, $result, $temp, EC\$x, $xml, et phpseclib3\Crypt\EC\Formats\Keys\encodeParameters().

◆ extractPointRFC4050()

static extractPointRFC4050 ( \DOMXPath  $xpath,
BaseCurve  $curve 
)
staticprivate

Extract points from an XML document

Paramètres
\DOMXPath$xpath
\phpseclib3\Crypt\EC\BaseCurves\Base$curve
Renvoie
object[]

Références EC\$curve, et EC\$x.

◆ isolateNamespace()

static isolateNamespace (   $xml,
  $ns 
)
staticprivate

Finds the first element in the relevant namespace, strips the namespacing and returns the XML for that element.

Paramètres
string$xml
string$ns

Références $xml.

◆ load()

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

Break a public or private key down into its constituent components

public

Paramètres
string$key
string$passwordoptional
Renvoie
array

Références EC\$curve, $key, EC\$QA, $temp, phpseclib3\Crypt\EC\Formats\Keys\extractPoint(), phpseclib3\Crypt\EC\Formats\Keys\initialize_static_variables(), Strings\is_stringable(), et phpseclib3\Crypt\EC\Formats\Keys\loadCurveByParam().

◆ loadCurveByParam()

static loadCurveByParam ( \DOMXPath  $xpath)
staticprivate

Returns an instance of based on the curve parameters

Paramètres
\DomXPath$xpath
Renvoie
|false

Références $b, $base, EC\$curve, $name, $oid, $params, $query, $result, $type, et phpseclib3\Crypt\EC\Formats\Keys\extractPoint().

◆ loadCurveByParamRFC4050()

static loadCurveByParamRFC4050 ( \DOMXPath  $xpath)
staticprivate

Returns an instance of based on the curve parameters

Paramètres
\DomXPath$xpath
Renvoie
|false

Références $b, EC\$curve, $query, $result, $type, et EC\$x.

◆ query()

static query (   $xpath,
  $name,
  $error = null,
  $decode = true 
)
staticprivate

Case-insensitive xpath query

Paramètres
\DOMXPath$xpath
string$name
string$erroroptional
bool$decodeoptional
Renvoie

Références $name, $names, $query, et $result.

◆ savePublicKey()

static savePublicKey ( BaseCurve  $curve,
array  $publicKey,
array  $options = [] 
)
static

Convert a public key to the appropriate format

Paramètres
\phpseclib3\Crypt\EC\BaseCurves\Base$curve

Références EC\$curve, $namespace, $options, et phpseclib3\Crypt\EC\Formats\Keys\initialize_static_variables().

◆ setNamespace()

static setNamespace (   $namespace)
static

Sets the namespace. dsig11 is the most common one.

Set to null to unset. Used only for creating public keys.

Paramètres
string$namespace

Références $namespace, et XML\$namespace.

Documentation des champs

◆ $namespace

$namespace
staticprivate

Référencé par XML\setNamespace().

◆ $rfc4050

$rfc4050 = false
staticprivate

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