DestinationConstraint

constructor(fromHostname: String, fromKeyspecs: List<AgentKeySpec>, toUsername: String, toHostname: String, toHostspecs: List<AgentKeySpec>)(source)

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)