public abstract class CliTransportAuthenticator extends Object implements ExtensionPoint
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.
Starting 1.419, CLI supports SSH public key based client/server mutual authentication. The protocol name of this is "ssh".
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
CliTransportAuthenticator() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<CliTransportAuthenticator> |
all() |
abstract void |
authenticate(String protocol,
hudson.remoting.Channel channel,
Connection con)
Performs authentication.
|
abstract boolean |
supportsProtocol(String protocol)
Checks if this implementation supports the specified protocol.
|
public abstract boolean supportsProtocol(String protocol)
protocol
- Identifier. CLI.jar is hard-coded with the built-in knowledge about a specific protocol.authenticate(String, Channel, Connection)
would be called next.public abstract void authenticate(String protocol, hudson.remoting.Channel channel, Connection con)
The authentication
protocol
- Protocol identifier that supportsProtocol(String)
returned true.channel
- Communication channel to the client.con
- public static ExtensionList<CliTransportAuthenticator> all()
Copyright © 2014. All rights reserved.