mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
Kotlin conversion: MissingKeyPassphraseStrategy
This commit is contained in:
parent
1234c8800a
commit
6e653f3c92
2 changed files with 22 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
|||
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package org.pgpainless.decryption_verification;
|
||||
|
||||
/**
|
||||
* Strategy defining how missing secret key passphrases are handled.
|
||||
*/
|
||||
public enum MissingKeyPassphraseStrategy {
|
||||
/**
|
||||
* Try to interactively obtain key passphrases one-by-one via callbacks,
|
||||
* eg {@link org.pgpainless.key.protection.passphrase_provider.SecretKeyPassphraseProvider}.
|
||||
*/
|
||||
INTERACTIVE,
|
||||
/**
|
||||
* Do not try to obtain passphrases interactively and instead throw a
|
||||
* {@link org.pgpainless.exception.MissingPassphraseException} listing all keys with missing passphrases.
|
||||
*/
|
||||
THROW_EXCEPTION
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
// SPDX-FileCopyrightText: 2023 Paul Schaub <vanitasvitae@fsfe.org>
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package org.pgpainless.decryption_verification
|
||||
|
||||
/**
|
||||
* Strategy defining how missing secret key passphrases are handled.
|
||||
*/
|
||||
enum class MissingKeyPassphraseStrategy {
|
||||
/**
|
||||
* Try to interactively obtain key passphrases one-by-one via callbacks,
|
||||
* eg [org.pgpainless.key.protection.passphrase_provider.SecretKeyPassphraseProvider].
|
||||
*/
|
||||
INTERACTIVE,
|
||||
|
||||
/**
|
||||
* Do not try to obtain passphrases interactively and instead throw a
|
||||
* [org.pgpainless.exception.MissingPassphraseException] listing all keys with missing passphrases.
|
||||
*/
|
||||
THROW_EXCEPTION
|
||||
}
|
Loading…
Reference in a new issue