mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-01 19:42:08 +01:00
Kotlin conversion: Signatures
This commit is contained in:
parent
2391ffc9b2
commit
dc23c8aa98
2 changed files with 19 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
||||||
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package sop;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.OutputStream;
|
|
||||||
|
|
||||||
public abstract class Signatures extends Ready {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Write OpenPGP signatures to the provided output stream.
|
|
||||||
*
|
|
||||||
* @param signatureOutputStream output stream
|
|
||||||
* @throws IOException in case of an IO error
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public abstract void writeTo(OutputStream signatureOutputStream) throws IOException;
|
|
||||||
|
|
||||||
}
|
|
19
sop-java/src/main/kotlin/sop/Signatures.kt
Normal file
19
sop-java/src/main/kotlin/sop/Signatures.kt
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
package sop
|
||||||
|
|
||||||
|
import java.io.IOException
|
||||||
|
import java.io.OutputStream
|
||||||
|
|
||||||
|
abstract class Signatures : Ready() {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write OpenPGP signatures to the provided output stream.
|
||||||
|
*
|
||||||
|
* @param outputStream signature output stream
|
||||||
|
* @throws IOException in case of an IO error
|
||||||
|
*/
|
||||||
|
@Throws(IOException::class) abstract override fun writeTo(outputStream: OutputStream)
|
||||||
|
}
|
Loading…
Reference in a new issue