diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-07-06 12:33:33 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-07-06 12:33:33 +0200 |
commit | e4767bccc7324d4b61a334bf6c0558d0080045e2 (patch) | |
tree | 728a5df44f02ca10f760b979873c990cd4c0d265 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java | |
parent | 3422e5eb2819f5de304f25dc622f5284813bb9b4 (diff) | |
download | pdf-over-e4767bccc7324d4b61a334bf6c0558d0080045e2.tar.gz pdf-over-e4767bccc7324d4b61a334bf6c0558d0080045e2.tar.bz2 pdf-over-e4767bccc7324d4b61a334bf6c0558d0080045e2.zip |
remove NON-NLS comments, cleanup whitespace
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java index 38049be0..11f5459a 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareSigningState.java @@ -80,33 +80,33 @@ public class PrepareSigningState extends State { final String proxyPass = configuration.getProxyPass(); if (proxyHost != null && !proxyHost.isEmpty()) { - log.debug("Setting proxy host to " + proxyHost); //$NON-NLS-1$ - System.setProperty("http.proxyHost", proxyHost); //$NON-NLS-1$ - System.setProperty("https.proxyHost", proxyHost); //$NON-NLS-1$ + log.debug("Setting proxy host to " + proxyHost); // + System.setProperty("http.proxyHost", proxyHost); // + System.setProperty("https.proxyHost", proxyHost); // } if (proxyPort > 0 && proxyPort <= 0xFFFF) { String port = Integer.toString(proxyPort); - log.debug("Setting proxy port to " + port); //$NON-NLS-1$ - System.setProperty("http.proxyPort", port); //$NON-NLS-1$ - System.setProperty("https.proxyPort", port); //$NON-NLS-1$ + log.debug("Setting proxy port to " + port); // + System.setProperty("http.proxyPort", port); // + System.setProperty("https.proxyPort", port); // } if (proxyUser != null && !proxyUser.isEmpty()) { - log.debug("Setting proxy username to " + proxyUser); //$NON-NLS-1$ - System.setProperty("http.proxyUser", proxyUser); //$NON-NLS-1$ - System.setProperty("https.proxyUser", proxyUser); //$NON-NLS-1$ + log.debug("Setting proxy username to " + proxyUser); // + System.setProperty("http.proxyUser", proxyUser); // + System.setProperty("https.proxyUser", proxyUser); // } if (proxyPass != null) { - log.debug("Setting proxy password"); //$NON-NLS-1$ - System.setProperty("http.proxyPassword", proxyPass); //$NON-NLS-1$ - System.setProperty("https.proxyPassword", proxyPass); //$NON-NLS-1$ + log.debug("Setting proxy password"); // + System.setProperty("http.proxyPassword", proxyPass); // + System.setProperty("https.proxyPassword", proxyPass); // } if (proxyUser != null && !proxyUser.isEmpty() && proxyPass != null && !proxyPass.isEmpty()) { - log.debug("Enabling proxy authentication"); //$NON-NLS-1$ + log.debug("Enabling proxy authentication"); // Authenticator.setDefault(new Authenticator() { /* (non-Javadoc) * @see java.net.Authenticator#getPasswordAuthentication() @@ -116,7 +116,7 @@ public class PrepareSigningState extends State { if (getRequestorType() == RequestorType.PROXY) { if (getRequestingHost().equalsIgnoreCase(proxyHost) && (getRequestingPort() == proxyPort)) { - return new PasswordAuthentication(proxyUser, + return new PasswordAuthentication(proxyUser, proxyPass.toCharArray()); } } @@ -153,7 +153,7 @@ public class PrepareSigningState extends State { if (configuration.getSignatureNote() != null && !configuration.getSignatureNote().isEmpty()) { this.state.signatureParameter.setProperty( - "SIG_NOTE", configuration.getSignatureNote()); //$NON-NLS-1$ + "SIG_NOTE", configuration.getSignatureNote()); // } this.state.signatureParameter @@ -172,7 +172,7 @@ public class PrepareSigningState extends State { .prepare(this.state.signatureParameter); } catch (Exception e) { - log.error("PrepareDocumentThread: ", e); //$NON-NLS-1$ + log.error("PrepareDocumentThread: ", e); // this.state.threadException = e; } finally { this.state.updateStateMachine(); @@ -228,7 +228,7 @@ public class PrepareSigningState extends State { if (this.threadException != null) { ErrorDialog error = new ErrorDialog(getStateMachine() .getGUIProvider().getMainShell(), - Messages.getString("error.PrepareDocument"), //$NON-NLS-1$ + Messages.getString("error.PrepareDocument"), // BUTTONS.RETRY_CANCEL); this.threadException = null; if (error.open() == SWT.RETRY) { @@ -249,7 +249,7 @@ public class PrepareSigningState extends State { } else if (status.getBKU() == BKUs.KS) { this.setNextState(new KSState(getStateMachine())); } else { - log.error("Invalid selected BKU Value \"NONE\" in PrepareSigningState!"); //$NON-NLS-1$ + log.error("Invalid selected BKU Value \"NONE\" in PrepareSigningState!"); // this.setNextState(new BKUSelectionState(getStateMachine())); } } |