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 classPKCS5KeyFile.DecryptExceptionIndicates a problem decrypting the datastatic classPKCS5KeyFile.Factorystatic classPKCS5KeyFile.FormatExceptionIndicates a format issue with PKCS5 data
-
Constructor Summary
Constructors Constructor Description PKCS5KeyFile()
-
Method Summary
Modifier and Type Method Description protected java.security.KeyPairreadKeyPair()java.lang.StringtoString()-
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:
readKeyPairin classBaseFileKeyProvider- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-