/** * 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)); }
/** * 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)); }