code: protected KeyEncryptionParameters getKeyEncryptionParameters(final Object samlObject,
                                                                   final SamlRegisteredService service,
                                                                   final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                                                   final Credential credential) {
          val keyEncParams = new KeyEncryptionParameters();
          keyEncParams.setRecipient(adaptor.getEntityId());
          keyEncParams.setEncryptionCredential(credential);
          keyEncParams.setAlgorithm(EncryptionConstants.ALGO_ID_KEYTRANSPORT_RSAOAEP);
          return keyEncParams;
      }
docs: Gets key encryption parameters.
  
  @param samlObject the saml object
  @param service    the service
  @param adaptor    the adaptor
  @param credential the credential
  @return the key encryption parameters