|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for SAML2\SignedElementHelper:
Collaboration diagram for SAML2\SignedElementHelper:Public Member Functions | |
| addValidator ($function, $data) | |
| Add a method for validating this element. More... | |
| validate (XMLSecurityKey $key) | |
| Validate this element against a public key. More... | |
| getSignatureKey () | |
| Retrieve the private key we should use to sign the message. More... | |
| setSignatureKey (XMLSecurityKey $signatureKey=null) | |
| Set the private key we should use to sign the message. More... | |
| setCertificates (array $certificates) | |
| Set the certificates that should be included in the message. More... | |
| getCertificates () | |
| Retrieve the certificates that are included in the message. More... | |
| getValidatingCertificates () | |
| Retrieve certificates that sign this element. More... | |
| validate (XMLSecurityKey $key) | |
| Validate this element against a public key. More... | |
| setCertificates (array $certificates) | |
| Set the certificates that should be included in the element. More... | |
| getCertificates () | |
| Retrieve the certificates that are included in the element (if any). More... | |
| getSignatureKey () | |
| Retrieve the private key we should use to sign the element. More... | |
| setSignatureKey (XMLSecurityKey $signatureKey=null) | |
| Set the private key we should use to sign the element. More... | |
Protected Member Functions | |
| __construct (\DOMElement $xml=null) | |
| Initialize the helper class. More... | |
| signElement (\DOMElement $root, \DOMElement $insertBefore=null) | |
| Sign the given XML element. More... | |
Private Attributes | |
| $signatureKey | |
| $certificates | |
| $validators | |
Definition at line 14 of file SignedElementHelper.php.
|
protected |
Initialize the helper class.
| \DOMElement | null | $xml | The XML element which may be signed. |
Reimplemented in SAML2\XML\md\UnknownRoleDescriptor, SAML2\XML\md\AffiliationDescriptor, SAML2\XML\md\AttributeAuthorityDescriptor, SAML2\XML\md\AuthnAuthorityDescriptor, SAML2\XML\md\EntitiesDescriptor, SAML2\XML\md\EntityDescriptor, SAML2\XML\md\IDPSSODescriptor, SAML2\XML\md\PDPDescriptor, and SAML2\XML\md\SPSSODescriptor.
Definition at line 44 of file SignedElementHelper.php.
References $xml.
| SAML2\SignedElementHelper::addValidator | ( | $function, | |
| $data | |||
| ) |
Add a method for validating this element.
This function is used for custom validation extensions
| callback | $function | The function which should be called. |
| mixed | $data | The data that should be included as the first parameter to the function. |
Definition at line 77 of file SignedElementHelper.php.
| SAML2\SignedElementHelper::getCertificates | ( | ) |
Retrieve the certificates that are included in the message.
Implements SAML2\SignedElement.
Definition at line 163 of file SignedElementHelper.php.
References $certificates.
| SAML2\SignedElementHelper::getSignatureKey | ( | ) |
Retrieve the private key we should use to sign the message.
Implements SAML2\SignedElement.
Definition at line 129 of file SignedElementHelper.php.
| SAML2\SignedElementHelper::getValidatingCertificates | ( | ) |
Retrieve certificates that sign this element.
Definition at line 173 of file SignedElementHelper.php.
| SAML2\SignedElementHelper::setCertificates | ( | array | $certificates | ) |
Set the certificates that should be included in the message.
The certificates should be strings with the PEM encoded data.
| array | $certificates | An array of certificates. |
Implements SAML2\SignedElement.
Definition at line 153 of file SignedElementHelper.php.
References $certificates.
| SAML2\SignedElementHelper::setSignatureKey | ( | XMLSecurityKey | $signatureKey = null | ) |
Set the private key we should use to sign the message.
If the key is null, the message will be sent unsigned.
| XMLSecurityKey | null | $signatureKey |
Implements SAML2\SignedElement.
Definition at line 141 of file SignedElementHelper.php.
|
protected |
Sign the given XML element.
| \DOMElement | $root | The element we should sign. |
| \DOMElement | null | $insertBefore | The element we should insert the signature node before. |
Definition at line 207 of file SignedElementHelper.php.
Referenced by SAML2\XML\md\AffiliationDescriptor\toXML().
Here is the caller graph for this function:| SAML2\SignedElementHelper::validate | ( | XMLSecurityKey | $key | ) |
Validate this element against a public key.
true is returned on success, false is returned if we don't have any signature we can validate. An exception is thrown if the signature validation fails.
| XMLSecurityKey | $key | The key we should check against. |
Implements SAML2\SignedElement.
Definition at line 98 of file SignedElementHelper.php.
References $data, $exceptions, $function, and $key.
|
private |
Definition at line 30 of file SignedElementHelper.php.
|
private |
Definition at line 23 of file SignedElementHelper.php.
|
private |
Definition at line 37 of file SignedElementHelper.php.