hudson.cli
Class CliTransportAuthenticator
java.lang.Object
hudson.cli.CliTransportAuthenticator
- All Implemented Interfaces:
- ExtensionPoint
public abstract class CliTransportAuthenticator
- extends Object
- implements ExtensionPoint
Perform SecurityRealm
independent authentication.
Implementing this extension point requires changes in the CLI module, as during authentication
neither side trusts each other enough to start code-transfer. But it does allow us to
use different implementations of the same protocol.
Current Implementations
Starting 1.419, CLI supports SSH public key based client/server mutual authentication.
The protocol name of this is "ssh".
- Since:
- 1.419
- Author:
- Kohsuke Kawaguchi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CliTransportAuthenticator
public CliTransportAuthenticator()
supportsProtocol
public abstract boolean supportsProtocol(String protocol)
- Checks if this implementation supports the specified protocol.
- Parameters:
protocol
- Identifier. CLI.jar is hard-coded with the built-in knowledge about a specific protocol.
- Returns:
- true if this implementation supports the specified protocol,
in which case
authenticate(String, Channel, Connection)
would be called next.
authenticate
public abstract void authenticate(String protocol,
hudson.remoting.Channel channel,
Connection con)
- Performs authentication.
The authentication
- Parameters:
protocol
- Protocol identifier that supportsProtocol(String)
returned true.channel
- Communication channel to the client.con
-
all
public static ExtensionList<CliTransportAuthenticator> all()
Copyright © 2004-2013. All Rights Reserved.