Class ServerSshKnownHostsManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.ssh.ServerSshKnownHostsManagerImpl
-
- All Implemented Interfaces:
SshKnownHostsManager
public class ServerSshKnownHostsManagerImpl extends Object implements SshKnownHostsManager
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.ssh.SshKnownHostsManager
SSH_KNOWN_HOSTS_PARAM_NAME
-
-
Constructor Summary
Constructors Constructor Description ServerSshKnownHostsManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKnownHosts(SshKnownHostsContext context)
Collection<String>
getKnownHostsLines(SshKnownHostsContext context)
-
-
-
Method Detail
-
getKnownHosts
@Nullable public String getKnownHosts(@NotNull SshKnownHostsContext context) throws UnsupportedOperationException
- Specified by:
getKnownHosts
in interfaceSshKnownHostsManager
- 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 public Collection<String> getKnownHostsLines(@NotNull SshKnownHostsContext context) throws UnsupportedOperationException
- Specified by:
getKnownHostsLines
in interfaceSshKnownHostsManager
- Returns:
- known hosts entries as a collection. Empty collection if the custom known hosts are not set
- Throws:
UnsupportedOperationException
-
-