summaryrefslogtreecommitdiffstats
path: root/pki/base/java-tools/src/com/netscape/cmstools/GenExtKeyUsage.java
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/java-tools/src/com/netscape/cmstools/GenExtKeyUsage.java')
-rw-r--r--pki/base/java-tools/src/com/netscape/cmstools/GenExtKeyUsage.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/pki/base/java-tools/src/com/netscape/cmstools/GenExtKeyUsage.java b/pki/base/java-tools/src/com/netscape/cmstools/GenExtKeyUsage.java
index 1c35a7c07..af228b9bb 100644
--- a/pki/base/java-tools/src/com/netscape/cmstools/GenExtKeyUsage.java
+++ b/pki/base/java-tools/src/com/netscape/cmstools/GenExtKeyUsage.java
@@ -17,6 +17,7 @@
// --- END COPYRIGHT BLOCK ---
package com.netscape.cmstools;
+
import java.util.Vector;
import netscape.security.util.DerOutputStream;
@@ -24,12 +25,14 @@ import netscape.security.util.DerValue;
import netscape.security.util.ObjectIdentifier;
import netscape.security.x509.Extension;
+
/**
- * Generates a DER-encoded Extended Key Usage extension. The first parameter is
- * the criticality of the extension, true or false. The OIDs to be included in
- * the extension are passed as command-line arguments. The OIDs are described in
- * RFC 2459. For example, the OID for code signing is 1.3.6.1.5.5.7.3.3.
- *
+ * Generates a DER-encoded Extended Key Usage extension.
+ * The first parameter is the criticality of the extension, true or false.
+ * The OIDs to be included in the extension are passed as command-line
+ * arguments. The OIDs are described in RFC 2459. For example,
+ * the OID for code signing is 1.3.6.1.5.5.7.3.3.
+ *
* @version $Revision$, $Date$
*/
public class GenExtKeyUsage {
@@ -37,10 +40,9 @@ public class GenExtKeyUsage {
public static void main(String[] args) {
try {
if (args.length < 2) {
- System.out
- .println("Usage: GenExtKeyUsage [true|false] <OID> ...");
+ System.out.println("Usage: GenExtKeyUsage [true|false] <OID> ...");
System.exit(-1);
- }
+ }
boolean critical = false;
@@ -49,8 +51,7 @@ public class GenExtKeyUsage {
} else if (args[0].equalsIgnoreCase("false")) {
critical = false;
} else {
- System.out
- .println("Usage: GenExtKeyUsage [true|false] <OID> ...");
+ System.out.println("Usage: GenExtKeyUsage [true|false] <OID> ...");
System.exit(-1);
}
@@ -90,8 +91,7 @@ public class GenExtKeyUsage {
// BASE64 encode the whole thing and write it to stdout
- System.out.println(com.netscape.osutil.OSUtil.BtoA(extdos
- .toByteArray()));
+ System.out.println(com.netscape.osutil.OSUtil.BtoA(extdos.toByteArray()));
} catch (Exception e) {
e.printStackTrace();