Skip to content

Commit

Permalink
Revert "Fix #15183."
Browse files Browse the repository at this point in the history
This reverts commit d823292.
  • Loading branch information
dkocher committed Oct 23, 2023
1 parent 3fef1fb commit 59e1843
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
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 @@ -91,7 +90,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 File(identity.getAbsolute()), new PasswordFinder() {
provider.init(new InputStreamReader(identity.getInputStream(), StandardCharsets.UTF_8), new PasswordFinder() {
@Override
public char[] reqPassword(Resource<?> resource) {
if(StringUtils.isEmpty(credentials.getIdentityPassphrase())) {
Expand Down

0 comments on commit 59e1843

Please sign in to comment.