com.didisoft.pgp.events
Interface IKeyStoreSearchListener


public interface IKeyStoreSearchListener

Listener Interface for KeyStore key search events.

An example practical usage for this interface can be to search a key in another source and import it into the invoking KeyStore allowing it to recover before throwing key not found exception.

See Also:
KeyStore.addSearchListener(IKeyStoreSearchListener)

Method Summary
 void onKeyNotFound(KeyStore keyStore, boolean isPublic, long keyId, java.lang.String keyIdHex, java.lang.String userId)
          Event fired when a matching key (e.g.
 

Method Detail

onKeyNotFound

void onKeyNotFound(KeyStore keyStore,
                   boolean isPublic,
                   long keyId,
                   java.lang.String keyIdHex,
                   java.lang.String userId)
Event fired when a matching key (e.g. when verifying a signature of a .pgp file) is not found in a KeyStore

Parameters:
keyStore - KeyStore object firing the event
isPublic - is the missing key a public key (true) or private key (false)
keyId - Raw Key ID of the missing key
keyIdHex - Hexadecimal Key ID of the missing key
userId - User ID of the missing key


Copyright © 2006-2017 DidiSoft Ltd. All Rights Reserved.