Klasse XMPP.PubRingSelectionStrategy

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

public static class XMPP.PubRingSelectionStrategy extends ExactUserId.PubRingSelectionStrategy
PublicKeyRingSelectionStrategy which accepts a given PGPPublicKeyRing 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

    • PubRingSelectionStrategy

      public PubRingSelectionStrategy()
  • Methodendetails

    • accept

      public boolean accept(String jid, org.bouncycastle.openpgp.PGPPublicKeyRing 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.PGPPublicKeyRing,org.bouncycastle.openpgp.PGPPublicKeyRingCollection,String>
      Setzt außer Kraft:
      accept in Klasse ExactUserId.PubRingSelectionStrategy
      Parameter:
      jid - identifier
      keyRing - key ring
      Gibt zurück:
      acceptance