Form Security using SlingPostServlet

Hi
I've been looking at the CQ5 Forms capability using the Sling Post Servlet.
So the way it works is that the browser makes a Post to /etc/forms/company/my_form
The sling Post servlet creates a node in that location.
Lets say you allow anonymous users to Submit a form, but you want to keep responses secure.
I noticed that you need to grant anonymous users read access to that node (as well as create and modify) for the Sling Post Servlet to create the new content.
Is it a problem to allow anonymous users read access to data which might be personal data?  How do you typically get around this?
I was thinking maybe a workflow process to copy the data and delete from /etc/forms?
Any advice or thoughts is appreciated!
Thanks

Hi,
First of all the best practice is not to give anonymous user modify and delete permission to any node in the repository. Instead you can use
loginAdministratvie function to perform some operation on the nodes in the Sling Post Servlet, but you need to remember to logout from this session in the servlet after all operation done on the nodes. Please take a look to the presentation made by Angle Schreiber from last adaptTo technical meetup about security issues and loginAdministrative functionality:
http://www.pro-vision.de/content/medialib/pro-vision/production/adaptto/2012/adaptto2012-s ecurity-issues-with-loginadministrative-angela-schr/_jcr_content/renditions/rendition.file /adaptto2012-security-issues-with-loginadministrative-angela-schreiber.pdf
To be more secure you can create for example a user which will have only read, write and delete permissions on the /etc/form node, then in the servlet you can use loginAdministrative function to login as a admin, then interpersonate to that specific user, make some node operation, back to admin and finally logout. It is more secure solution because you are performing some node operation using user which have only permissions to some specific nodes, but not to the whole repository when you are using admin account.
I hope it is clear.
Regards,
kasq

