Package org.gnupg
Klasse GnuPGDummyKeyUtil
java.lang.Object
org.gnupg.GnuPGDummyKeyUtil
This class can be used to remove private keys from secret software-keys by replacing them with
stub secret keys in the style of GnuPGs proprietary extensions.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic final classstatic interfaceFilter for selecting keys. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Set<org.pgpainless.key.SubkeyIdentifier> getIdsOfKeysWithGnuPGS2KDivertedToCard(org.bouncycastle.openpgp.PGPSecretKeyRing secretKeys) Return the key-ids of all keys which appear to be stored on a hardware token / smartcard by GnuPG.static GnuPGDummyKeyUtil.Buildermodify(org.bouncycastle.openpgp.PGPSecretKeyRing secretKeys) Modify the givenPGPSecretKeyRing.
-
Methodendetails
-
getIdsOfKeysWithGnuPGS2KDivertedToCard
public static Set<org.pgpainless.key.SubkeyIdentifier> getIdsOfKeysWithGnuPGS2KDivertedToCard(@Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing secretKeys) Return the key-ids of all keys which appear to be stored on a hardware token / smartcard by GnuPG. Note, that this functionality is based on GnuPGs proprietary S2K extensions, which are not strictly required for dealing with hardware-backed keys.- Parameter:
secretKeys- secret keys- Gibt zurück:
- set of keys with S2K type GNU_DUMMY_S2K and protection mode DIVERT_TO_CARD
-
modify
public static GnuPGDummyKeyUtil.Builder modify(@Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing secretKeys) Modify the givenPGPSecretKeyRing.- Parameter:
secretKeys- secret keys- Gibt zurück:
- builder
-