java-native-access / java-native-access/jna

Add support for credentials reading in advapi32

Open
#627 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Java
Stars
8.9k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

It seems advapi32.dll includes methods for accessing credentials (CredEnumerateW, CredFree etc).
I haven't seen them in Advapi32 on JNA, and would like them to be added.

My main goal is to allow using git credential stores on jgitflow-maven-plugin and JGit. I've seen the git source code also uses advapi (https://github.com/git/git/blob/master/contrib/credential/wincred/git-credential-wincred.c) so JNA seemed like the right choice.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the requested CredEnumerateW and CredFree entry points and compare their use in Git's contrib/credential/wincred/git-credential-wincred.c with JNA's existing Advapi32 declarations. Done means the Windows credential APIs needed by JGit and jgitflow-maven-plugin are exposed through JNA and covered by appropriate validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.