mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-06-11 14:17:10 +02:00
31 lines
887 B
Java
31 lines
887 B
Java
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package org.pgpainless.decryption_verification.cleartext_signatures;
|
|
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
|
|
import org.pgpainless.decryption_verification.ConsumerOptions;
|
|
|
|
public class VerifyCleartextSignaturesImpl implements VerifyCleartextSignatures {
|
|
|
|
private InputStream inputStream;
|
|
|
|
@Override
|
|
public VerifyWithImpl onInputStream(InputStream inputStream) {
|
|
VerifyCleartextSignaturesImpl.this.inputStream = inputStream;
|
|
return new VerifyWithImpl();
|
|
}
|
|
|
|
public class VerifyWithImpl implements VerifyWith {
|
|
|
|
@Override
|
|
public CleartextSignatureProcessor withOptions(ConsumerOptions options) throws IOException {
|
|
return new CleartextSignatureProcessor(inputStream, options);
|
|
}
|
|
|
|
}
|
|
}
|