aboutsummaryrefslogtreecommitdiff
path: root/src/simpleapdu/DirtyLogger.java
diff options
context:
space:
mode:
authorJ08nY2016-12-10 23:32:41 +0100
committerJ08nY2016-12-10 23:37:51 +0100
commit5f0ec2706a9dbb6aa72ea3c7eb798cd83045e867 (patch)
tree36df89a0253469d4cca2de53eb12314ccc58f4cb /src/simpleapdu/DirtyLogger.java
parent31a9da5493cb5085354dbfa034cea4b1d45df3cb (diff)
downloadECTester-5f0ec2706a9dbb6aa72ea3c7eb798cd83045e867.tar.gz
ECTester-5f0ec2706a9dbb6aa72ea3c7eb798cd83045e867.tar.zst
ECTester-5f0ec2706a9dbb6aa72ea3c7eb798cd83045e867.zip
Added CLI options, Apache commons-cli lib, anomalous curve key export
- Added CLI options, see SimpleAPDU.jar -h - Added Apache commons-cli for CLI options, it uses Apache license - Added support for anomalous curve export both reader/applet side: `java -jar SimpleAPDU.jar -g 10 -b 256 -fp -s` generates 10 curves over ECSP256 an anomalous 256bit curve.
Diffstat (limited to 'src/simpleapdu/DirtyLogger.java')
-rw-r--r--src/simpleapdu/DirtyLogger.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/simpleapdu/DirtyLogger.java b/src/simpleapdu/DirtyLogger.java
index 69e5e65..c06571b 100644
--- a/src/simpleapdu/DirtyLogger.java
+++ b/src/simpleapdu/DirtyLogger.java
@@ -1,14 +1,7 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
package simpleapdu;
import java.io.FileOutputStream;
import java.io.IOException;
-import java.util.logging.Level;
-import java.util.logging.Logger;
/**
*
@@ -17,6 +10,7 @@ import java.util.logging.Logger;
public class DirtyLogger {
FileOutputStream m_logFile;
boolean m_bOutputSystemOut = true;
+
public DirtyLogger(FileOutputStream logFile, boolean bOutputSystemOut) {
m_logFile = logFile;
m_bOutputSystemOut = bOutputSystemOut;
@@ -47,4 +41,8 @@ public class DirtyLogger {
} catch (IOException ex) {
}
}
+
+ void close() throws IOException {
+ m_logFile.close();
+ }
}