public class FileServerData extends CommonData
Modifier and Type | Field and Description |
---|---|
private byte[] |
clientCertificate |
private String |
clientPassword |
private String |
connectionManagerFactory |
private Set<FileData> |
files |
static int |
FINGERPRINT_LENGTH |
private String |
fingerprintType |
private String |
host |
static int |
MAX_CERTIFICATE_LENGTH |
static int |
MAX_CONNECTION_MANAGER_FACTORY_LENGTH |
static int |
MAX_HOST_LENGTH |
static int |
MAX_PASSWORD_LENGTH |
static int |
MAX_ROOT_PATH_LENGTH |
static int |
MAX_USERNAME_LENGTH |
private String |
password |
private String |
rootPath |
private byte[] |
serverCertificate |
private String |
sshFingerprint |
private String |
username |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
FileServerData() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getClientCertificate()
Get the client certificate that we need to send to the server
to make the server accept our connection.
|
String |
getClientCertificatePassword()
Get the password that is used to unlock the client certificate.
|
String |
getConnectionManagerFactory()
Get the ID of the connection manager factory that should be
used to retreieve the file contents and metadata.
|
(package private) Set<FileData> |
getFiles()
This is the inverse end.
|
String |
getFingerprintType()
Get the type of SSH fingerprint.
|
String |
getHost()
Get the name:port of the actual host to use for all files
using this server (overrides the host specified in the file url)
|
String |
getPassword()
Get the password that is used to login to the server.
|
String |
getRootPath()
Get the root path that must be added to all URI:s using this file server.
|
byte[] |
getServerCertificate()
Get the public server certificate indicating that we should trust
https connections to the server.
|
String |
getSshFingerprint()
Get the fingerprint of the SSH public key for the server
that must be verified when (if) it is accessed via the SSH protocol.
|
String |
getUsername()
Get the username that is used to login to the server.
|
void |
setClientCertificate(byte[] clientCertificate) |
void |
setClientCertificatePassword(String clientPassword) |
void |
setConnectionManagerFactory(String connectionManagerFactory) |
(package private) void |
setFiles(Set<FileData> files) |
void |
setFingerprintType(String fingerprintType) |
void |
setHost(String host) |
void |
setPassword(String password) |
void |
setRootPath(String rootPath) |
void |
setServerCertificate(byte[] serverCertificate) |
void |
setSshFingerprint(String sshFingerprint) |
void |
setUsername(String username) |
getDescription, getName, getRemovedBy, setDescription, setName, setRemovedBy
getItemKey, getProjectKey, setItemKey, setProjectKey
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
getOwner, setOwner
public static final int MAX_CONNECTION_MANAGER_FACTORY_LENGTH
private String connectionManagerFactory
public static final int MAX_HOST_LENGTH
private String host
public static final int MAX_USERNAME_LENGTH
private String username
public static final int MAX_PASSWORD_LENGTH
private String password
public static final int MAX_ROOT_PATH_LENGTH
private String rootPath
public static final int FINGERPRINT_LENGTH
private String sshFingerprint
private String fingerprintType
public static final int MAX_CERTIFICATE_LENGTH
private byte[] serverCertificate
private byte[] clientCertificate
private String clientPassword
public String getConnectionManagerFactory()
public void setConnectionManagerFactory(String connectionManagerFactory)
public String getHost()
public void setHost(String host)
public String getUsername()
public void setUsername(String username)
@PropertyPathProtected public String getPassword()
public void setPassword(String password)
public String getRootPath()
public void setRootPath(String rootPath)
public String getSshFingerprint()
public void setSshFingerprint(String sshFingerprint)
public String getFingerprintType()
public void setFingerprintType(String fingerprintType)
public byte[] getServerCertificate()
public void setServerCertificate(byte[] serverCertificate)
@PropertyPathProtected public byte[] getClientCertificate()
public void setClientCertificate(byte[] clientCertificate)
@PropertyPathProtected public String getClientCertificatePassword()
public void setClientCertificatePassword(String clientPassword)
Set<FileData> getFiles()
FileData.getFileServer()