コード例 #1
0
 /**
  * Fetch a key by its 16 hex char fingerprint String
  *
  * @param context the current GnuPGContext
  * @param fingerprint the 16 hex char fingerprint String
  * @param secret_only whether to return only secret keys
  */
 protected GnuPGKey(GnuPGContext context, String fingerprint, boolean secret_only) {
   setInternalRepresentation(
       gpgmeGetKey(context.getInternalRepresentation(), fingerprint, secret_only));
 }
コード例 #2
0
 /**
  * Fetch a public key by its 16 hex char fingerprint String
  *
  * @param context - the current GnuPGContext
  * @param fingerprint - the 16 hex char fingerprint String
  */
 protected GnuPGKey(GnuPGContext context, String fingerprint) {
   setInternalRepresentation(gpgmeGetKey(context.getInternalRepresentation(), fingerprint, false));
 }