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
Represents a PKCS8-encoded key file. This is the format used by (old-style) OpenSSH and OpenSSL.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPKCS8KeyFile.Factory
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogprotected KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>privateKeyInfoKeyPairConverter-
Fields inherited from class net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider
kp, pwdf, resource, type
-
-
Constructor Summary
Constructors Constructor Description PKCS8KeyFile()
-
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
-
-
-
-
Field Detail
-
log
protected final org.slf4j.Logger log
-
privateKeyInfoKeyPairConverter
protected KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo> privateKeyInfoKeyPairConverter
-
-
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
-
-