Class PKCS5KeyFile
- java.lang.Object
-
- net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider
-
- net.schmizz.sshj.userauth.keyprovider.PKCS5KeyFile
-
- All Implemented Interfaces:
FileKeyProvider
,KeyProvider
public class PKCS5KeyFile extends BaseFileKeyProvider
Represents a PKCS5-encoded key file. This is the format typically used by OpenSSH, OpenSSL, Amazon, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PKCS5KeyFile.DecryptException
Indicates a problem decrypting the datastatic class
PKCS5KeyFile.Factory
static class
PKCS5KeyFile.FormatException
Indicates a format issue with PKCS5 data
-
Constructor Summary
Constructors Constructor Description PKCS5KeyFile()
-
Method Summary
Modifier and Type Method Description protected java.security.KeyPair
readKeyPair()
java.lang.String
toString()
-
Methods inherited from class net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider
getPrivate, getPublic, getType, init, init, init, init, init, init
-
-
-
-
Method Detail
-
readKeyPair
protected java.security.KeyPair readKeyPair() throws java.io.IOException
- Specified by:
readKeyPair
in classBaseFileKeyProvider
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-