com.cloudbees.jenkins.plugins.sshcredentials.impl
Class JSchSSHPublicKeyAuthenticator.Factory
java.lang.Object
com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticatorFactory
com.cloudbees.jenkins.plugins.sshcredentials.impl.JSchSSHPublicKeyAuthenticator.Factory
- All Implemented Interfaces:
- hudson.ExtensionPoint
- Enclosing class:
- JSchSSHPublicKeyAuthenticator
@Extension
public static class JSchSSHPublicKeyAuthenticator.Factory
- extends SSHAuthenticatorFactory
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Method Summary |
protected
|
newInstance(C session,
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
|
supports(java.lang.Class<C> connectionClass,
java.lang.Class<U> userClass)
Returns true if and only if the supplied connection class and user class are supported by this factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSchSSHPublicKeyAuthenticator.Factory
public JSchSSHPublicKeyAuthenticator.Factory()
newInstance
protected <C,U extends SSHUser> SSHAuthenticator<C,U> newInstance(@NonNull
C session,
@NonNull
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.
- Specified by:
newInstance in class SSHAuthenticatorFactory
- Type Parameters:
C - the type of connection.U - the type of user.- Parameters:
session - the connection.user - the user.
- Returns:
null if the connection or user is not supported by this factory, or a SSHAuthenticator
instance bound to the supplied connection and user.
supports
protected <C,U extends SSHUser> boolean supports(@NonNull
java.lang.Class<C> connectionClass,
@NonNull
java.lang.Class<U> userClass)
- Returns
true if and only if the supplied connection class and user class are supported by this factory.
- Specified by:
supports in class SSHAuthenticatorFactory
- Type Parameters:
C - the type of connection.U - the type of user.- Parameters:
connectionClass - the connection class.userClass - the user class.
- Returns:
true if and only if the supplied connection class and user class are supported by this factory.
Copyright © 2004-2013. All Rights Reserved.