}
// Entity used for decrypting of encrypted XML parts
// Extracts EncryptedKey from the encrypted XML using the encryptedKeyResolver and attempts to decrypt it
// using private keys supplied by the resolver.
KeyInfoCredentialResolver resolver = new StaticKeyInfoCredentialResolver(encryptionCredential);
Decrypter decrypter = new Decrypter(null, resolver, encryptedKeyResolver);
decrypter.setRootInNewDocument(true);
samlContext.setLocalDecrypter(decrypter);