Class PKCS8KeyFile
- java.lang.Object
-
- net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider
-
- net.schmizz.sshj.userauth.keyprovider.PKCS8KeyFile
-
- All Implemented Interfaces:
FileKeyProvider,KeyProvider
- Direct Known Subclasses:
OpenSSHKeyFile
public class PKCS8KeyFile extends BaseFileKeyProvider
Key File implementation supporting PEM-encoded PKCS8 and PKCS1 formats with or without password-based encryption
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPKCS8KeyFile.Factory
-
Constructor Summary
Constructors Constructor Description PKCS8KeyFile()
-
Method Summary
Modifier and Type Method Description protected java.security.KeyPairreadKeyPair()java.lang.StringtoString()
-
-
-
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
-
-