public class PasswordProviderWrapper extends Object implements org.apache.sshd.common.config.keys.FilePasswordProvider
FilePasswordProvider
to our per-session
KeyPasswordProvider
API.Constructor and Description |
---|
PasswordProviderWrapper(Supplier<KeyPasswordProvider> factory)
Creates a new
PasswordProviderWrapper . |
Modifier and Type | Method and Description |
---|---|
String |
getPassword(org.apache.sshd.common.session.SessionContext session,
org.apache.sshd.common.NamedResource resource,
int attemptIndex) |
org.apache.sshd.common.config.keys.FilePasswordProvider.ResourceDecodeResult |
handleDecodeAttemptResult(org.apache.sshd.common.session.SessionContext session,
org.apache.sshd.common.NamedResource resource,
int retryIndex,
String password,
Exception err) |
public PasswordProviderWrapper(@NonNull Supplier<KeyPasswordProvider> factory)
PasswordProviderWrapper
.factory
- to use to create per-session KeyPasswordProvider
spublic String getPassword(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resource, int attemptIndex) throws IOException
getPassword
in interface org.apache.sshd.common.config.keys.FilePasswordProvider
IOException
public org.apache.sshd.common.config.keys.FilePasswordProvider.ResourceDecodeResult handleDecodeAttemptResult(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resource, int retryIndex, String password, Exception err) throws IOException, GeneralSecurityException
handleDecodeAttemptResult
in interface org.apache.sshd.common.config.keys.FilePasswordProvider
IOException
GeneralSecurityException
Copyright © 2021 Eclipse JGit Project. All rights reserved.