public final class

SimpleSshConfiguration

extends Object
implements SshConfiguration Serializable
java.lang.Object
   ↳ com.atlassian.bitbucket.ssh.SimpleSshConfiguration

Class Overview

Convenience implementation of SshConfiguration for use with the SshConfigurationService.

Summary

Public Constructors
SimpleSshConfiguration(boolean enabled, boolean accessKeysEnabled, int port, String baseUrl)
Public Methods
boolean equals(Object o)
String getBaseUrl()
int getPort()
Retrieves the port where SSH listens for requests.
int hashCode()
boolean isAccessKeysEnabled()
boolean isEnabled()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.ssh.SshConfiguration

Public Constructors

public SimpleSshConfiguration (boolean enabled, boolean accessKeysEnabled, int port, String baseUrl)

Public Methods

public boolean equals (Object o)

public String getBaseUrl ()

public int getPort ()

Retrieves the port where SSH listens for requests.

The port range here is restricted to 1024 and higher because, on Unix-like operating systems, binding to ports below 1024 requires the process to be running with root access. Running with root access is not recommended, so those ports are not allowed.

Returns
  • the port to listen to for SSH requests

public int hashCode ()

public boolean isAccessKeysEnabled ()

public boolean isEnabled ()