Class XMPP.SecRingSelectionStrategy
- java.lang.Object
-
- org.pgpainless.util.selection.keyring.SecretKeyRingSelectionStrategy<java.lang.String>
-
- org.pgpainless.util.selection.keyring.impl.ExactUserId.SecRingSelectionStrategy
-
- org.pgpainless.util.selection.keyring.impl.XMPP.SecRingSelectionStrategy
-
- All Implemented Interfaces:
KeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPSecretKeyRing,org.bouncycastle.openpgp.PGPSecretKeyRingCollection,java.lang.String>
- Enclosing class:
- XMPP
public static class XMPP.SecRingSelectionStrategy extends ExactUserId.SecRingSelectionStrategy
SecretKeyRingSelectionStrategy
which accepts a givenPGPSecretKeyRing
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 SecRingSelectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.String jid, org.bouncycastle.openpgp.PGPSecretKeyRing keyRing)
Return true, if the filter accepts the given-
Methods inherited from class org.pgpainless.util.selection.keyring.SecretKeyRingSelectionStrategy
selectKeyRingsFromCollection, selectKeyRingsFromCollections
-
-
-
-
Method Detail
-
accept
public boolean accept(java.lang.String jid, org.bouncycastle.openpgp.PGPSecretKeyRing 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.PGPSecretKeyRing,org.bouncycastle.openpgp.PGPSecretKeyRingCollection,java.lang.String>
- Overrides:
accept
in classExactUserId.SecRingSelectionStrategy
- Parameters:
jid
- identifierkeyRing
- key ring- Returns:
- acceptance
-
-