Skip to content

Commit

Permalink
Override public key.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Apr 29, 2024
1 parent 68bc801 commit 9edc75f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public class OpenSSHKeyV1KeyFile extends BaseFileKeyProvider {

private PublicKey pubKey;

@Override
public PublicKey getPublic()
throws IOException {
return pubKey != null ? pubKey : super.getPublic();
}

public static class Factory
implements net.schmizz.sshj.common.Factory.Named<FileKeyProvider> {

Expand Down

0 comments on commit 9edc75f

Please sign in to comment.