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/src/Controller/IdentityProviderController.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 178-188 (lines=11) @@ | 
                                                            
                                    | 175 |  |     /** | 
                                                            
                                    | 176 |  |      * @return XMLSecurityKey | 
                                                            
                                    | 177 |  |      */ | 
                                                            
                                    | 178 |  |     private function loadPrivateKey() | 
                                                            
                                    | 179 |  |     { | 
                                                            
                                    | 180 |  |         $key        = new PrivateKey('/var/www/ci/certificates/sp.pem', 'default'); | 
                                                            
                                    | 181 |  |         $keyLoader  = new PrivateKeyLoader(); | 
                                                            
                                    | 182 |  |         $privateKey = $keyLoader->loadPrivateKey($key); | 
                                                            
                                    | 183 |  |  | 
                                                            
                                    | 184 |  |         $xmlSecurityKey = new XMLSecurityKey(XMLSecurityKey::RSA_SHA256, ['type' => 'private']); | 
                                                            
                                    | 185 |  |         $xmlSecurityKey->loadKey($privateKey->getKeyAsString()); | 
                                                            
                                    | 186 |  |  | 
                                                            
                                    | 187 |  |         return $xmlSecurityKey; | 
                                                            
                                    | 188 |  |     } | 
                                                            
                                    | 189 |  |  | 
                                                            
                                    | 190 |  |     /** | 
                                                            
                                    | 191 |  |      * @return string |