Skip to content

Commit

Permalink
Fix #15183.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Oct 10, 2023
1 parent 5318a73 commit d823292
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 d823292

Please sign in to comment.