DestinationConstraint

data class DestinationConstraint(val fromHostname: String, val fromKeyspecs: List<AgentKeySpec>, val toUsername: String, val toHostname: String, val toHostspecs: List<AgentKeySpec>)(source)

One hop entry in a destination constraint for a key in the agent.

Describes a single permitted (from → to) hop in a forwarding chain. When fromHostname and fromKeyspecs are empty this is an origin-direct constraint (key may be used directly from the machine running the agent).

Parameters

fromHostname

Hostname of the previous hop, empty string for the origin machine

fromKeyspecs

Host key specs of the previous hop, empty for the origin machine

toUsername

Permitted destination username; empty string means any user is allowed

toHostname

Destination hostname

toHostspecs

Destination host key specs (must be non-empty)

Constructors

Link copied to clipboard
constructor(fromHostname: String, fromKeyspecs: List<AgentKeySpec>, toUsername: String, toHostname: String, toHostspecs: List<AgentKeySpec>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard