Package org.gnupg
Klasse GnuPGDummyKeyUtil.Builder
java.lang.Object
org.gnupg.GnuPGDummyKeyUtil.Builder
- Umschließende Klasse:
GnuPGDummyKeyUtil
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.bouncycastle.openpgp.PGPSecretKeyRingRemove all private keys that match the givenGnuPGDummyKeyUtil.KeyFilterfrom the key ring and replace them with GNU_DUMMY keys with S2K protection modeGnuPGDummyExtension.DIVERT_TO_CARD.org.bouncycastle.openpgp.PGPSecretKeyRingdivertPrivateKeysToCard(GnuPGDummyKeyUtil.KeyFilter filter, byte[] cardSerialNumber) Remove all private keys that match the givenGnuPGDummyKeyUtil.KeyFilterfrom the key ring and replace them with GNU_DUMMY keys with S2K protection modeGnuPGDummyExtension.DIVERT_TO_CARD.org.bouncycastle.openpgp.PGPSecretKeyRingRemove all private keys that match the givenGnuPGDummyKeyUtil.KeyFilterfrom the key ring and replace them with GNU_DUMMY keys with S2K protection modeGnuPGDummyExtension.NO_PRIVATE_KEY.
-
Methodendetails
-
removePrivateKeys
public org.bouncycastle.openpgp.PGPSecretKeyRing removePrivateKeys(@Nonnull GnuPGDummyKeyUtil.KeyFilter filter) Remove all private keys that match the givenGnuPGDummyKeyUtil.KeyFilterfrom the key ring and replace them with GNU_DUMMY keys with S2K protection modeGnuPGDummyExtension.NO_PRIVATE_KEY.- Parameter:
filter- filter to select keys for removal- Gibt zurück:
- modified key ring
-
divertPrivateKeysToCard
public org.bouncycastle.openpgp.PGPSecretKeyRing divertPrivateKeysToCard(@Nonnull GnuPGDummyKeyUtil.KeyFilter filter) Remove all private keys that match the givenGnuPGDummyKeyUtil.KeyFilterfrom the key ring and replace them with GNU_DUMMY keys with S2K protection modeGnuPGDummyExtension.DIVERT_TO_CARD. This method will set the serial number of the card to 0x00000000000000000000000000000000. NOTE: This method does not actually move any keys to a card.- Parameter:
filter- filter to select keys for removal- Gibt zurück:
- modified key ring
-
divertPrivateKeysToCard
public org.bouncycastle.openpgp.PGPSecretKeyRing divertPrivateKeysToCard(@Nonnull GnuPGDummyKeyUtil.KeyFilter filter, @Nullable byte[] cardSerialNumber) Remove all private keys that match the givenGnuPGDummyKeyUtil.KeyFilterfrom the key ring and replace them with GNU_DUMMY keys with S2K protection modeGnuPGDummyExtension.DIVERT_TO_CARD. This method will include the card serial number into the encoded dummy key. NOTE: This method does not actually move any keys to a card.- Parameter:
filter- filter to select keys for removalcardSerialNumber- serial number of the card (at most 16 bytes long)- Gibt zurück:
- modified key ring
-