protected Decrypter getDecrypter(final Object samlObject,
                                     final SamlRegisteredService service,
                                     final SamlRegisteredServiceMetadataAdaptor adaptor,
                                     final DecryptionParameters decryptionParameters) {
        val decrypter = new Decrypter(decryptionParameters);
        decrypter.setRootInNewDocument(true);
        return decrypter;
    }
Gets decrypter.

@param samlObject           the saml object
@param service              the service
@param adaptor              the adaptor
@param decryptionParameters the decryption parameters
@return the decrypter
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java