Class XMPP.PubRingSelectionStrategy
java.lang.Object
org.pgpainless.util.selection.keyring.PublicKeyRingSelectionStrategy<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, String>
- Enclosing class:
XMPP
PublicKeyRingSelectionStrategy which accepts a given
PGPPublicKeyRing if its primary key has a user-id that matches the given jid. The argument
jidcan either contain the prefix "xmpp:", or not, the result will be the same.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.pgpainless.util.selection.keyring.PublicKeyRingSelectionStrategy
selectKeyRingsFromCollection, selectKeyRingsFromCollections
-
Constructor Details
-
PubRingSelectionStrategy
public PubRingSelectionStrategy()
-
-
Method Details
-
accept
Description copied from interface:KeyRingSelectionStrategyReturn true, if the filter accepts the givenkeyRing
based on the givenidentifier
.- Specified by:
acceptin interfaceKeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPPublicKeyRing,org.bouncycastle.openpgp.PGPPublicKeyRingCollection, String> - Overrides:
acceptin classExactUserId.PubRingSelectionStrategy- Parameters:
jid- identifierkeyRing- key ring- Returns:
- acceptance
-