com.cloudbees.jenkins.plugins.sshcredentials.impl
Class JSchSSHPublicKeyAuthenticator.Factory

java.lang.Object
  extended by com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticatorFactory
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
JSchSSHPublicKeyAuthenticator.Factory()
           
 
Method Summary
protected
<C,U extends SSHUser>
SSHAuthenticator<C,U>
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
<C,U extends SSHUser>
boolean
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
 

Constructor Detail

JSchSSHPublicKeyAuthenticator.Factory

public JSchSSHPublicKeyAuthenticator.Factory()
Method Detail

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-2012. All Rights Reserved.