Class OpenSSHKeyV1KeyFile
- java.lang.Object
-
- net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider
-
- com.hierynomus.sshj.userauth.keyprovider.OpenSSHKeyV1KeyFile
-
- All Implemented Interfaces:
FileKeyProvider
,KeyProvider
public class OpenSSHKeyV1KeyFile extends BaseFileKeyProvider
Reads a key file in the new OpenSSH format. The format is described in the following document: https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenSSHKeyV1KeyFile.Factory
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BCRYPT
protected org.slf4j.Logger
log
static java.lang.String
OPENSSH_PRIVATE_KEY
-
Fields inherited from class net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider
kp, pwdf, resource, type
-
-
Constructor Summary
Constructors Constructor Description OpenSSHKeyV1KeyFile()
-
Method Summary
Modifier and Type Method Description void
init(java.io.File location)
protected java.security.KeyPair
readKeyPair()
-
Methods inherited from class net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider
getPrivate, getPublic, getType, init, init, init, init, init
-
-
-
-
Field Detail
-
OPENSSH_PRIVATE_KEY
public static final java.lang.String OPENSSH_PRIVATE_KEY
- See Also:
- Constant Field Values
-
BCRYPT
public static final java.lang.String BCRYPT
- See Also:
- Constant Field Values
-
log
protected final org.slf4j.Logger log
-
-
Method Detail
-
init
public void init(java.io.File location)
- Specified by:
init
in interfaceFileKeyProvider
- Overrides:
init
in classBaseFileKeyProvider
-
readKeyPair
protected java.security.KeyPair readKeyPair() throws java.io.IOException
- Specified by:
readKeyPair
in classBaseFileKeyProvider
- Throws:
java.io.IOException
-
-