Class BaseFileKeyProvider
java.lang.Object
net.schmizz.sshj.userauth.keyprovider.BaseFileKeyProvider
- All Implemented Interfaces:
FileKeyProvider, KeyProvider
- Direct Known Subclasses:
OpenSSHKeyV1KeyFile, PKCS8KeyFile, PuTTYKeyFile
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()voidvoidinit(File location, PasswordFinder pwdf) voidvoidvoidinit(Reader privateKey, Reader publicKey, PasswordFinder pwdf) voidinit(Reader location, PasswordFinder pwdf) voidvoidinit(String privateKey, String publicKey, PasswordFinder pwdf) protected abstract KeyPair
-
Field Details
-
resource
-
pwdf
-
kp
-
type
-
-
Constructor Details
-
BaseFileKeyProvider
public BaseFileKeyProvider()
-
-
Method Details
-
init
- Specified by:
initin interfaceFileKeyProvider
-
init
- Specified by:
initin interfaceFileKeyProvider
-
init
- Specified by:
initin interfaceFileKeyProvider
-
init
- Specified by:
initin interfaceFileKeyProvider
-
init
- Specified by:
initin interfaceFileKeyProvider
-
init
- Specified by:
initin interfaceFileKeyProvider
-
init
- Specified by:
initin interfaceFileKeyProvider
-
init
- Specified by:
initin interfaceFileKeyProvider
-
getPrivate
- Specified by:
getPrivatein interfaceKeyProvider- Returns:
- the private key.
- Throws:
IOException- if there is an I/O error retrieving the private key
-
getPublic
- Specified by:
getPublicin interfaceKeyProvider- Returns:
- the public key.
- Throws:
IOException- if there is an I/O error retrieving the public key
-
getType
- Specified by:
getTypein interfaceKeyProvider- Returns:
- the
KeyType. - Throws:
IOException- if there is an I/O error retrieving the key type
-
readKeyPair
- Throws:
IOException
-