Class XMPP.SecRingSelectionStrategy
java.lang.Object
org.pgpainless.util.selection.keyring.SecretKeyRingSelectionStrategy<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, String>
- Enclosing class:
XMPP
SecretKeyRingSelectionStrategy
which accepts a given
PGPSecretKeyRing
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.SecretKeyRingSelectionStrategy
selectKeyRingsFromCollection, selectKeyRingsFromCollections
-
Constructor Details
-
SecRingSelectionStrategy
public SecRingSelectionStrategy()
-
-
Method Details
-
accept
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, String> - Overrides:
accept
in classExactUserId.SecRingSelectionStrategy
- Parameters:
jid
- identifierkeyRing
- key ring- Returns:
- acceptance
-