2021-10-07 15:48:52 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
package sop.operation;
|
2021-01-18 18:31:50 +01:00
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.InputStream;
|
2021-01-18 18:31:50 +01:00
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
import sop.Ready;
|
|
|
|
import sop.exception.SOPGPException;
|
2021-01-18 18:31:50 +01:00
|
|
|
|
2021-07-15 16:55:13 +02:00
|
|
|
public interface ExtractCert {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Disable ASCII armor encoding.
|
|
|
|
*
|
|
|
|
* @return builder instance
|
|
|
|
*/
|
|
|
|
ExtractCert noArmor();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extract the cert from the provided key.
|
|
|
|
*
|
|
|
|
* @param keyInputStream input stream containing the encoding of an OpenPGP key
|
|
|
|
* @return input stream containing the encoding of the keys cert
|
|
|
|
*/
|
|
|
|
Ready key(InputStream keyInputStream) throws IOException, SOPGPException.BadData;
|
2021-01-18 18:31:50 +01:00
|
|
|
}
|