Class XMPP.PubRingSelectionStrategy
- java.lang.Object
-
- org.pgpainless.util.selection.keyring.PublicKeyRingSelectionStrategy<java.lang.String>
-
- org.pgpainless.util.selection.keyring.impl.ExactUserId.PubRingSelectionStrategy
-
- org.pgpainless.util.selection.keyring.impl.XMPP.PubRingSelectionStrategy
-
- All Implemented Interfaces:
KeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPPublicKeyRing,org.bouncycastle.openpgp.PGPPublicKeyRingCollection,java.lang.String>
- Enclosing class:
- XMPP
public static class XMPP.PubRingSelectionStrategy extends ExactUserId.PubRingSelectionStrategy
PublicKeyRingSelectionStrategy
which accepts a givenPGPPublicKeyRing
if its primary key has a user-id that matches the givenjid
. The argumentjid
can either contain the prefix "xmpp:", or not, the result will be the same.
-
-
Constructor Summary
Constructors Constructor Description PubRingSelectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.String jid, org.bouncycastle.openpgp.PGPPublicKeyRing keyRing)
Return true, if the filter accepts the given-
Methods inherited from class org.pgpainless.util.selection.keyring.PublicKeyRingSelectionStrategy
selectKeyRingsFromCollection, selectKeyRingsFromCollections
-
-
-
-
Method Detail
-
accept
public boolean accept(java.lang.String jid, org.bouncycastle.openpgp.PGPPublicKeyRing keyRing)
Description copied from interface:KeyRingSelectionStrategy
Return true, if the filter accepts the givenkeyRing
based on the givenidentifier
.- Specified by:
accept
in interfaceKeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPPublicKeyRing,org.bouncycastle.openpgp.PGPPublicKeyRingCollection,java.lang.String>
- Overrides:
accept
in classExactUserId.PubRingSelectionStrategy
- Parameters:
jid
- identifierkeyRing
- key ring- Returns:
- acceptance
-
-