protected Encrypter getEncrypter(final Object samlObject,
                                     final SamlRegisteredService service,
                                     final SamlRegisteredServiceMetadataAdaptor adaptor,
                                     final KeyEncryptionParameters keyEncParams,
                                     final DataEncryptionParameters dataEncParams) {
        val entityId = adaptor.getEntityId();
        val className = samlObject.getClass().getName();
        val encrypter = new Encrypter(dataEncParams, keyEncParams);
        encrypter.setKeyPlacement(Encrypter.KeyPlacement.PEER);
        LOGGER.debug("Attempting to encrypt [{}] for [{}] with key placement of [{}]", className, entityId, encrypter.getKeyPlacement());
        return encrypter;
    }
Gets encrypter.

@param samlObject    the saml object
@param service       the service
@param adaptor       the adaptor
@param keyEncParams  the key enc params
@param dataEncParams the data enc params
@return the encrypter
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java