mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-18 02:12:06 +01:00
Wip
This commit is contained in:
parent
45555bf82d
commit
4e44691ef6
1 changed files with 10 additions and 4 deletions
|
@ -60,6 +60,7 @@ import java.io.OutputStream;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Stack;
|
||||||
|
|
||||||
public class OpenPgpMessageInputStream extends InputStream {
|
public class OpenPgpMessageInputStream extends InputStream {
|
||||||
|
|
||||||
|
@ -577,15 +578,20 @@ public class OpenPgpMessageInputStream extends InputStream {
|
||||||
|
|
||||||
private static final class Signatures extends OutputStream {
|
private static final class Signatures extends OutputStream {
|
||||||
final ConsumerOptions options;
|
final ConsumerOptions options;
|
||||||
List<PGPSignature> detachedSignatures = new ArrayList<>();
|
final List<PGPSignature> detachedSignatures;
|
||||||
List<PGPSignature> prependedSignatures = new ArrayList<>();
|
final List<PGPSignature> prependedSignatures;
|
||||||
List<List<PGPOnePassSignature>> onePassSignatures = new ArrayList<>();
|
final Stack<List<PGPOnePassSignature>> onePassSignatures;
|
||||||
List<PGPSignature> correspondingSignatures = new ArrayList<>();
|
final List<PGPSignature> correspondingSignatures;
|
||||||
|
|
||||||
boolean lastOpsIsContaining = true;
|
boolean lastOpsIsContaining = true;
|
||||||
|
|
||||||
private Signatures(ConsumerOptions options) {
|
private Signatures(ConsumerOptions options) {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
|
this.detachedSignatures = new ArrayList<>();
|
||||||
|
this.prependedSignatures = new ArrayList<>();
|
||||||
|
this.onePassSignatures = new Stack<>();
|
||||||
|
onePassSignatures.push(new ArrayList<>());
|
||||||
|
this.correspondingSignatures = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void addDetachedSignatures(Collection<PGPSignature> signatures) {
|
void addDetachedSignatures(Collection<PGPSignature> signatures) {
|
||||||
|
|
Loading…
Reference in a new issue