@Extension public static class TrileadSSHPasswordAuthenticator.Factory extends SSHAuthenticatorFactory
SSHAuthenticator implementations for the many SSH client libraries
available.
This object can be shipped to remote to create an SSHAuthenticator on a remote node.
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
protected <C,U extends com.cloudbees.plugins.credentials.common.StandardUsernameCredentials> |
newInstance(C connection,
U user)
Returns an instance of
SSHAuthenticator for the supplied connection and user, or null if
the factory does not support the connection and user combination. |
protected <C,U extends com.cloudbees.plugins.credentials.common.StandardUsernameCredentials> |
newInstance(C connection,
U user,
String username)
Returns an instance of
SSHAuthenticator for the supplied connection and user, or null if
the factory does not support the connection and user combination. |
protected <C,U extends com.cloudbees.plugins.credentials.common.StandardUsernameCredentials> |
supports(Class<C> connectionClass,
Class<U> userClass)
Returns
true if and only if the supplied connection class and user class are supported by this factory. |
protected <C,U extends com.cloudbees.plugins.credentials.common.StandardUsernameCredentials> SSHAuthenticator<C,U> newInstance(@NonNull C connection, @NonNull U user)
SSHAuthenticator for the supplied connection and user, or null if
the factory does not support the connection and user combination.newInstance in class SSHAuthenticatorFactoryC - the type of connection.U - the type of user.connection - the connection.user - the user.null if the connection or user is not supported by this factory, or a SSHAuthenticator
instance bound to the supplied connection and user.@Nullable protected <C,U extends com.cloudbees.plugins.credentials.common.StandardUsernameCredentials> SSHAuthenticator<C,U> newInstance(@NonNull C connection, @NonNull U user, @CheckForNull String username)
SSHAuthenticator for the supplied connection and user, or null if
the factory does not support the connection and user combination.newInstance in class SSHAuthenticatorFactoryC - the type of connection.U - the type of user.connection - the connection.user - the user.username - the username or null to fall back to the username in the user parameter.null if the connection or user is not supported by this factory, or a SSHAuthenticator
instance bound to the supplied connection and user.protected <C,U extends com.cloudbees.plugins.credentials.common.StandardUsernameCredentials> boolean supports(@NonNull
Class<C> connectionClass,
@NonNull
Class<U> userClass)
true if and only if the supplied connection class and user class are supported by this factory.supports in class SSHAuthenticatorFactoryC - the type of connection.U - the type of user.connectionClass - the connection class.userClass - the user class.true if and only if the supplied connection class and user class are supported by this factory.Copyright © 2016–2020. All rights reserved.