mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-10 18:59:43 +02:00
Remove label() option from armor() operation
This commit is contained in:
parent
a13f1e2a0d
commit
9356447226
5 changed files with 0 additions and 31 deletions
|
@ -1,14 +0,0 @@
|
|||
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package sop.enums
|
||||
|
||||
@Deprecated("Use of armor labels is deprecated.")
|
||||
enum class ArmorLabel {
|
||||
auto,
|
||||
sig,
|
||||
key,
|
||||
cert,
|
||||
message
|
||||
}
|
|
@ -7,22 +7,10 @@ package sop.operation
|
|||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
import sop.Ready
|
||||
import sop.enums.ArmorLabel
|
||||
import sop.exception.SOPGPException.BadData
|
||||
import sop.exception.SOPGPException.UnsupportedOption
|
||||
|
||||
interface Armor {
|
||||
|
||||
/**
|
||||
* Overrides automatic detection of label.
|
||||
*
|
||||
* @param label armor label
|
||||
* @return builder instance
|
||||
*/
|
||||
@Deprecated("Use of armor labels is deprecated and will be removed in a future release.")
|
||||
@Throws(UnsupportedOption::class)
|
||||
fun label(label: ArmorLabel): Armor
|
||||
|
||||
/**
|
||||
* Armor the provided data.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue