Skip to content

Commit

Permalink
Merge pull request #15187 from iterate-ch/bugfix/GH-15183
Browse files Browse the repository at this point in the history
Fix #15183.
  • Loading branch information
dkocher authored Oct 10, 2023
2 parents 5318a73 + d823292 commit 0e4faf8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -90,7 +91,7 @@ public Boolean authenticate(final Host bookmark, final LoginCallback prompt, fin
default:
throw new InteroperabilityException(String.format("Unknown key format for file %s", identity.getName()));
}
provider.init(new InputStreamReader(identity.getInputStream(), StandardCharsets.UTF_8), new PasswordFinder() {
provider.init(new File(identity.getAbsolute()), new PasswordFinder() {
@Override
public char[] reqPassword(Resource<?> resource) {
if(StringUtils.isEmpty(credentials.getIdentityPassphrase())) {
Expand Down

0 comments on commit 0e4faf8

Please sign in to comment.