Modifier and Type | Method and Description |
---|---|
protected Iterable<KeyPair> |
ClientIdentitiesWatcher.doGetKeyPairs(SessionContext session,
ClientIdentityProvider p) |
Iterable<KeyPair> |
ClientIdentityFileWatcher.getClientIdentities(SessionContext session) |
Iterable<KeyPair> |
ClientIdentityProvider.getClientIdentities(SessionContext session)
Provides a
KeyPair representing the client identity |
protected boolean |
BuiltinClientIdentitiesWatcher.isSupported(SessionContext session,
KeyPair kp) |
protected Iterable<KeyPair> |
LazyClientKeyIdentityProvider.loadClientIdentities(SessionContext session,
NamedResource location) |
Iterable<KeyPair> |
ClientIdentityLoader.loadClientIdentities(SessionContext session,
NamedResource location,
FilePasswordProvider provider) |
static Map<String,KeyPair> |
ClientIdentity.loadIdentities(SessionContext session,
Path dir,
boolean strict,
Collection<String> types,
Function<? super String,String> idGenerator,
FilePasswordProvider provider,
LinkOption... options)
Scans a folder and loads all available identity files
|
Iterable<KeyPair> |
LazyClientKeyIdentityProvider.loadKeys(SessionContext session) |
Iterable<KeyPair> |
ClientIdentitiesWatcher.loadKeys(SessionContext session) |
Iterable<KeyPair> |
BuiltinClientIdentitiesWatcher.loadKeys(SessionContext session) |
protected Iterable<KeyPair> |
ClientIdentitiesWatcher.loadKeys(SessionContext session,
Predicate<? super KeyPair> filter) |
protected Iterable<KeyPair> |
ClientIdentityFileWatcher.reloadClientIdentities(SessionContext session,
Path path) |
Modifier and Type | Interface and Description |
---|---|
interface |
ClientSession
An authenticated session to a given SSH server.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractClientSession
Provides default implementations of
ClientSession related methods |
class |
ClientSessionImpl
The default implementation of a
ClientSession |
Modifier and Type | Method and Description |
---|---|
PublicKey |
PublicKeyEntry.appendPublicKey(SessionContext session,
Appendable sb,
PublicKeyEntryResolver fallbackResolver) |
PublicKey |
AuthorizedKeyEntry.appendPublicKey(SessionContext session,
Appendable sb,
PublicKeyEntryResolver fallbackResolver) |
static <A extends Appendable> |
KeyRandomArt.combine(SessionContext session,
A sb,
char separator,
KeyIdentityProvider provider)
Appends the combined random art entries for the provided keys
|
static String |
KeyRandomArt.combine(SessionContext session,
char separator,
KeyIdentityProvider provider)
Creates the combined representation of the random art entries for the provided keys
|
default PRV |
PrivateKeyEntryDecoder.decodePrivateKey(SessionContext session,
FilePasswordProvider passwordProvider,
byte... keyData) |
default PRV |
PrivateKeyEntryDecoder.decodePrivateKey(SessionContext session,
FilePasswordProvider passwordProvider,
byte[] keyData,
int offset,
int length) |
default PRV |
PrivateKeyEntryDecoder.decodePrivateKey(SessionContext session,
FilePasswordProvider passwordProvider,
InputStream keyData) |
PRV |
PrivateKeyEntryDecoder.decodePrivateKey(SessionContext session,
String keyType,
FilePasswordProvider passwordProvider,
InputStream keyData) |
default PUB |
PublicKeyEntryDecoder.decodePublicKey(SessionContext session,
String keyType,
byte... keyData) |
default PUB |
PublicKeyEntryDecoder.decodePublicKey(SessionContext session,
String keyType,
byte[] keyData,
int offset,
int length) |
PUB |
PublicKeyEntryDecoder.decodePublicKey(SessionContext session,
String keyType,
InputStream keyData) |
default PUB |
PublicKeyEntryDecoder.decodePublicKeyByType(SessionContext session,
String keyType,
InputStream keyData) |
static Collection<KeyRandomArt> |
KeyRandomArt.generate(SessionContext session,
KeyIdentityProvider provider)
Extracts and generates random art entries for all key in the provider
|
String |
FilePasswordProvider.getPassword(SessionContext session,
NamedResource resourceKey,
int retryIndex) |
default FilePasswordProvider.ResourceDecodeResult |
FilePasswordProvider.handleDecodeAttemptResult(SessionContext session,
NamedResource resourceKey,
int retryIndex,
String password,
Exception err)
Invoked to inform the password provide about the decoding result.
|
static NavigableMap<String,KeyPair> |
IdentityUtils.loadIdentities(SessionContext session,
Map<String,? extends Path> paths,
FilePasswordProvider provider,
OpenOption... options) |
PublicKey |
PublicKeyEntryResolver.resolve(SessionContext session,
String keyType,
byte[] keyData) |
PrivateKey |
PrivateKeyEntryResolver.resolve(SessionContext session,
String keyType,
byte[] keyData) |
default PrivateKey |
PrivateKeyEntryDecoder.resolve(SessionContext session,
String keyType,
byte[] keyData) |
default PublicKey |
PublicKeyEntryDecoder.resolve(SessionContext session,
String keyType,
byte[] keyData) |
PublicKey |
PublicKeyEntry.resolvePublicKey(SessionContext session,
PublicKeyEntryResolver fallbackResolver) |
static List<PublicKey> |
PublicKeyEntry.resolvePublicKeyEntries(SessionContext session,
Collection<? extends PublicKeyEntry> entries,
PublicKeyEntryResolver fallbackResolver) |
Modifier and Type | Method and Description |
---|---|
ECPublicKey |
ECDSAPublicKeyEntryDecoder.decodePublicKey(SessionContext session,
String keyType,
InputStream keyData) |
RSAPublicKey |
RSAPublicKeyDecoder.decodePublicKey(SessionContext session,
String keyType,
InputStream keyData) |
DSAPublicKey |
DSSPublicKeyEntryDecoder.decodePublicKey(SessionContext session,
String keyType,
InputStream keyData) |
Modifier and Type | Method and Description |
---|---|
Collection<KeyPair> |
AbstractKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
byte[] bytes) |
abstract Collection<KeyPair> |
AbstractKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream) |
Collection<KeyPair> |
AbstractKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
List<String> lines)
Extracts the key pairs within a single delimited by markers block of lines.
|
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
IoResource<?> resource,
FilePasswordProvider passwordProvider) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
IoResource<?> resource,
FilePasswordProvider passwordProvider,
Charset cs) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
BufferedReader r) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
InputStream stream) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
InputStream stream,
Charset cs) |
Collection<KeyPair> |
AbstractKeyPairResourceParser.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
List<String> lines) |
Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
List<String> lines)
Loads key pairs from the given resource text lines
|
Collection<KeyPair> |
FileWatcherKeyPairResourceLoader.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
List<String> lines) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
Reader r) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
String data) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
Path path,
FilePasswordProvider passwordProvider,
Charset cs,
OpenOption... options) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
Path path,
FilePasswordProvider passwordProvider,
OpenOption... options)
Loads private key data - Note: any non-ASCII characters are assumed to be UTF-8 encoded
|
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
URL url,
FilePasswordProvider passwordProvider) |
default Collection<KeyPair> |
KeyPairResourceLoader.loadKeyPairs(SessionContext session,
URL url,
FilePasswordProvider passwordProvider,
Charset cs) |
protected Collection<KeyPair> |
FileWatcherKeyPairResourceLoader.reloadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
List<String> lines) |
Modifier and Type | Method and Description |
---|---|
ECPrivateKey |
OpenSSHECDSAPrivateKeyEntryDecoder.decodePrivateKey(SessionContext session,
String keyType,
FilePasswordProvider passwordProvider,
InputStream keyData) |
RSAPrivateKey |
OpenSSHRSAPrivateKeyDecoder.decodePrivateKey(SessionContext session,
String keyType,
FilePasswordProvider passwordProvider,
InputStream keyData) |
DSAPrivateKey |
OpenSSHDSSPrivateKeyEntryDecoder.decodePrivateKey(SessionContext session,
String keyType,
FilePasswordProvider passwordProvider,
InputStream keyData) |
byte[] |
OpenSSHKeyDecryptor.decodePrivateKeyBytes(SessionContext session,
NamedResource resourceKey,
String cipherName,
byte[] privateDataBytes,
String password) |
byte[] |
OpenSSHParserContext.decodePrivateKeyBytes(SessionContext session,
NamedResource resourceKey,
String cipherName,
byte[] privateDataBytes,
String password) |
Collection<KeyPair> |
OpenSSHKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream) |
protected Map.Entry<PrivateKey,String> |
OpenSSHKeyPairResourceParser.readPrivateKey(SessionContext session,
NamedResource resourceKey,
OpenSSHParserContext context,
String keyType,
FilePasswordProvider passwordProvider,
InputStream stream) |
protected List<KeyPair> |
OpenSSHKeyPairResourceParser.readPrivateKeys(SessionContext session,
NamedResource resourceKey,
OpenSSHParserContext context,
Collection<? extends PublicKey> publicKeys,
FilePasswordProvider passwordProvider,
InputStream stream) |
protected PublicKey |
OpenSSHKeyPairResourceParser.readPublicKey(SessionContext session,
NamedResource resourceKey,
OpenSSHParserContext context,
InputStream stream) |
protected OpenSSHKdfOptions |
OpenSSHKeyPairResourceParser.resolveKdfOptions(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
InputStream stream) |
protected <S extends InputStream> |
OpenSSHKeyPairResourceParser.validateStreamMagicMarker(SessionContext session,
NamedResource resourceKey,
S stream) |
Modifier and Type | Method and Description |
---|---|
byte[] |
RawKdfOptions.decodePrivateKeyBytes(SessionContext session,
NamedResource resourceKey,
String cipherName,
byte[] privateDataBytes,
String password) |
byte[] |
BCryptKdfOptions.decodePrivateKeyBytes(SessionContext session,
NamedResource resourceKey,
String cipherName,
byte[] privateDataBytes,
String password) |
Modifier and Type | Method and Description |
---|---|
Collection<KeyPair> |
ECDSAPEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream) |
Collection<KeyPair> |
RSAPEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream) |
Collection<KeyPair> |
PKCS8PEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream) |
Collection<KeyPair> |
DSSPEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream) |
Collection<KeyPair> |
AbstractPEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
List<String> lines) |
Modifier and Type | Method and Description |
---|---|
Collection<KeyPair> |
AbstractPuttyKeyDecoder.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
FilePasswordProvider passwordProvider,
List<String> lines) |
Collection<KeyPair> |
AbstractPuttyKeyDecoder.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
List<String> pubLines,
List<String> prvLines,
String prvEncryption,
FilePasswordProvider passwordProvider) |
Collection<KeyPair> |
AbstractPuttyKeyDecoder.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
String pubData,
String prvData,
String prvEncryption,
FilePasswordProvider passwordProvider) |
Modifier and Type | Field and Description |
---|---|
protected SessionContext |
AbstractResourceKeyPairProvider.KeyPairIterator.session |
Modifier and Type | Method and Description |
---|---|
SessionContext |
MultiKeyIdentityIterator.getSessionContext() |
Modifier and Type | Method and Description |
---|---|
protected Iterable<KeyPair> |
AbstractResourceKeyPairProvider.doLoadKeys(SessionContext session,
NamedResource resourceKey,
InputStream inputStream,
FilePasswordProvider provider) |
protected Iterable<KeyPair> |
AbstractResourceKeyPairProvider.doLoadKeys(SessionContext session,
NamedResource resourceKey,
R resource,
FilePasswordProvider provider) |
protected Iterable<KeyPair> |
FileKeyPairProvider.doLoadKeys(SessionContext session,
Path resource) |
protected Iterable<KeyPair> |
AbstractResourceKeyPairProvider.doLoadKeys(SessionContext session,
R resource) |
protected IoResource<Path> |
FileKeyPairProvider.getIoResource(SessionContext session,
Path resource) |
protected IoResource<?> |
AbstractResourceKeyPairProvider.getIoResource(SessionContext session,
R resource) |
protected IoResource<?> |
ClassLoadableResourceKeyPairProvider.getIoResource(SessionContext session,
String resource) |
default Iterable<String> |
KeyPairProvider.getKeyTypes(SessionContext session) |
Iterable<String> |
MappedKeyPairProvider.getKeyTypes(SessionContext session) |
static Iterable<KeyPair> |
KeyIdentityProvider.iterableOf(SessionContext session,
Collection<? extends KeyIdentityProvider> providers)
|
default KeyPair |
KeyPairProvider.loadKey(SessionContext session,
String type)
Load a key of the specified type which can be "ssh-rsa", "ssh-dss",
or "ecdsa-sha2-nistp{256,384,521}".
|
KeyPair |
MappedKeyPairProvider.loadKey(SessionContext session,
String type) |
Iterable<KeyPair> |
MultiKeyIdentityProvider.loadKeys(SessionContext session) |
Iterable<KeyPair> |
MappedKeyPairProvider.loadKeys(SessionContext session) |
Iterable<KeyPair> |
ClassLoadableResourceKeyPairProvider.loadKeys(SessionContext session) |
Iterable<KeyPair> |
FileKeyPairProvider.loadKeys(SessionContext session) |
Iterable<KeyPair> |
KeyIdentityProvider.loadKeys(SessionContext session)
Load available keys.
|
protected Iterable<KeyPair> |
AbstractResourceKeyPairProvider.loadKeys(SessionContext session,
Collection<? extends R> resources) |
protected InputStream |
AbstractResourceKeyPairProvider.openKeyPairResource(SessionContext session,
NamedResource resourceKey,
R resource) |
Constructor and Description |
---|
KeyPairIterator(SessionContext session,
Collection<? extends R> resources) |
MultiKeyIdentityIterator(SessionContext session,
Iterable<? extends KeyIdentityProvider> providers) |
Modifier and Type | Interface and Description |
---|---|
interface |
Session
Represents an SSH session.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSession
The AbstractSession handles all the basic SSH protocol such as key exchange, authentication,
encoding and decoding.
|
class |
SessionHelper
Contains split code in order to make
AbstractSession class smaller |
Modifier and Type | Method and Description |
---|---|
static Iterable<KeyPair> |
SecurityUtils.loadKeyPairIdentities(SessionContext session,
NamedResource resourceKey,
InputStream inputStream,
FilePasswordProvider provider) |
Modifier and Type | Method and Description |
---|---|
Collection<KeyPair> |
BouncyCastleKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream) |
Collection<KeyPair> |
BouncyCastleKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
List<String> lines) |
static KeyPair |
BouncyCastleKeyPairResourceParser.loadKeyPair(SessionContext session,
NamedResource resourceKey,
InputStream inputStream,
FilePasswordProvider provider) |
Modifier and Type | Method and Description |
---|---|
net.i2p.crypto.eddsa.EdDSAPrivateKey |
OpenSSHEd25519PrivateKeyEntryDecoder.decodePrivateKey(SessionContext session,
String keyType,
FilePasswordProvider passwordProvider,
InputStream keyData) |
net.i2p.crypto.eddsa.EdDSAPublicKey |
Ed25519PublicKeyDecoder.decodePublicKey(SessionContext session,
String keyType,
InputStream keyData) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<KeyPair> |
SimpleGeneratorHostKeyProvider.doReadKeyPairs(SessionContext session,
NamedResource resourceKey,
InputStream inputStream) |
protected Iterable<KeyPair> |
AbstractGeneratorHostKeyProvider.doReadKeyPairs(SessionContext session,
NamedResource resourceKey,
InputStream inputStream) |
protected Iterable<KeyPair> |
AbstractGeneratorHostKeyProvider.loadFromFile(SessionContext session,
String alg,
Path keyPath) |
List<KeyPair> |
AbstractGeneratorHostKeyProvider.loadKeys(SessionContext session) |
protected Iterable<KeyPair> |
AbstractGeneratorHostKeyProvider.readKeyPairs(SessionContext session,
Path keyPath,
OpenOption... options) |
protected Iterable<KeyPair> |
AbstractGeneratorHostKeyProvider.resolveKeyPairs(SessionContext session,
Path keyPath) |
Modifier and Type | Interface and Description |
---|---|
interface |
ServerSession |
Modifier and Type | Class and Description |
---|---|
class |
AbstractServerSession
Provides default implementations for
ServerSession related methods |
class |
ServerSessionImpl
The default implementation for a
ServerSession |
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.