1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-07-04 09:12:33 +02:00
pgpainless/pgpainless-core/src/main/java/org/gnupg/GnuPGDummyExtension.java

32 lines
583 B
Java
Raw Normal View History

2022-10-28 16:36:08 +02:00
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.gnupg;
2022-10-28 16:36:08 +02:00
import org.bouncycastle.bcpg.S2K;
public enum GnuPGDummyExtension {
2022-10-28 16:36:08 +02:00
2022-10-28 17:05:56 +02:00
/**
* Do not store the secret part at all.
*/
2022-10-28 16:36:08 +02:00
NO_PRIVATE_KEY(S2K.GNU_PROTECTION_MODE_NO_PRIVATE_KEY),
2022-10-28 17:05:56 +02:00
/**
* A stub to access smartcards.
*/
2022-10-28 16:36:08 +02:00
DIVERT_TO_CARD(S2K.GNU_PROTECTION_MODE_DIVERT_TO_CARD),
;
private final int id;
GnuPGDummyExtension(int id) {
2022-10-28 16:36:08 +02:00
this.id = id;
}
public int getId() {
return id;
}
}