To sign a file: ClearSignedFileProcessor -s fileName secretKey passPhrase.
To decrypt: ClearSignedFileProcessor -v signatureFile publicKeyFile.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| private static byte[] | |
| private static boolean | |
| private static boolean | |
| public static void | |
| private static void | |
| private static void | |
| private static int | |
| private static int | |
| private static int | |
| private static void | |
| private static void |
| ClearSignedFileProcessor | back to summary |
|---|---|
| public ClearSignedFileProcessor() | |
| getLengthWithoutSeparatorOrTrailingWhitespace | back to summary |
|---|---|
| private static int getLengthWithoutSeparatorOrTrailingWhitespace(byte[] line) | |
| getLengthWithoutWhiteSpace | back to summary |
|---|---|
| private static int getLengthWithoutWhiteSpace(byte[] line) | |
| getLineSeparator | back to summary |
|---|---|
| private static byte[] getLineSeparator() | |
| isLineEnding | back to summary |
|---|---|
| private static boolean isLineEnding(byte b) | |
| isWhiteSpace | back to summary |
|---|---|
| private static boolean isWhiteSpace(byte b) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws Exception | |
| processLine | back to summary |
|---|---|
| private static void processLine(PGPSignature sig, byte[] line) throws SignatureException, IOException | |
| processLine | back to summary |
|---|---|
| private static void processLine(OutputStream aOut, PGPSignatureGenerator sGen, byte[] line) throws SignatureException, IOException | |
| readInputLine | back to summary |
|---|---|
| private static int readInputLine(ByteArrayOutputStream bOut, InputStream fIn) throws IOException | |
| readInputLine | back to summary |
|---|---|
| private static int readInputLine(ByteArrayOutputStream bOut, int lookAhead, InputStream fIn) throws IOException | |
| readPassedEOL | back to summary |
|---|---|
| private static int readPassedEOL(ByteArrayOutputStream bOut, int lastCh, InputStream fIn) throws IOException | |
| signFile | back to summary |
|---|---|
| private static void signFile(String fileName, InputStream keyIn, OutputStream out, char[] pass, String digestName) throws IOException, NoSuchAlgorithmException, NoSuchProviderException, PGPException, SignatureException | |
| verifyFile | back to summary |
|---|---|
| private static void verifyFile(InputStream in, InputStream keyIn, String resultName) throws Exception | |