src/Surfnet/StepupGateway/GatewayBundle/Saml/AssertionSigningService.php 1 location
|
@@ 55-65 (lines=11) @@
|
| 52 |
|
/** |
| 53 |
|
* @return XMLSecurityKey |
| 54 |
|
*/ |
| 55 |
|
private function loadPrivateKey() |
| 56 |
|
{ |
| 57 |
|
$key = $this->identityProvider->getPrivateKey(PrivateKey::NAME_DEFAULT); |
| 58 |
|
$keyLoader = new PrivateKeyLoader(); |
| 59 |
|
$privateKey = $keyLoader->loadPrivateKey($key); |
| 60 |
|
|
| 61 |
|
$xmlSecurityKey = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, ['type' => 'private']); |
| 62 |
|
$xmlSecurityKey->loadKey($privateKey->getKeyAsString()); |
| 63 |
|
|
| 64 |
|
return $xmlSecurityKey; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
/** |
| 68 |
|
* @return string |
tests/features/bootstrap/ServiceProviderContext.php 1 location
|
@@ 141-150 (lines=10) @@
|
| 138 |
|
return $ip; |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
private static function loadPrivateKey(PrivateKey $key) |
| 142 |
|
{ |
| 143 |
|
$keyLoader = new PrivateKeyLoader(); |
| 144 |
|
$privateKey = $keyLoader->loadPrivateKey($key); |
| 145 |
|
|
| 146 |
|
$key = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, ['type' => 'private']); |
| 147 |
|
$key->loadKey($privateKey->getKeyAsString()); |
| 148 |
|
|
| 149 |
|
return $key; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
private function getSession() |
| 153 |
|
{ |