SIGN: If use new cert policy, disable CAs edit function always. 31/17131/1
authorJihoon Song <jihoon80.song@samsung.com>
Tue, 4 Mar 2014 08:01:37 +0000 (17:01 +0900)
committerJihoon Song <jihoon80.song@samsung.com>
Tue, 4 Mar 2014 08:01:37 +0000 (17:01 +0900)
Change-Id: If102f8bc1bfa271046f4832fecd982405d2b0fea
Signed-off-by: Jihoon Song <jihoon80.song@samsung.com>
org.tizen.common.sign/src/org/tizen/common/sign/ui/ProfileItemDialog.java

index ee9ee26..98d1fa1 100644 (file)
@@ -20,6 +20,7 @@ import org.eclipse.swt.widgets.Shell;
 import org.eclipse.swt.widgets.Text;
 import org.tizen.common.sign.preferences.Messages;
 import org.tizen.common.sign.preferences.SigningProfileItem;
+import org.tizen.common.sign.util.SigningProfileUtil;
 import org.tizen.common.util.Assert;
 import org.tizen.common.util.StringUtil;
 
@@ -111,8 +112,14 @@ public class ProfileItemDialog extends StatusDialog {
         
         createTextWithBrowse( composite, ItemDataKey.keyPath, filterExt_p12, true );
         createPasswordText( composite, ItemDataKey.password );
-        createTextWithBrowse( composite, ItemDataKey.caPath, filterExt_cer, true );
-        createTextWithBrowse( composite, ItemDataKey.rootCaPath, filterExt_cer, this.bEnableCA );
+        if ( ! SigningProfileUtil.isAvailableNewCertPolicy() ) {
+            createTextWithBrowse( composite, ItemDataKey.caPath, filterExt_cer, true );
+            createTextWithBrowse( composite, ItemDataKey.rootCaPath, filterExt_cer, this.bEnableCA );
+        } else {
+            // Apply new cert policy. CAs is not used.
+            createTextWithBrowse( composite, ItemDataKey.caPath, filterExt_cer, false );
+            createTextWithBrowse( composite, ItemDataKey.rootCaPath, filterExt_cer, false );
+        }
         
         return composite;
     }