001// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org> 002// 003// SPDX-License-Identifier: Apache-2.0 004 005package org.pgpainless.decryption_verification.cleartext_signatures; 006 007import java.io.IOException; 008import java.io.InputStream; 009 010import org.pgpainless.decryption_verification.ConsumerOptions; 011 012public class VerifyCleartextSignaturesImpl implements VerifyCleartextSignatures { 013 014 private InputStream inputStream; 015 016 @Override 017 public VerifyWithImpl onInputStream(InputStream inputStream) { 018 VerifyCleartextSignaturesImpl.this.inputStream = inputStream; 019 return new VerifyWithImpl(); 020 } 021 022 public class VerifyWithImpl implements VerifyWith { 023 024 @Override 025 public CleartextSignatureProcessor withOptions(ConsumerOptions options) throws IOException { 026 return new CleartextSignatureProcessor(inputStream, options); 027 } 028 029 } 030}