Class ExactUserId.SecRingSelectionStrategy

java.lang.Object
org.pgpainless.util.selection.keyring.SecretKeyRingSelectionStrategy<String>
org.pgpainless.util.selection.keyring.impl.ExactUserId.SecRingSelectionStrategy
All Implemented Interfaces:
KeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPSecretKeyRing,org.bouncycastle.openpgp.PGPSecretKeyRingCollection,String>
Direct Known Subclasses:
XMPP.SecRingSelectionStrategy
Enclosing class:
ExactUserId

public static class ExactUserId.SecRingSelectionStrategy extends SecretKeyRingSelectionStrategy<String>
SecretKeyRingSelectionStrategy which accepts PGPSecretKeyRings if those have a user-id which exactly matches the given
identifier
.
  • Constructor Details

    • SecRingSelectionStrategy

      public SecRingSelectionStrategy()
  • Method Details

    • accept

      public boolean accept(String identifier, org.bouncycastle.openpgp.PGPSecretKeyRing keyRing)
      Description copied from interface: KeyRingSelectionStrategy
      Return true, if the filter accepts the given
      keyRing
      based on the given
      identifier
      .
      Parameters:
      identifier - identifier
      keyRing - key ring
      Returns:
      acceptance