mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-26 09:02:06 +01:00
Kotlin conversion: SignatureMode
This commit is contained in:
parent
30c369d24a
commit
01f98df80b
3 changed files with 18 additions and 34 deletions
|
@ -1,25 +0,0 @@
|
||||||
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package sop.enums;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Enum referencing relevant signature types.
|
|
||||||
*
|
|
||||||
* @see <a href="https://www.rfc-editor.org/rfc/rfc4880#section-5.2.1">
|
|
||||||
* RFC4880 §5.2.1 - Signature Types</a>
|
|
||||||
*/
|
|
||||||
public enum SignatureMode {
|
|
||||||
/**
|
|
||||||
* Signature of a binary document (<pre>0x00</pre>).
|
|
||||||
*/
|
|
||||||
binary,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Signature of a canonical text document (<pre>0x01</pre>).
|
|
||||||
*/
|
|
||||||
text
|
|
||||||
|
|
||||||
// Other Signature Types are irrelevant.
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stateless OpenPGP Interface for Java.
|
|
||||||
* Enumerations.
|
|
||||||
*/
|
|
||||||
package sop.enums;
|
|
18
sop-java/src/main/kotlin/sop/enums/SignatureMode.kt
Normal file
18
sop-java/src/main/kotlin/sop/enums/SignatureMode.kt
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
package sop.enums
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum referencing relevant signature types.
|
||||||
|
*
|
||||||
|
* @see <a href="https://www.rfc-editor.org/rfc/rfc4880#section-5.2.1"> RFC4880 §5.2.1 - Signature
|
||||||
|
* Types</a>
|
||||||
|
*/
|
||||||
|
enum class SignatureMode {
|
||||||
|
/** Signature of a binary document (type `0x00`). */
|
||||||
|
binary,
|
||||||
|
/** Signature of a canonical text document (type `0x01`). */
|
||||||
|
text
|
||||||
|
}
|
Loading…
Reference in a new issue