Class OpenSSHKeyFileUtil
- java.lang.Object
-
- com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyFileUtil
-
public class OpenSSHKeyFileUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenSSHKeyFileUtil.ParsedPubKey
-
Constructor Summary
Constructors Modifier Constructor Description private
OpenSSHKeyFileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.File
getPublicKeyFile(java.io.File privateKeyFile)
static OpenSSHKeyFileUtil.ParsedPubKey
initPubKey(java.io.Reader publicKey)
Read the separate public key provided alongside the private key
-
-
-
Method Detail
-
getPublicKeyFile
public static java.io.File getPublicKeyFile(java.io.File privateKeyFile)
-
initPubKey
public static OpenSSHKeyFileUtil.ParsedPubKey initPubKey(java.io.Reader publicKey) throws java.io.IOException
Read the separate public key provided alongside the private key- Parameters:
publicKey
- Public key accessible through aReader
- Throws:
java.io.IOException
-
-