# Uses of Interface net.schmizz.sshj.userauth.keyprovider.KeyProvider (sshj 0.4.1 API)
Date: 2011-06-19

## Uses of Interface
net.schmizz.sshj.userauth.keyprovider.KeyProvider

Packages that use KeyProvider
net.schmizz.sshj
net.schmizz.sshj.userauth.keyprovider
net.schmizz.sshj.userauth.method

Uses of KeyProvider in net.schmizz.sshj

Methods in net.schmizz.sshj that return KeyProvider
`KeyProvider` `SSHClient.loadKeys(KeyPair kp)` Creates a `KeyProvider` from supplied `KeyPair`.
`KeyProvider` `SSHClient.loadKeys(String location)` Returns a `KeyProvider` instance created from a location on the file system where an unencrypted private key file (does not require a passphrase) can be found.
`KeyProvider` `SSHClient.loadKeys(String location, char[] passphrase)` Utility function for createing a `KeyProvider` instance from given location on the file system.
`KeyProvider` `SSHClient.loadKeys(String location, PasswordFinder passwordFinder)` Creates a `KeyProvider` instance from given location on the file system.
`KeyProvider` `SSHClient.loadKeys(String location, String passphrase)` Convenience method for creating a `KeyProvider` instance from a `location` where an encrypted key file is located.
`KeyProvider` `SSHClient.loadKeys(String privateKey, String publicKey, PasswordFinder passwordFinder)` Creates a `KeyProvider` instance from passed strings.

Methods in net.schmizz.sshj with parameters of type KeyProvider
`void` `SSHClient.authPublickey(String username, KeyProvider... keyProviders)` Authenticate `username` using the `"publickey"` authentication method.

Method parameters in net.schmizz.sshj with type arguments of type KeyProvider
`void` `SSHClient.authPublickey(String username, Iterable<KeyProvider> keyProviders)` Authenticate `username` using the `"publickey"` authentication method.

Uses of KeyProvider in net.schmizz.sshj.userauth.keyprovider

Subinterfaces of KeyProvider in net.schmizz.sshj.userauth.keyprovider
`interface` `FileKeyProvider` A file key provider is initialized with a location of

Classes in net.schmizz.sshj.userauth.keyprovider that implement KeyProvider
`class` `KeyPairWrapper` A `KeyProvider` wrapper around `KeyPair`
`class` `OpenSSHKeyFile` Represents an OpenSSH identity that consists of a PKCS8-encoded private key file and an unencrypted public key file of the same name with the `".pub"` extension.
`class` `PKCS8KeyFile` Represents a PKCS8-encoded key file.

Uses of KeyProvider in net.schmizz.sshj.userauth.method

Fields in net.schmizz.sshj.userauth.method declared as KeyProvider
`protected KeyProvider` `KeyedAuthMethod.kProv`

Constructors in net.schmizz.sshj.userauth.method with parameters of type KeyProvider
`AuthHostbased(KeyProvider kProv, String hostname, String hostuser)`
`AuthPublickey(KeyProvider kProv)` Initialize this method with the provider for public and private key.
`KeyedAuthMethod(String name, KeyProvider kProv)`

Copyright © 2009-2011. All Rights Reserved.