![]() |
WSCOMUN
2.1.2
Web Services Comunes para PHP/GVHidra
|
Métodos públicos | |
__construct ($prefix='ds') | |
locateSignature ($objDoc, $pos=0) | |
createNewSignNode ($name, $value=null) | |
setCanonicalMethod ($method) | |
canonicalizeSignedInfo () | |
calculateDigest ($digestAlgorithm, $data, $encode=true) | |
validateDigest ($refNode, $data) | |
processTransforms ($refNode, $objData, $includeCommentNodes=true) | |
processRefNode ($refNode) | |
getRefNodeID ($refNode) | |
getRefIDs () | |
validateReference () | |
addReference ($node, $algorithm, $arTransforms=null, $options=null) | |
addReferenceList ($arNodes, $algorithm, $arTransforms=null, $options=null) | |
addObject ($data, $mimetype=null, $encoding=null) | |
locateKey ($node=null) | |
verify ($objKey) | |
signData ($objKey, $data) | |
sign ($objKey, $appendToNode=null) | |
appendCert () | |
appendKey ($objKey, $parent=null) | |
insertSignature ($node, $beforeNode=null) | |
appendSignature ($parentNode, $insertBefore=false) | |
add509Cert ($cert, $isPEMFormat=true, $isURL=false, $options=null) | |
appendToKeyInfo ($node) | |
getValidatedNodes () | |
Métodos públicos estáticos | |
static | generateGUID ($prefix='pfx') |
static | generate_GUID ($prefix='pfx') |
static | get509XCert ($cert, $isPEMFormat=true) |
static | staticGet509XCerts ($certs, $isPEMFormat=true) |
static | staticAdd509Cert ($parentRef, $cert, $isPEMFormat=true, $isURL=false, $xpath=null, $options=null) |
xmlseclibs.php
Copyright (c) 2007-2015, Robert Richards rrich. All rights reserved. ards @cdat azon e.org
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definición en la línea 42 del archivo XMLSecurityDSig.php.
__construct | ( | $prefix = 'ds' | ) |
string | $prefix |
Definición en la línea 91 del archivo XMLSecurityDSig.php.
add509Cert | ( | $cert, | |
$isPEMFormat = true , |
|||
$isURL = false , |
|||
$options = null |
|||
) |
string | $cert | |
bool | $isPEMFormat | |
bool | $isURL | |
null | array | $options |
Definición en la línea 1192 del archivo XMLSecurityDSig.php.
addObject | ( | $data, | |
$mimetype = null , |
|||
$encoding = null |
|||
) |
DOMElement | string | $data | |
null | string | $mimetype | |
null | string | $encoding |
Definición en la línea 797 del archivo XMLSecurityDSig.php.
addReference | ( | $node, | |
$algorithm, | |||
$arTransforms = null , |
|||
$options = null |
|||
) |
DOMDocument | $node | |
string | $algorithm | |
null | array | $arTransforms | |
null | array | $options |
Definición en la línea 754 del archivo XMLSecurityDSig.php.
addReferenceList | ( | $arNodes, | |
$algorithm, | |||
$arTransforms = null , |
|||
$options = null |
|||
) |
array | $arNodes | |
string | $algorithm | |
null | array | $arTransforms | |
null | array | $options |
Definición en la línea 774 del archivo XMLSecurityDSig.php.
appendKey | ( | $objKey, | |
$parent = null |
|||
) |
XMLSecurityKey | $objKey | |
null | DOMNode | $parent |
Definición en la línea 939 del archivo XMLSecurityDSig.php.
appendSignature | ( | $parentNode, | |
$insertBefore = false |
|||
) |
DOMNode | $parentNode | |
bool | $insertBefore |
Definición en la línea 977 del archivo XMLSecurityDSig.php.
appendToKeyInfo | ( | $node | ) |
This function appends a node to the KeyInfo.
The KeyInfo element will be created if one does not exist in the document.
DOMNode | $node | The node to append to the KeyInfo. |
Definición en la línea 1210 del archivo XMLSecurityDSig.php.
calculateDigest | ( | $digestAlgorithm, | |
$data, | |||
$encode = true |
|||
) |
string | $digestAlgorithm | |
string | $data | |
bool | $encode |
Exception |
Definición en la línea 338 del archivo XMLSecurityDSig.php.
canonicalizeSignedInfo | ( | ) |
Definición en la línea 305 del archivo XMLSecurityDSig.php.
createNewSignNode | ( | $name, | |
$value = null |
|||
) |
string | $name | |
null | string | $value |
Definición en la línea 202 del archivo XMLSecurityDSig.php.
|
static |
Generate guid
string | $prefix | Prefix to use for guid. defaults to pfx |
Definición en la línea 163 del archivo XMLSecurityDSig.php.
|
static |
Generate guid
string | $prefix | Prefix to use for guid. defaults to pfx |
Definición en la línea 146 del archivo XMLSecurityDSig.php.
|
static |
string | $cert | |
bool | $isPEMFormat |
Definición en la línea 989 del archivo XMLSecurityDSig.php.
getRefIDs | ( | ) |
getRefNodeID | ( | $refNode | ) |
getValidatedNodes | ( | ) |
This function retrieves an associative array of the validated nodes.
The array will contain the id of the referenced node as the key and the node itself as the value.
Returns: An associative array of validated nodes or null if no nodes have been validated.
Definición en la línea 1260 del archivo XMLSecurityDSig.php.
insertSignature | ( | $node, | |
$beforeNode = null |
|||
) |
This function inserts the signature element.
The signature element will be appended to the element, unless $beforeNode is specified. If $beforeNode is specified, the signature element will be inserted as the last element before $beforeNode.
DOMNode | $node | The node the signature element should be inserted into. |
DOMNode | $beforeNode | The node the signature element should be located before. |
Definición en la línea 957 del archivo XMLSecurityDSig.php.
locateKey | ( | $node = null | ) |
null | DOMNode | $node |
Definición en la línea 826 del archivo XMLSecurityDSig.php.
locateSignature | ( | $objDoc, | |
$pos = 0 |
|||
) |
DOMDocument | $objDoc | |
int | $pos |
Definición en la línea 174 del archivo XMLSecurityDSig.php.
processRefNode | ( | $refNode | ) |
processTransforms | ( | $refNode, | |
$objData, | |||
$includeCommentNodes = true |
|||
) |
$refNode | ||
DOMNode | $objData | |
bool | $includeCommentNodes |
Definición en la línea 395 del archivo XMLSecurityDSig.php.
setCanonicalMethod | ( | $method | ) |
string | $method |
Exception |
Definición en la línea 221 del archivo XMLSecurityDSig.php.
sign | ( | $objKey, | |
$appendToNode = null |
|||
) |
XMLSecurityKey | $objKey | |
null | DOMNode | $appendToNode |
Definición en la línea 896 del archivo XMLSecurityDSig.php.
signData | ( | $objKey, | |
$data | |||
) |
XMLSecurityKey | $objKey | |
string | $data |
Definición en la línea 886 del archivo XMLSecurityDSig.php.
|
static |
DOMElement | $parentRef | |
string | $cert | |
bool | $isPEMFormat | |
bool | $isURL | |
null | DOMXPath | $xpath | |
null | array | $options |
Exception |
Definición en la línea 1054 del archivo XMLSecurityDSig.php.
|
static |
string | $certs | |
bool | $isPEMFormat |
Definición en la línea 1005 del archivo XMLSecurityDSig.php.
validateDigest | ( | $refNode, | |
$data | |||
) |
$refNode | ||
string | $data |
Definición en la línea 375 del archivo XMLSecurityDSig.php.
validateReference | ( | ) |
verify | ( | $objKey | ) |
XMLSecurityKey | $objKey |
Exception |
Definición en la línea 866 del archivo XMLSecurityDSig.php.
const BASE_TEMPLATE |
Definición en la línea 59 del archivo XMLSecurityDSig.php.
const template |
Definición en la línea 54 del archivo XMLSecurityDSig.php.