Klasse XMPP.SecRingSelectionStrategy

Alle implementierten Schnittstellen:
KeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPSecretKeyRing,org.bouncycastle.openpgp.PGPSecretKeyRingCollection,String>
Umschließende Klasse:
XMPP

public static class XMPP.SecRingSelectionStrategy extends ExactUserId.SecRingSelectionStrategy
SecretKeyRingSelectionStrategy which accepts a given PGPSecretKeyRing if its primary key has a user-id that matches the given
jid
. The argument
jid
can either contain the prefix "xmpp:", or not, the result will be the same.
  • Konstruktordetails

    • SecRingSelectionStrategy

      public SecRingSelectionStrategy()
  • Methodendetails

    • accept

      public boolean accept(String jid, org.bouncycastle.openpgp.PGPSecretKeyRing keyRing)
      Beschreibung aus Schnittstelle kopiert: KeyRingSelectionStrategy
      Return true, if the filter accepts the given
      keyRing
      based on the given
      identifier
      .
      Angegeben von:
      accept in Schnittstelle KeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPSecretKeyRing,org.bouncycastle.openpgp.PGPSecretKeyRingCollection,String>
      Setzt außer Kraft:
      accept in Klasse ExactUserId.SecRingSelectionStrategy
      Parameter:
      jid - identifier
      keyRing - key ring
      Gibt zurück:
      acceptance