Метод | Описание | |
---|---|---|
addValidator ( callback $function, mixed $data ) | Add a method for validating this element. | |
getCertificates ( ) : array | Retrieve the certificates that are included in the message. | |
getSignatureKey ( ) : |
Retrieve the private key we should use to sign the message. | |
getValidatingCertificates ( ) : array | Retrieve certificates that sign this element. | |
setCertificates ( array $certificates ) | Set the certificates that should be included in the message. | |
setSignatureKey ( XMLsecurityKey $signatureKey = null ) | Set the private key we should use to sign the message. | |
validate ( |
Validate this element against a public key. |
Метод | Описание | |
---|---|---|
__construct ( DOMElement $xml = null ) | Initialize the helper class. | |
signElement ( DOMElement $root, DOMElement $insertBefore = null ) : DOMElement | null | Sign the given XML element. |
protected __construct ( DOMElement $xml = null ) | ||
$xml | DOMElement | The XML element which may be signed. |
public addValidator ( callback $function, mixed $data ) | ||
$function | callback | The function which should be called. |
$data | mixed | The data that should be included as the first parameter to the function. |
public getCertificates ( ) : array | ||
Результат | array | An array of certificates. |
public getSignatureKey ( ) : |
||
Результат | The key, or NULL if no key is specified. |
public getValidatingCertificates ( ) : array | ||
Результат | array | Array with certificates. |
public setCertificates ( array $certificates ) | ||
$certificates | array | An array of certificates. |
public setSignatureKey ( XMLsecurityKey $signatureKey = null ) | ||
$signatureKey | XMLsecurityKey |
protected signElement ( DOMElement $root, DOMElement $insertBefore = null ) : DOMElement | null | ||
$root | DOMElement | The element we should sign. |
$insertBefore | DOMElement | The element we should insert the signature node before. |
Результат | DOMElement | null |