summaryrefslogtreecommitdiffstats
path: root/base/silent/src/com/netscape/pkisilent/ConfigureDRM.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/silent/src/com/netscape/pkisilent/ConfigureDRM.java')
-rw-r--r--base/silent/src/com/netscape/pkisilent/ConfigureDRM.java35
1 files changed, 17 insertions, 18 deletions
diff --git a/base/silent/src/com/netscape/pkisilent/ConfigureDRM.java b/base/silent/src/com/netscape/pkisilent/ConfigureDRM.java
index 6d2516399..ca3581869 100644
--- a/base/silent/src/com/netscape/pkisilent/ConfigureDRM.java
+++ b/base/silent/src/com/netscape/pkisilent/ConfigureDRM.java
@@ -24,7 +24,6 @@ import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
-import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
@@ -32,13 +31,13 @@ import org.mozilla.jss.asn1.SEQUENCE;
import org.mozilla.jss.pkcs12.AuthenticatedSafes;
import org.mozilla.jss.pkcs12.PFX;
+import com.netscape.cmsutil.util.Utils;
import com.netscape.pkisilent.argparser.ArgParser;
import com.netscape.pkisilent.argparser.StringHolder;
import com.netscape.pkisilent.common.ComCrypto;
import com.netscape.pkisilent.common.ParseXML;
import com.netscape.pkisilent.http.HTTPClient;
import com.netscape.pkisilent.http.HTTPResponse;
-import com.netscape.cmsutil.util.Utils;
public class ConfigureDRM {
@@ -194,7 +193,7 @@ public class ConfigureDRM {
}
- public boolean LoginPanel() {
+ public boolean LoginPanel() throws Exception {
boolean st = false;
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
@@ -227,7 +226,7 @@ public class ConfigureDRM {
return st;
}
- public boolean TokenChoicePanel() throws UnsupportedEncodingException {
+ public boolean TokenChoicePanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -274,7 +273,7 @@ public class ConfigureDRM {
return true;
}
- public boolean DomainPanel() throws UnsupportedEncodingException {
+ public boolean DomainPanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -299,7 +298,7 @@ public class ConfigureDRM {
}
- public boolean DisplayChainPanel() {
+ public boolean DisplayChainPanel() throws Exception {
String query_string = "p=4" + "&op=next" + "&xml=true";
hc.sslConnect(cs_hostname, cs_port, wizard_uri, query_string);
@@ -365,7 +364,7 @@ public class ConfigureDRM {
}
}
- public boolean SubsystemPanel() throws UnsupportedEncodingException {
+ public boolean SubsystemPanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -414,7 +413,7 @@ public class ConfigureDRM {
}
}
- public boolean LdapConnectionPanel() throws UnsupportedEncodingException {
+ public boolean LdapConnectionPanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -443,7 +442,7 @@ public class ConfigureDRM {
return true;
}
- public boolean KeyPanel() {
+ public boolean KeyPanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -530,7 +529,7 @@ public class ConfigureDRM {
return true;
}
- public boolean CertSubjectPanel() throws UnsupportedEncodingException {
+ public boolean CertSubjectPanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -600,7 +599,7 @@ public class ConfigureDRM {
return true;
}
- public boolean CertificatePanel() throws UnsupportedEncodingException {
+ public boolean CertificatePanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -632,7 +631,7 @@ public class ConfigureDRM {
return true;
}
- public boolean BackupPanel() throws UnsupportedEncodingException {
+ public boolean BackupPanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -652,7 +651,7 @@ public class ConfigureDRM {
return true;
}
- public boolean SavePKCS12Panel() {
+ public boolean SavePKCS12Panel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -711,7 +710,7 @@ public class ConfigureDRM {
return true;
}
- public boolean AdminCertReqPanel() throws UnsupportedEncodingException {
+ public boolean AdminCertReqPanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -767,7 +766,7 @@ public class ConfigureDRM {
return true;
}
- public boolean AdminCertImportPanel() {
+ public boolean AdminCertImportPanel() throws Exception {
boolean st = false;
HTTPResponse hr = null;
@@ -805,7 +804,7 @@ public class ConfigureDRM {
return true;
}
- public boolean UpdateDomainPanel() throws UnsupportedEncodingException {
+ public boolean UpdateDomainPanel() throws Exception {
HTTPResponse hr = null;
ByteArrayInputStream bais = null;
ParseXML px = new ParseXML();
@@ -824,7 +823,7 @@ public class ConfigureDRM {
return true;
}
- public boolean ConfigureDRMInstance() throws UnsupportedEncodingException {
+ public boolean ConfigureDRMInstance() throws Exception {
// 0. login to cert db
ComCrypto cCrypt = new ComCrypto(client_certdb_dir,
client_certdb_pwd,
@@ -985,7 +984,7 @@ public class ConfigureDRM {
}
}
- public static void main(String args[]) throws UnsupportedEncodingException {
+ public static void main(String args[]) throws Exception {
ConfigureDRM ca = new ConfigureDRM();
// set variables