Similar Messages

  • Exporting Planning forms security using exportsecurity.cmd

    Is there a way to export only the planning forms security info using exportsecurity.cmd ? I am using Planning 9.3.1.2.
    I can export dimension level security, group level and user level. I am not able to figure out a way to export only the form security.
    Any suggestions?

    If I remember correctly you can import security on forms but it doesn't seem to export it (my mind may be playing tricks and I could be wrong), from 11 I know you can definitely import and export permissions on forms.
    If it is not possible you can always run a query against the planning application relational repository for example
    select formname.object_name as "Formname", username.object_name as "Username/Group",
    case acc.access_mode
    when 1 then 'Read'
    when 3 then 'Write'
    when -1 then 'None'
    end as "Access"
    from
    hsp_access_control acc, hsp_form form, hsp_object formname, hsp_object username
    where acc.object_id = form.form_id
    and formname.object_id = form.form_id
    and acc.user_id = username.object_id
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • CRM 2011: Can you control which form is used based not security roles, but on a field value?

    I see that you can control which form is used based on security roles, but can you control it based on other field values?  I'd like a new record to use a different form until a given status is updated.  I have a status of draft and active. So
    it would be nice if I could use form1 for those in draft, form2 for those that are active.  But I only see where you can control that via the security roles.
    I can code all of this via JavaScript, but having the ability to use two separate forms would be nice.  Is that even possible.
    Best regards,
    Jon Gregory Rothlander

    Hello,
    Recheck following article - http://gonzaloruizcrm.blogspot.com/2014/11/avoiding-form-reload-when-switching-crm.html
    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

  • Security Exception in Oracle Forms when using with JRE.

    Hi,
    I am am getting an exception whenl I try to dispose a message box(FWindow) received as a popup from an Oracle form page(configured using JRE).
    When I hit over the OK/Cancel button to dispose off the messagebox,it is not I get the following error.
    Exception in thread "AWT-EventQueue-2" java.lang.SecurityException: this KeyboardFocusManager is not installed in the current thread's context
         at java.awt.KeyboardFocusManager.getGlobalFocusOwner(Unknown Source)
         at java.awt.KeyboardFocusManager.processSynchronousLightweightTransfer(Unknown Source)
         at sun.awt.windows.WComponentPeer.processSynchronousLightweightTransfer(Native Method)
         at sun.awt.windows.WComponentPeer.requestFocus(Unknown Source)
         at java.awt.Component.requestFocusHelper(Unknown Source)
         at java.awt.Component.requestFocusHelper(Unknown Source)
         at java.awt.Component.requestFocus(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.requestFocus(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processMousePressed(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp.mousePressed(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Proxy.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    I am able to dispose the messagebox, when I configure the oracle form with Jinitiator, the issue happens only with JRE.
    These are the configurations I use.
    10g Release2
    Windows XP Professional Version 2002, Service Pack 3
    IE version 6.0.2900.5512.xpsp_sp3_gdr.090804-1435
    JInit-JInitiator 1.3.1.22, Sun JRE- 1.6.0_17
    I am working on Developer suite.
    Privilege: Windows Administrator
    Kindly guide.
    Thanks & Regards
    Sunil

    Hi Sunil,
    Did you ever find a fix for this problem?
    I'm having exactly the same issue.
    I have an oracle form with a java bean that runs against J Initiator 1.3.1.28, and it works fine, with J Initiator. The java code was compiled against JDK 1.3.
    My form now uses the Sun JRE 1.6, update 16. I've recompiled the java code against JDK 1.6.
    And now when the java code sends an event to the form and I show an alert I get the same error you were getting:
    Exception in thread "AWT-EventQueue-2" java.lang.SecurityException: this KeyboardFocusManager is not installed in the current thread's context.
    I recompiled the java code against JDK 1.3, and ran it through the Sun JVM 1.6, and I still get the error.
    Any idea how to fix this?
    Regards,
    Chris.

  • Safari Version 6.0.2 (7536.26.17)  Yahoo security - Using Yahoo search engine: while logged into Yahoo my entire screen gets taken over by a full page popup add/i've cleared histories

    Safari Version 6.0.2 (7536.26.17)
    I believe my problems stem from the public side of Yahoo where I go to open my Yahoo Email account, and/or from the file I get in
    email.
    Yahoo security - Using Yahoo search engine: while logged into Yahoo my entire screen gets taken over by a full page popup add/i've cleared histories & cookies & flash cookies but the problem returns, sometimes right away, sometime on the next log on … what to do … . I’ve heard of this problem being called a form of ‘yahoo mail hijacking’.
    Yahoo is better than Google right now. While using Google as a search engine and logged into Yahoo-mail the page elevator (up& down) bar actually freezes, a dead giveaway that something is up. So far nothing I do will stop the page elevator from freezing when I'm using the Google search engine. I either have to use the Yahoo or Bing search engines.
    MacPro w/OS X ver 10.7.5 & Norton Internet Security 5 for Mac ver 12.4 (73) /  I update Norton security at least 3-times a day. I thing I get the bug when I log onto my Yahoo Email and go through my emails. When problems get constant I Reset Safari then run flush to burn flash cookies. What else can I do?
    Yahoo wanted $58-bucks for a consult, that’s ********. You would think Yahoo would want to be advised of ongoing Yahoo Searchengine / Yahoo Email problems, and want to help there users with ongoing problems. Sure they will help me with their problem for $58, and probably even suggest even less than what I am already doing on my own.

    It's hard to tell from your description what is going on, but try this first.
    Quit Safari. If it won't quit in the usual way, select
     ▹ Force Quit...
    from the menu bar, then select Safari from the list and press return.
    Relaunch Safari by holding down the shift  key and clicking its icon in the Dock. That will stop the bad page from reloading automatically. From the menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove all website data
    to get rid of any cookies or other data left by the server. Open your Downloads folder and delete anything you don't recognize.
    Also get rid of the useless Norton crapware, after backing up all data.
    Uninstalling your Norton product for Mac

  • Forms security - "Not Available" user / group

    Hi,
    In form security I have a user / group with the name "Not Available". I don't know how it got there and I can't remove it (An error occurred while processing this page. Check the log for details.) I have very restricted access so I can't run tomcat in window mode to check the log.
    Any tips to remove this users? (Planning 9.2)
    Regards

    I have found whats causing this problem. When I use the deprovisioning option in HSS on this users they become "Not Available" in the Assign Access option of the form. Why, I don't know. I thought they would be automaticaly removed. The planning database was copied from development environment to production environment while the Planning service was stopped and then started after database copy, after that do I have to make any kind of registration?

  • Can LCM import form security?

    We are on Hyperion Planning 11.1.2 and used LCM to migrate and app from UAT to Prod. We migrated all artifacts over, but the form security is not there. We see the groups when we try to add access, but the access is not on the form folders themselves as they are in UAT. Is LCM able to import the security for forms like the dimension security? Thanks in advance.

    Yes. LCM can import form and form folder security. I tend to export to the file system first. That way, I can see exactly what's in the XML files, plus I have an arcihve of what got migrated.
    If you export to the file system first, you should see form and form folder security in the following directory:
    resource\Security\Access Permissions
    In that folder there will be a Users.xml file, and also a directory for Groups. If you look in the XML, you should see security assigned for forms and folders.
    Hope this helps,
    - Jake

  • Unable to do data form export using FormDEfUtil.cmd

    Hi all,
    I'm not able to do the data form export using FormDEfUtil.cmd.
    D:\hyperion\planning\bin\FormDEfUtil.cmd export <formname> localhost admin password <appname>
    I get this below message when tried the above script in cmd prompt.
    usage: HspFormDefUtil <import/export> <filename/formname/-all> <server> <username> <password> <application>.
    Any help is appreciable.
    Thanks!!
    Rev

    It works..but still i dint get the .xml file..when checked the log,it is updated as below,
    hbrserver.log:
    +2010-08-17 07:54:44,346 WARN main com.hyperion.hbr.security.HbrSecurityAPI - Error retrieving user by identity+
    FormDefUtil.log:
    Single sign on validation failed.
    there could be any prob in authentication.??
    Thanks!!
    Rev

  • How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios?

    How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios? I have all the apps in Creative Cloud by the way.

    If you already purchased it with the same Apple ID, then you will not be re-charged.

  • Can you create a form not using a php script?

    I need to create a contact us form on my website using DW and have researched how and understand the easiest way is using a php script.  Unfortuntately, my webhost server does not support this and will charge me an arm and a leg in order to to do it.  Is there another way to have a functioning contact form not using a php script?

    Yes and no.
    You could use a mailto link for your form action instead of a PHP script.
    There are several problems with this method though. First, when you do that, you are at the mercy of the viewer's computer set-up. Mailto links use whatever email client is installed on the machine in order to send the message. Public computers (libraries, colleges, etc) almost never have an email client installed, so when a viewer on one of those machines clicks the link, nothing happens. Secondly, your email address is open for spam harvesters, so you may end up with enlargement and nigerian scam emails flooding your inbox.
    Since your provider doesn't give you a way to do it the right way on your server, you may want to look into email form services online and see if they are less expensive than your current alternative.

  • How can i convert my encrypting file to a applet form to use it in IE?

    Hi, i m a little new in JAVA.
    I searched about encryting methods. And i decide to built a encrypter that reads a string from a textbox and writes the encrypted form to another textbox.. this code is working in eclipse. but i cannot convert this to applet form to use it in internet explorer .. i dont know why this not work. It says : "Applet password notinited" -> How can i solve this problem ???
    Please HELP ME ! Thanks alot..
    package yeni;
    import java.applet.*;
    import java.awt.*;
    import java.lang.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    public class password extends java.applet.Applet
         SecretKeySpec keyS;
         SecretKey key;
         SecretKey key_s;
         String encrypted;
         String decrypted;
         KeyGenerator keyGen;
         Mac mac;
         byte[] utf8;
         byte[] digest;
         private Button b_open;
         private Button b_next;
         private TextField t_userID;
         private TextField t_password;
         private TextField re_userID;
         private TextField re_password;
         private Label l_title;
         private String root;
         private int col;
         private String title;
         private String buttontxt;
         private int bgcolor;
         private int fsize;
         private String fface;
         private String errorURL;
         /* Init */
         public void init()
              String att = getParameter("root");
              root = (att == null) ? this.getDocumentBase().toString() : att;
              att = getParameter("textfield");
              col = (att == null) ? 20 : (Integer.valueOf(att).intValue());
              att = getParameter("font_size");
              fsize = (att == null) ? 11 : (Integer.valueOf(att).intValue());
              att = getParameter("font_face");
              fface = (att == null) ? "Arial" : att;
              att = getParameter("color");
              bgcolor = (att == null) ? Color.white.getRGB() : (Integer.parseInt(att, 16));
              att = getParameter("title");
              title = (att == null) ? "" : att;
              att = getParameter("button");
              buttontxt = (att == null) ? "OPEN" : att;
              att = getParameter("wrong");
              errorURL = (att == null) ? "" : att;
              setFont(new Font(fface, Font.PLAIN, fsize));
              setBackground(new Color(bgcolor));
              b_open = new Button(buttontxt);
              b_next = new Button("NEXT");
              t_userID = new TextField(col);
              t_password = new TextField(col);
              re_userID = new TextField(col);
              re_password = new TextField(col);
              l_title = new Label(title);
              t_userID.setBackground(Color.white);
              t_password.setBackground(Color.white);
              t_password.setEchoCharacter('*');
              re_userID.setBackground(Color.YELLOW);
              re_password.setBackground(Color.YELLOW);
    //          re_password.setEchoCharacter('-');
              setLayout(new FlowLayout(FlowLayout.CENTER,3,3));
              if(title.length()>0)
                   add(l_title);
              add(t_userID);
              add(t_password);
              add(b_next);          
              add(b_open);
              add(re_userID);
              add(re_password);
              t_userID.setText("User ID");
              t_password.setText("Password");
              //re_password.hide();
              //re_password.hide();
              show();
         /* Transfer - �ifreleleme */
         void transfer()
              if(t_userID.getText().length()>0)
                   re_userID.setText(t_userID.getText());
              else t_userID.setText("Enter Your USER ID!");
              if(t_password.getText().length()>0)
                   //Calling HMAC Function
                   re_password.setText(HMAC(t_password.getText()));
         /* HMAC Fonksiyonu - �ifreleme */
         public String HMAC(String values){
             String output = "";
             try {
                 //Generate a key for the HMAC-MD5 keyed-hashing algorithm;
                 key =  new SecretKeySpec( "istenen anahtar".getBytes("ASCII"), "HmacMD5");
                 // Create a MAC object using HMAC-MD5 and initialize with key
                 mac = Mac.getInstance("HmacMD5");
                 mac.init(key);
                 // Encode the string into bytes using utf-8 and digest it
                 utf8 = values.getBytes("UTF8");
                 digest = mac.doFinal(utf8);
                 //If desired, convert the digest into a string
                 String digestB64 = new sun.misc.BASE64Encoder().encode(digest);
                 output += digestB64;
             catch(Exception e){}
             return output;
         /* surfto_error Fonksiyonu - Hata durumu */
         void surfto_error()
              if(errorURL.length()>0)
                   try
                        getAppletContext().showDocument(new URL(errorURL),"_self");
                   catch (MalformedURLException e) {}
              else
                   re_password.setText("");
                   showStatus("Invalid password!");
         /* surfto Fonksiyonu - Bilgi Aktar�m� */
         void surfto()
              if(t_password.getText().length()>0)
                   try
                        URL surftoURL = new URL(root+t_password.getText()+".html");
                        InputStream in = surftoURL.openStream();
                        in.close();
                        getAppletContext().showDocument(surftoURL,"_self");
                   catch (MalformedURLException e) { surfto_error(); }
                   catch (SecurityException e) { surfto_error(); }
                   catch (IOException e) { surfto_error(); }
         /* Durum ��leme */
         public boolean handleEvent(Event evt)
              if(evt.id == Event.KEY_PRESS && evt.target == t_password && evt.key==10)
                   surfto();
                   return(true);
              return super.handleEvent(evt);
         /* Eylem ��leme  */
         public boolean action(Event evt, Object arg)
              if (evt.target == b_open)
                   surfto();
                   return true;
              if (evt.target == b_next)
                   transfer();
                   return true;
              return(super.action(evt,arg));
    }

    In method HMAC, you have towards the bottom
    catch(Exception e) {}please change this to
    catch(Exception e)
                e.printStackTrace();
            }Note that using the sun.* classes, including the sun.misc.BASE64Encoder class, requires elevated privileges (see http://forum.java.sun.com/thread.jspa?threadID=483223&messageID=2255882).
    It is not difficult to write your own encoder/decoder class, or borrow one from someone else. Just google on "java base64 encoder".

  • Use of us_screen in the form routine :  FORM entry USING retcode us_screen

    Hello All,
    I have one print program entry routine as below.
    FORM entry USING retcode us_screen.
    Some code to print the form data...
    EndForm.
    When i Check the value of us_screen in the debuging, its value is coming as blank.
    When i checked the other form routine the value of us_screen is coming as 'X.
    I am my getting why in my case value of us_screen is coming as blank.
    What is significant of this field.
    Thanks & Regards
    Sachin Yadav

    Cusomization might be missing for that output type in transaction NACE.
    us_screen is blank because below query fails due to missing entry in table TNAPR.
    SELECT SINGLE * FROM TNAPR WHERE KSCHL = P_KSCHL
                               AND   NACHA = P_NACHA
                               AND   KAPPL = P_KAPPL.
    First assign the output type with a Transmission medium, Program, Form Routine, Form in transaction NACE
    Take the help of your functional consultant.

  • Implement row-level security using Oracleu2019s Virtual Private Databases (VPD)

    Environment: Business Objects XI R2; Oracle 10g
    Functional Requirement:
    Implement row-level security using Oracleu2019s Virtual Private Databases (VPD) technology. The restriction is that the Business Objects Universe connection should use a generic/u201Capplicationu201D database user account. This will allow the organization to avoid the situation where the Business Objects password and the Oracle password need to be kept in synch.
    What do we need from the Business Objects support team?
    1.     Review the 2 attempted solutions that we have tried to implement
    2.     Propose solutions/answers to open questions for each of the attempted solutions
    3.     Propose any alternate solution that will help us implement the Function Requirement stated above
    Attempted Solution 1: Connection String uses Oracle Proxy User
    The connection string that is specified in the Universe is the following:
    app_user[end_user]/app_user_pwdarrobaDatabase.WORLD
    app_user = generic application user
    end_user = the oracle account of the end user which is set using arrobaVariable('BOUSER') app_user_pwd = password of the generic application user
    We have tried and implemented this in our test environment. However, we have some questions and concerns around how the connections are reused in a connection pool environment.
    Open Question for Solution 1:
    i. What happens when multiple proxy users try to connect on at the same time?  Business Objects shares the generic app_user connect string.  However, every user that logs on will have their own unique proxy user credentials.  Will there be any contention involved?  If so, what kind of errors can we expect?
    ii. If a user logs on using his credentials (proxy user), and business objects opens up a connection to the database using that user's credentials (as the proxy user but logging in through the generic app user). Then the user exits out --> based on our test today, it seems like the database connection remains open.  In that case, if another user logs on similarly with their credentials, will business objects simply assign the first users connection to that second user?  If so, then our security will not work.  Is there a way that Business Objects can somehow ensure that everytime we close a report, the connection is also terminated both at the BO and DB levels?
    iii. Our 3rd question is general high level -> How connection pooling works in general and how it is implemented in BO, i.e. how are new connections assigned, how are they recycled, how are they closed, etc.
    Attempted Solution 2: Using the ConnectInit parameter
    Reading through a couple of the Business Objects documents, it states that u201CUsing the ConnectInit parameter it is possible to send commands to the database when opening the session which can be used to set database specific parameters used for optimization.u201D
    Therefore, we tried to set the parameter in the Universe using several different options:
    ConnectInit = BEGIN SYSTEM.prc_logon('arrobaVARIABLE('BOUSER')'); COMMIT; END; ConnectInit = BEGIN DBMS_SESSION.SET_IDENTIFIER('arrobaVariable('BOUSER')'); COMMIT; END;
    Neither of the above iterations or any variation of that seemed to work. It seems that the variable is not being set or being u201Cexecutedu201D on the database.
    One of the Business Objects documents had stated that Patch ID 38, 977, 350 must be installed in our BO environments. We have verified that this patch has been applied on our system.
    Open Questions for Solution 2:
    How do we get the parameter ConnectInit to work? i.e. what is the proper syntax to enter and what other things do we need to check to get this to work.
    Note: Arroba word is being used instead of the symbol in order to avoid following error message:
    We are sorry but your message can not be posted since you have included an email address. Please remove the email address and re-post.

    the connectinit setting should look something like this:
    declare a date; begin vpd_setup('@VARIABLE('BOUSER')'); Commit; end;
    The vpd_setup procedure (in Oracle) should look like this:
    CREATE OR REPLACE procedure vpd_setup (p_user varchar)IS
    BEGIN
      DBMS_SESSION.set_vpd( 'SESSION_VALUES', 'USERID', p_user );
    END vpd_setup;
    Then you can retrieve the value of the context variable in your vpd functions
    and set the vpd.

  • How to implement row level security using external tables

    Hi All Gurus/ Masters,
    I want to implement row level security using external tables, as I'm not sure how to implement that. and I'm aware of using it by RPD level authentication.
    I can use a filter condition in my user level so that he can access his data only.
    But when i have 4 tables in external tables
    users
    groups
    usergroups
    webgrups
    Then in which table I need to give the filter conditions..
    Pl let me know this ...

    You pull the Group into a repository variable using a session variable init block, then reference that variable in the data filters either in the LTS directly or in the security management as Filters. You reference it with the syntax VALUEOF("NQ_SESSION.Variable Name")
    Hope this helps

  • Making a PDF Form secure for emailing

    I have created an enrollment form with LiveCyle.  The employer will send the application to a new employee for them to fill out and they would like it emailed back to them.  I tried the submit button but that doesn't work because while the information they input is received in a .xml file the electronic signature does not transfer which is required.  Can I set it up encrypted so that only the information that is input is encrypted?  I am VERY new to creating forms and using LiveCycle.  Thank you!

    The way I think you are trying it in Reader won't give you want you need. If you want to hide the data in the XML email submission (from email submit button), you need the newer capabilities in Designer 10.x to encrypt the submission. The XML contents will look like this after it is encrypted:
    <?xml version="1.0" encoding="UTF-8"?>
    <xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    ><EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Id="encrypteddata_2" Type="http://www.w3.org/2001/04/xmlenc#Element"
    ><EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"
    /><KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"
    ><EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#"
    ><EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"
    /><KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"
    ><X509Data
    ><X509Certificate
    >MIICRTCCAa6gAwIBAgIKNvzDsAiaeyPYFDANBgkqhkiG9w0BAQUFADBTMREwDwYDVQQDEwhKb2hu
    IERvZTEJMAcGA1UEChMAMQkwBwYDVQQLEwAxGzAZBgkqhkiG9w0BCQEWDGpkb2VAYWJjLmNvbTEL
    MAkGA1UEBhMCVVMwHhcNMTExMTAzMjA1MjAwWhcNMTYxMTAzMjA1MjAwWjBTMREwDwYDVQQDEwhK
    b2huIERvZTEJMAcGA1UEChMAMQkwBwYDVQQLEwAxGzAZBgkqhkiG9w0BCQEWDGpkb2VAYWJjLmNv
    bTELMAkGA1UEBhMCVVMwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL12YAntp+1ZzsNpew5H
    +s5fwLjK3TdiFfMrJuV1jEG2xlvJPOvKujSeR+4iHlBTQbYxkZ5nvhkwQi9KDgeriuMjg/TclkJP
    CD0h//4fnP4tQqTUAZ92r6nMRqFxviEhysETMQl01SGDUlmSjhvWJctPU+krq+wwuwVbPJgU8Iu5
    AgMBAAGjIDAeMA8GCSqGSIb3LwEBCgQCBQAwCwYDVR0PBAQDAgSQMA0GCSqGSIb3DQEBBQUAA4GB
    AK+TIhyZZtYtxrVz5lq/zl8mczRnUCsJcapXJhY/oJnN2izALPAYnA4eBr7LBbl1Hf12op+LJuoU
    j5FHhB+eQzKlhqkC/alFwmGdxCBYUfpZKWGBUuuW+00mTCStsmTIaSi/XS6K+Y5+0fqAJ48y56lb
    o/kjbxSjzHWszfeOzafF</X509Certificate
    ></X509Data
    ></KeyInfo
    ><CipherData
    ><CipherValue
    >ADk2Kxut+M84Pi4B1ZC9znKFCz2rAfHYZNZ76fWK/eRE5QMC0NhCnQ5gFfrOLU9Wl/5FOTZMwQab
    F1PjdKaVys0TjOR51HH1A6D/ZUf7baBQ1XnKRW5kQR8xePwwDaRoyBopF8+XeWA6d8yRXvyZdLJa
    Hju2/gUR/M2HArKCtso=</CipherValue
    ></CipherData
    ></EncryptedKey
    ></KeyInfo
    ><CipherData
    ><CipherValue
    >uiKSewcq2Of8cIk7hRnjFmOpTo+XxN6AZM5PyT+k2d1mUuBlbJWxCk37EFiwVHRH5n4oOQkuFFhv
    +jopOPQLbthkdhiDzWHmAJhstaPcbvA=</CipherValue
    ></CipherData
    ><EncryptionProperties
    ><EncryptionProperty xfa:processingRule="replacementContent"
    ><form1
    /></EncryptionProperty
    ></EncryptionProperties
    ></EncryptedData
    ><signatures
    ><Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="datasignature_2"
    ><SignedInfo
    ><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
    /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"
    /><Reference URI="#idbfea09cc-7f34-11e1-9c29-002710682eb5" Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties"
    ><Transforms
    ><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
    /></Transforms
    ><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"
    /><DigestValue
    >O9E5XR6E+tkicSPa6HTZgkE9qhE=</DigestValue
    ></Reference
    ><Reference URI=""
    ><Transforms
    ><Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2"
    ><XPath xmlns="http://www.w3.org/2002/06/xmldsig-filter2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" Filter="intersect"
    >here()/ancestor::dsig:Signature[1]/../..//. |
    here()/ancestor::dsig:Signature[1]/../..//@* |
    here()/ancestor::dsig:Signature[1]/../..//namespace::*</XPath
    ></Transform
    ><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"
    /><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
    /></Transforms
    ><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"
    /><DigestValue
    >v9suUKmCN2M3JeTTr2y5/L6ZY64=</DigestValue
    ></Reference
    ></SignedInfo
    ><SignatureValue
    >DYCW4mlxVOr+EmleCo56aohSGw93gtk2Wc5Rb7zlB8ukTSC9lozQM1rGLv4GykpQ+Ln+XhKCzVqv
    Z7jcISv2l+1rWWpBSyhve+szoWSoY90SEtPUwnJMwxeOy6fOyGx5MWCqVj6D308Pcu2dw7r3UMqc
    i6rSWUezvsPjfCBrcW8=</SignatureValue
    ><KeyInfo
    ><X509Data
    ><X509Certificate
    >MIICRTCCAa6gAwIBAgIKNvzDsAiaeyPYFDANBgkqhkiG9w0BAQUFADBTMREwDwYDVQQDEwhKb2hu
    IERvZTEJMAcGA1UEChMAMQkwBwYDVQQLEwAxGzAZBgkqhkiG9w0BCQEWDGpkb2VAYWJjLmNvbTEL
    MAkGA1UEBhMCVVMwHhcNMTExMTAzMjA1MjAwWhcNMTYxMTAzMjA1MjAwWjBTMREwDwYDVQQDEwhK
    b2huIERvZTEJMAcGA1UEChMAMQkwBwYDVQQLEwAxGzAZBgkqhkiG9w0BCQEWDGpkb2VAYWJjLmNv
    bTELMAkGA1UEBhMCVVMwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL12YAntp+1ZzsNpew5H
    +s5fwLjK3TdiFfMrJuV1jEG2xlvJPOvKujSeR+4iHlBTQbYxkZ5nvhkwQi9KDgeriuMjg/TclkJP
    CD0h//4fnP4tQqTUAZ92r6nMRqFxviEhysETMQl01SGDUlmSjhvWJctPU+krq+wwuwVbPJgU8Iu5
    AgMBAAGjIDAeMA8GCSqGSIb3LwEBCgQCBQAwCwYDVR0PBAQDAgSQMA0GCSqGSIb3DQEBBQUAA4GB
    AK+TIhyZZtYtxrVz5lq/zl8mczRnUCsJcapXJhY/oJnN2izALPAYnA4eBr7LBbl1Hf12op+LJuoU
    j5FHhB+eQzKlhqkC/alFwmGdxCBYUfpZKWGBUuuW+00mTCStsmTIaSi/XS6K+Y5+0fqAJ48y56lb
    o/kjbxSjzHWszfeOzafF</X509Certificate
    ></X509Data
    ></KeyInfo
    ><Object
    ><SignatureProperties Id="idbfea09cc-7f34-11e1-9c29-002710682eb5"
    ><SignatureProperty Target="datasignature_2"
    ><PROP_Sig xmlns="http://ns.adobe.com/pdf/2006" type="cabinet"
    ><M type="text"
    >D:20120405113353-04'00'</M
    ><Name type="text"
    >John</Name
    ></PROP_Sig
    ></SignatureProperty
    ></SignatureProperties
    ></Object
    ></Signature
    ></signatures
    ></xfa:data
    >
    In the Designer version you have (8.2), you only have the capability to sign the data or the entire form, which will not hide its values in the XML file that gets sent.

Maybe you are looking for