Modifier and Type | Method and Description |
---|---|
Map.Entry<String,byte[]> |
SshAgent.sign(SessionContext session,
PublicKey key,
String algo,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
Map.Entry<String,byte[]> |
AgentDelegate.sign(SessionContext session,
PublicKey key,
String algo,
byte[] data) |
Map.Entry<String,byte[]> |
AbstractAgentProxy.sign(SessionContext session,
PublicKey key,
String algo,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
Map.Entry<String,byte[]> |
AgentImpl.sign(SessionContext session,
PublicKey key,
String algo,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
Iterable<?> |
AuthenticationIdentitiesProvider.loadIdentities(SessionContext session) |
Modifier and Type | Method and Description |
---|---|
static Iterator<? extends Map.Entry<KeyPair,List<X509Certificate>>> |
HostKeyIdentityProvider.iteratorOf(SessionContext session,
HostKeyIdentityProvider provider) |
Iterable<? extends Map.Entry<KeyPair,List<X509Certificate>>> |
HostKeyIdentityProvider.loadHostKeys(SessionContext session) |
Modifier and Type | Method and Description |
---|---|
static Iterable<String> |
PasswordIdentityProvider.iterableOf(SessionContext session,
Collection<? extends PasswordIdentityProvider> providers)
Wraps a group of
PasswordIdentityProvider into an Iterable of their combined passwords |
static Iterator<String> |
PasswordIdentityProvider.iteratorOf(SessionContext session,
PasswordIdentityProvider provider)
Resolves a non-
null iterator of the available passwords |
static Iterator<String> |
PasswordIdentityProvider.iteratorOf(SessionContext session,
PasswordIdentityProvider identities,
PasswordIdentityProvider passwords)
Creates a "unified"
Iterator of passwords out of 2 possible PasswordIdentityProvider |
Iterable<String> |
PasswordIdentityProvider.loadPasswords(SessionContext session) |
static PasswordIdentityProvider |
PasswordIdentityProvider.multiProvider(SessionContext session,
Collection<? extends PasswordIdentityProvider> providers)
Wraps a group of
PasswordIdentityProvider into a single one |
static PasswordIdentityProvider |
PasswordIdentityProvider.multiProvider(SessionContext session,
PasswordIdentityProvider... providers)
Wraps a group of
PasswordIdentityProvider into a single one |
static PasswordIdentityProvider |
PasswordIdentityProvider.resolvePasswordIdentityProvider(SessionContext session,
PasswordIdentityProvider identities,
PasswordIdentityProvider passwords)
Creates a "unified"
PasswordIdentityProvider out of 2 possible ones as follows: |
Modifier and Type | Method and Description |
---|---|
Map.Entry<String,byte[]> |
KeyPairIdentity.sign(SessionContext session,
String algo,
byte[] data) |
Map.Entry<String,byte[]> |
KeyAgentIdentity.sign(SessionContext session,
String algo,
byte[] data) |
Map.Entry<String,byte[]> |
PublicKeyIdentity.sign(SessionContext session,
String algo,
byte[] data)
Proves the public key identity by signing the given data
|
Modifier and Type | Method and Description |
---|---|
protected Iterable<KeyPair> |
ClientIdentitiesWatcher.doGetKeyPairs(SessionContext session,
ClientIdentityProvider p) |
Iterable<KeyPair> |
ClientIdentityProvider.getClientIdentities(SessionContext session)
Provides a
KeyPair representing the client identity |
Iterable<KeyPair> |
ClientIdentityFileWatcher.getClientIdentities(SessionContext session) |
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> |
ClientIdentitiesWatcher.loadKeys(SessionContext session) |
Iterable<KeyPair> |
BuiltinClientIdentitiesWatcher.loadKeys(SessionContext session) |
Iterable<KeyPair> |
LazyClientKeyIdentityProvider.loadKeys(SessionContext session) |
protected Iterable<KeyPair> |
ClientIdentitiesWatcher.loadKeys(SessionContext session,
Predicate<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 | Class and Description |
---|---|
class |
AbstractUserAuthMethodFactory<S extends SessionContext,M extends UserAuthInstance<S>> |
interface |
UserAuthFactoriesManager<S extends SessionContext,M extends UserAuthInstance<S>,F extends UserAuthMethodFactory<S,M>> |
interface |
UserAuthInstance<S extends SessionContext>
Represents an authentication-in-progress tracker for a specific session
|
interface |
UserAuthMethodFactory<S extends SessionContext,M extends UserAuthInstance<S>>
Represents a user authentication method
|
Modifier and Type | Method and Description |
---|---|
static <S extends SessionContext,M extends UserAuthInstance<S>> |
UserAuthMethodFactory.createUserAuth(S session,
Collection<? extends UserAuthMethodFactory<S,M>> factories,
String name) |
Modifier and Type | Method and Description |
---|---|
static boolean |
UserAuthMethodFactory.isDataIntegrityAuthenticationTransport(SessionContext session) |
static boolean |
UserAuthMethodFactory.isSecureAuthenticationTransport(SessionContext session)
According to RFC 4252 - section 8:
|
Modifier and Type | Method and Description |
---|---|
PublicKey |
AuthorizedKeyEntry.appendPublicKey(SessionContext session,
Appendable sb,
PublicKeyEntryResolver fallbackResolver) |
PublicKey |
PublicKeyEntry.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 |
PublicKeyRawDataDecoder.decodePublicKey(SessionContext session,
String keyType,
byte[] keyData,
int offset,
int length,
Map<String,String> headers) |
default PUB |
PublicKeyRawDataDecoder.decodePublicKey(SessionContext session,
String keyType,
byte[] keyData,
Map<String,String> headers) |
PUB |
PublicKeyRawDataDecoder.decodePublicKey(SessionContext session,
String keyType,
InputStream keyData,
Map<String,String> headers) |
default PUB |
PublicKeyEntryDecoder.decodePublicKeyByType(SessionContext session,
String keyType,
InputStream keyData,
Map<String,String> headers) |
PUB |
PublicKeyRawDataDecoder.decodePublicKeyByType(SessionContext session,
String keyType,
InputStream keyData,
Map<String,String> headers) |
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) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
IoResource<?> resource) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
IoResource<?> resource,
Charset cs) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
NamedResource resourceKey,
BufferedReader rdr) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
NamedResource resourceKey,
InputStream stream) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
NamedResource resourceKey,
InputStream stream,
Charset cs) |
PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
NamedResource resourceKey,
List<String> lines) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
NamedResource resourceKey,
Reader rdr) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
Path path,
Charset cs,
OpenOption... options) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
Path path,
OpenOption... options) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
URL url) |
default PUB |
PublicKeyRawDataReader.readPublicKey(SessionContext session,
URL url,
Charset cs) |
default PrivateKey |
PrivateKeyEntryDecoder.resolve(SessionContext session,
String keyType,
byte[] keyData) |
PrivateKey |
PrivateKeyEntryResolver.resolve(SessionContext session,
String keyType,
byte[] keyData) |
default PublicKey |
PublicKeyEntryDecoder.resolve(SessionContext session,
String keyType,
byte[] keyData,
Map<String,String> headers) |
PublicKey |
PublicKeyEntryResolver.resolve(SessionContext session,
String keyType,
byte[] keyData,
Map<String,String> headers) |
PublicKey |
PublicKeyEntry.resolvePublicKey(SessionContext session,
Map<String,String> headers,
PublicKeyEntryResolver fallbackResolver) |
PublicKey |
AuthorizedKeyEntry.resolvePublicKey(SessionContext session,
PublicKeyEntryResolver fallbackResolver) |
static List<PublicKey> |
PublicKeyEntry.resolvePublicKeyEntries(SessionContext session,
Collection<? extends PublicKeyEntry> entries,
PublicKeyEntryResolver fallbackResolver) |
Modifier and Type | Method and Description |
---|---|
Collection<KeyPair> |
AbstractKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
byte[] bytes,
Map<String,String> headers) |
abstract Collection<KeyPair> |
AbstractKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream,
Map<String,String> headers) |
Collection<KeyPair> |
AbstractKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
List<String> lines,
Map<String,String> headers)
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) |
protected Map.Entry<Map<String,String>,List<String>> |
AbstractKeyPairResourceParser.separateDataLinesFromHeaders(SessionContext session,
NamedResource resourceKey,
String startLine,
String endLine,
List<String> dataLines) |
Modifier and Type | Method and Description |
---|---|
DSAPrivateKey |
OpenSSHDSSPrivateKeyEntryDecoder.decodePrivateKey(SessionContext session,
String keyType,
FilePasswordProvider passwordProvider,
InputStream keyData) |
RSAPrivateKey |
OpenSSHRSAPrivateKeyDecoder.decodePrivateKey(SessionContext session,
String keyType,
FilePasswordProvider passwordProvider,
InputStream keyData) |
ECPrivateKey |
OpenSSHECDSAPrivateKeyEntryDecoder.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,
Map<String,String> headers) |
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,
Map<String,String> headers) |
protected OpenSSHKdfOptions |
OpenSSHKeyPairResourceParser.resolveKdfOptions(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
InputStream stream,
Map<String,String> headers) |
protected <S extends InputStream> |
OpenSSHKeyPairResourceParser.validateStreamMagicMarker(SessionContext session,
NamedResource resourceKey,
S stream) |
Modifier and Type | Method and Description |
---|---|
byte[] |
BCryptKdfOptions.decodePrivateKeyBytes(SessionContext session,
NamedResource resourceKey,
String cipherName,
byte[] privateDataBytes,
String password) |
byte[] |
RawKdfOptions.decodePrivateKeyBytes(SessionContext session,
NamedResource resourceKey,
String cipherName,
byte[] privateDataBytes,
String password) |
Modifier and Type | Method and Description |
---|---|
Collection<KeyPair> |
PKCS8PEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
byte[] encBytes,
PKCS8PrivateKeyInfo pkcs8Info,
Map<String,String> headers) |
Collection<KeyPair> |
PKCS8PEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream,
Map<String,String> headers) |
Collection<KeyPair> |
RSAPEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream,
Map<String,String> headers) |
Collection<KeyPair> |
ECDSAPEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream,
Map<String,String> headers) |
Collection<KeyPair> |
DSSPEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream,
Map<String,String> headers) |
Collection<KeyPair> |
AbstractPEMResourceKeyPairParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
List<String> lines,
Map<String,String> headers) |
Modifier and Type | Method and Description |
---|---|
PublicKey |
Ssh2PublicKeyEntryDecoder.decodePublicKey(SessionContext session,
String keyType,
InputStream keyData,
Map<String,String> headers) |
PublicKey |
Ssh2PublicKeyEntryDecoder.decodePublicKeyByType(SessionContext session,
String keyType,
InputStream keyData,
Map<String,String> headers) |
PublicKey |
Ssh2PublicKeyEntryDecoder.readPublicKey(SessionContext session,
NamedResource resourceKey,
List<String> lines) |
PublicKey |
Ssh2PublicKeyEntryDecoder.readPublicKey(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
byte[] dataBytes,
Map<String,String> headers) |
PublicKey |
Ssh2PublicKeyEntryDecoder.readPublicKey(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
List<String> lines,
Map<String,String> headers) |
PublicKey |
Ssh2PublicKeyEntryDecoder.resolve(SessionContext session,
String keyType,
byte[] keyData,
Map<String,String> headers) |
protected Map.Entry<Map<String,String>,List<String>> |
Ssh2PublicKeyEntryDecoder.separateDataLinesFromHeaders(SessionContext session,
NamedResource resourceKey,
String startLine,
String endLine,
List<String> lines) |
Modifier and Type | Method and Description |
---|---|
FileSystem |
FileSystemFactory.createFileSystem(SessionContext session)
Create user specific file system.
|
Path |
FileSystemFactory.getUserHomeDir(SessionContext session) |
default void |
FileSystemAware.setFileSystemFactory(FileSystemFactory factory,
SessionContext session)
Sets the
FileSystemFactory used to create the FileSystem to be used by the session |
Modifier and Type | Method and Description |
---|---|
FileSystem |
NativeFileSystemFactory.createFileSystem(SessionContext session) |
Path |
NativeFileSystemFactory.getUserHomeDir(SessionContext session) |
Modifier and Type | Method and Description |
---|---|
FileSystem |
NoneFileSystemFactory.createFileSystem(SessionContext session) |
Path |
NoneFileSystemFactory.getUserHomeDir(SessionContext session) |
Modifier and Type | Method and Description |
---|---|
FileSystem |
VirtualFileSystemFactory.createFileSystem(SessionContext session) |
Path |
VirtualFileSystemFactory.getUserHomeDir(SessionContext session) |
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 OpenSshCertificate |
HostKeyCertificateProvider.loadCertificate(SessionContext session,
String keyType) |
Iterable<OpenSshCertificate> |
FileHostKeyCertificateProvider.loadCertificates(SessionContext session) |
Iterable<OpenSshCertificate> |
HostKeyCertificateProvider.loadCertificates(SessionContext session) |
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> |
ClassLoadableResourceKeyPairProvider.loadKeys(SessionContext session) |
Iterable<KeyPair> |
KeyIdentityProvider.loadKeys(SessionContext session)
Load available keys.
|
Iterable<KeyPair> |
FileKeyPairProvider.loadKeys(SessionContext session) |
Iterable<KeyPair> |
MappedKeyPairProvider.loadKeys(SessionContext session) |
Iterable<KeyPair> |
MultiKeyIdentityProvider.loadKeys(SessionContext session) |
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 | Method and Description |
---|---|
default SessionContext |
SessionHolder.getSessionContext() |
SessionContext |
SessionContextHolder.getSessionContext() |
Modifier and Type | Method and Description |
---|---|
static boolean |
SessionContext.isDataIntegrityTransport(SessionContext session) |
static boolean |
SessionContext.isSecureSessionTransport(SessionContext 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 |
---|---|
protected Signature |
AbstractSignature.doInitSignature(SessionContext session,
String algo,
Key key,
boolean forSigning)
Initializes the internal signature instance
|
void |
AbstractSignature.initSigner(SessionContext session,
PrivateKey key) |
void |
AbstractSecurityKeySignature.initSigner(SessionContext session,
PrivateKey key) |
void |
Signature.initSigner(SessionContext session,
PrivateKey key) |
void |
AbstractSignature.initVerifier(SessionContext session,
PublicKey key) |
void |
AbstractSecurityKeySignature.initVerifier(SessionContext session,
PublicKey key) |
void |
SignatureRSA.initVerifier(SessionContext session,
PublicKey key) |
void |
Signature.initVerifier(SessionContext session,
PublicKey key) |
byte[] |
AbstractSignature.sign(SessionContext session) |
byte[] |
AbstractSecurityKeySignature.sign(SessionContext session) |
byte[] |
SignatureECDSA.sign(SessionContext session) |
byte[] |
SignatureDSA.sign(SessionContext session) |
byte[] |
Signature.sign(SessionContext session)
Compute the signature
|
default void |
Signature.update(SessionContext session,
byte[] hash)
Update the computed signature with the given data
|
void |
AbstractSignature.update(SessionContext session,
byte[] hash,
int off,
int len) |
void |
AbstractSecurityKeySignature.update(SessionContext session,
byte[] hash,
int off,
int len) |
void |
Signature.update(SessionContext session,
byte[] hash,
int off,
int len)
Update the computed signature with the given data
|
boolean |
AbstractSecurityKeySignature.verify(SessionContext session,
byte[] sig) |
boolean |
SignatureRSA.verify(SessionContext session,
byte[] sig) |
boolean |
SignatureECDSA.verify(SessionContext session,
byte[] sig) |
boolean |
SignatureDSA.verify(SessionContext session,
byte[] sig) |
boolean |
Signature.verify(SessionContext session,
byte[] sig)
Verify against the given signature
|
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,
Map<String,String> headers) |
Collection<KeyPair> |
BouncyCastleKeyPairResourceParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
List<String> lines,
Map<String,String> headers) |
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,
Map<String,String> headers) |
Collection<KeyPair> |
Ed25519PEMResourceKeyParser.extractKeyPairs(SessionContext session,
NamedResource resourceKey,
String beginMarker,
String endMarker,
FilePasswordProvider passwordProvider,
InputStream stream,
Map<String,String> headers) |
boolean |
SignatureEd25519.verify(SessionContext session,
byte[] sig) |
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,
int formatVersion,
List<String> pubLines,
List<String> prvLines,
String prvEncryption,
FilePasswordProvider passwordProvider,
Map<String,String> headers) |
Collection<KeyPair> |
AbstractPuttyKeyDecoder.loadKeyPairs(SessionContext session,
NamedResource resourceKey,
int formatVersion,
String pubData,
String prvData,
String prvEncryption,
FilePasswordProvider passwordProvider,
Map<String,String> headers) |
Modifier and Type | Method and Description |
---|---|
void |
ScpShell.setFileSystemFactory(FileSystemFactory factory,
SessionContext session) |
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–2024 The Apache Software Foundation. All rights reserved.