Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add challengePassword encryption/decryption for non RSA recipients. #351

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

netcat-pl
Copy link

Adds challengePassword encryption/decryption for non RSA recipients. This solves issue #300.

The goal was to minimally modify the existing interface, so all public API prototypes were retained. Only the DefaultCallbackHandler class has been extended to allow for providing the required challenge password values. Here is an example:

CertificateVerifier verifier = new ConsoleCertificateVerifier();
Map<String, String> passwords = new HashMap<>();
passwords.put("CA1", "secret1");
passwords.put("CA2", "secret2");
CallbackHandler handler = new DefaultCallbackHandler(verifier, passwords);

More details here.

Does this pull request add a feature or solve a bug? Yes, it does. It's a new feature PR.

@warrenmnocos
Copy link

Thanks! Waiting for this to get merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants