51        return $this->identityProvider->isAssertionEncryptionRequired()
 
   52            || $this->serviceProvider->isAssertionEncryptionRequired();
 
   62        $decryptionKeys = $this->privateKeyLoader->loadDecryptionKeys($this->identityProvider, $this->serviceProvider);
 
   63        $blacklistedKeys = $this->identityProvider->getBlacklistedAlgorithms();
 
   64        if (is_null($blacklistedKeys)) {
 
   65            $blacklistedKeys = $this->serviceProvider->getBlacklistedAlgorithms();
 
   73                $this->logger->debug(sprintf(
'Decrypted Assertion with key "#%d"', 
$index));
 
   75                return $decryptedAssertion;
 
   76            } 
catch (\Exception $e) {
 
   77                $this->logger->debug(sprintf(
 
   78                    'Could not decrypt assertion with key "#%d", "%s" thrown: "%s"',
 
   87            'Could not decrypt the assertion, tried with "%d" keys. See the debug log for more information',
 
   88            count($decryptionKeys)
 
An exception for terminatinating execution or to throw for unit testing.
isEncryptionRequired()
Allows for checking whether either the SP or the IdP requires assertion encryption.
__construct(LoggerInterface $logger, IdentityProvider $identityProvider, ServiceProvider $serviceProvider, PrivateKeyLoader $privateKeyLoader)
decrypt(EncryptedAssertion $assertion)
Basic configuration wrapper.
Basic Configuration Wrapper.
getAssertion(XMLSecurityKey $inputKey, array $blacklist=array())
Retrieve the assertion.
Describes a logger instance.