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 classOpenSSHKeyFileUtil.ParsedPubKey
-
Method Summary
Modifier and Type Method Description static java.io.FilegetPublicKeyFile(java.io.File privateKeyFile)static OpenSSHKeyFileUtil.ParsedPubKeyinitPubKey(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
-
-