Package jetbrains.buildServer.ssh
Interface SshKnownHostsManager
-
- All Known Implementing Classes:
AgentSshKnownHostsManagerImpl
,ServerSshKnownHostsManagerImpl
public interface SshKnownHostsManager
-
-
Field Summary
Fields Modifier and Type Field Description static String
SSH_KNOWN_HOSTS_PARAM_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getKnownHosts(SshKnownHostsContext context)
Collection<String>
getKnownHostsLines(SshKnownHostsContext context)
-
-
-
Field Detail
-
SSH_KNOWN_HOSTS_PARAM_NAME
static final String SSH_KNOWN_HOSTS_PARAM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKnownHosts
@Nullable String getKnownHosts(@NotNull SshKnownHostsContext context) throws UnsupportedOperationException
- Returns:
- string that contains known hosts entries in ssh known_hosts file format. Null if the custom known hosts are not set
- Throws:
UnsupportedOperationException
-
getKnownHostsLines
@NotNull Collection<String> getKnownHostsLines(@NotNull SshKnownHostsContext context) throws UnsupportedOperationException
- Returns:
- known hosts entries as a collection. Empty collection if the custom known hosts are not set
- Throws:
UnsupportedOperationException
-
-