Skip to content

Commit

Permalink
Fix the provider of the keystore created by AutoLoginProvider (Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ebourg committed Jul 4, 2024
1 parent 50c7f58 commit 08c1228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class PasswordInterceptorService extends Service {
private final Service service;

public PasswordInterceptorService(Service service) {
super(provider, service.getType(), service.getAlgorithm(), service.getClassName(), null, null);
super(AutoLoginProvider.this, service.getType(), service.getAlgorithm(), service.getClassName(), null, null);
this.service = service;
}

Expand Down
1 change: 1 addition & 0 deletions jsign-crypto/src/test/java/net/jsign/YubikeyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void testAutoLogin() throws Exception {

Provider provider = YubiKey.getProvider();
KeyStore keystore = KeyStore.getInstance("PKCS11", provider);
assertEquals("provider", provider, keystore.getProvider());
keystore.load(() -> new KeyStore.PasswordProtection("123456".toCharArray()));

String alias = keystore.aliases().nextElement();
Expand Down

0 comments on commit 08c1228

Please sign in to comment.