|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for SimpleSAML\XML\Signer:Public Member Functions | |
| __construct ($options=array()) | |
| Constructor for the metadata signer. More... | |
| loadPrivateKeyArray ($privatekey) | |
| Set the private key from an array. More... | |
| loadPrivateKey ($file, $pass=null, $full_path=false) | |
| Set the private key. More... | |
| loadPublicKeyArray ($publickey) | |
| Set the public key / certificate we should include in the signature. More... | |
| loadCertificate ($file, $full_path=false) | |
| Set the certificate we should include in the signature. More... | |
| setIDAttribute ($idAttrName) | |
| Set the attribute name for the ID value. More... | |
| addCertificate ($file, $full_path=false) | |
| Add an extra certificate to the certificate chain in the signature. More... | |
Private Attributes | |
| $idAttrName = '' | |
| $privateKey = false | |
| $certificate = '' | |
| $extraCertificates = array() | |
Definition at line 21 of file Signer.php.
| SimpleSAML\XML\Signer::__construct | ( | $options = array() | ) |
Constructor for the metadata signer.
You can pass an list of options as key-value pairs in the array. This allows you to initialize a metadata signer in one call.
The following keys are recognized:
| array | $options | Associative array with options for the constructor. Defaults to an empty array. |
Definition at line 61 of file Signer.php.
References PHPMailer\PHPMailer\$options, $pass, SimpleSAML\XML\Signer\loadCertificate(), SimpleSAML\XML\Signer\loadPrivateKey(), SimpleSAML\XML\Signer\loadPrivateKeyArray(), and SimpleSAML\XML\Signer\loadPublicKeyArray().
Here is the call graph for this function:| SimpleSAML\XML\Signer::addCertificate | ( | $file, | |
$full_path = false |
|||
| ) |
Add an extra certificate to the certificate chain in the signature.
Extra certificates will be added to the certificate chain in the order they are added.
| string | $file | The file which contains the certificate, relative to the cert-directory. |
| bool | $full_path | Whether the filename found in the configuration contains the full path to the private key or not. Default to false. |
Exception
Definition at line 236 of file Signer.php.
References SimpleSAML\XML\Signer\$certificate, and SimpleSAML\Utils\Config\getCertPath().
Here is the call graph for this function:| SimpleSAML\XML\Signer::loadCertificate | ( | $file, | |
$full_path = false |
|||
| ) |
Set the certificate we should include in the signature.
If this function isn't called, no certificate will be included. Will throw an exception if unable to load the certificate.
| string | $file | The file which contains the certificate. The path is assumed to be relative to the cert-directory. |
| bool | $full_path | Whether the filename found in the configuration contains the full path to the private key or not. Default to false. |
Exception
Definition at line 189 of file Signer.php.
References SimpleSAML\Utils\Config\getCertPath().
Referenced by SimpleSAML\XML\Signer\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:| SimpleSAML\XML\Signer::loadPrivateKey | ( | $file, | |
$pass = null, |
|||
$full_path = false |
|||
| ) |
Set the private key.
Will throw an exception if unable to load the private key.
| string | $file | The file which contains the private key. The path is assumed to be relative to the cert-directory. |
| string | null | $pass | The passphrase on the private key. Pass no value or NULL if the private key is unencrypted. |
| bool | $full_path | Whether the filename found in the configuration contains the full path to the private key or not. Default to false. |
Exception
Definition at line 126 of file Signer.php.
References $pass, SimpleSAML\Utils\Config\getCertPath(), and SimpleSAML\XML\Signer\loadPrivateKeyArray().
Referenced by SimpleSAML\XML\Signer\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:| SimpleSAML\XML\Signer::loadPrivateKeyArray | ( | $privatekey | ) |
Set the private key from an array.
This function loads the private key from an array matching what is returned by SimpleSAML_Utilities::loadPrivateKey(...).
| array | $privatekey | The private key. |
Definition at line 100 of file Signer.php.
References RobRichards\XMLSecLibs\XMLSecurityKey\RSA_SHA256.
Referenced by SimpleSAML\XML\Signer\__construct(), and SimpleSAML\XML\Signer\loadPrivateKey().
Here is the caller graph for this function:| SimpleSAML\XML\Signer::loadPublicKeyArray | ( | $publickey | ) |
Set the public key / certificate we should include in the signature.
This function loads the public key from an array matching what is returned by SimpleSAML_Utilities::loadPublicKey(...).
| array | $publickey | The public key. |
Exception
Definition at line 163 of file Signer.php.
Referenced by SimpleSAML\XML\Signer\__construct().
Here is the caller graph for this function:| SimpleSAML\XML\Signer::setIDAttribute | ( | $idAttrName | ) |
Set the attribute name for the ID value.
| string | $idAttrName | The name of the attribute which contains the id. |
Definition at line 217 of file Signer.php.
References SimpleSAML\XML\Signer\$idAttrName.
|
private |
Definition at line 36 of file Signer.php.
Referenced by SimpleSAML\XML\Signer\addCertificate().
|
private |
Definition at line 42 of file Signer.php.
|
private |
Definition at line 26 of file Signer.php.
Referenced by SimpleSAML\XML\Signer\setIDAttribute().
|
private |
Definition at line 31 of file Signer.php.