Skip to content

Commit

Permalink
Override public key.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Oct 23, 2023
1 parent 58681bb commit 17fe2ab
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,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 17fe2ab

Please sign in to comment.