public class FileServerData extends CommonData
Modifier and Type | Field and Description |
---|---|
private byte[] |
clientCertificate |
private java.lang.String |
clientPassword |
private java.lang.String |
connectionManagerFactory |
private java.util.Set<FileData> |
files |
static int |
FINGERPRINT_LENGTH |
private java.lang.String |
fingerprintType |
private java.lang.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 java.lang.String |
password |
private java.lang.String |
rootPath |
private byte[] |
serverCertificate |
private java.lang.String |
sshFingerprint |
private java.lang.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.
|
java.lang.String |
getClientCertificatePassword()
Get the password that is used to unlock the client certificate.
|
java.lang.String |
getConnectionManagerFactory()
Get the ID of the connection manager factory that should be
used to retreieve the file contents and metadata.
|
(package private) java.util.Set<FileData> |
getFiles()
This is the inverse end.
|
java.lang.String |
getFingerprintType()
Get the type of SSH fingerprint.
|
java.lang.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)
|
java.lang.String |
getPassword()
Get the password that is used to login to the server.
|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
getUsername()
Get the username that is used to login to the server.
|
void |
setClientCertificate(byte[] clientCertificate) |
void |
setClientCertificatePassword(java.lang.String clientPassword) |
void |
setConnectionManagerFactory(java.lang.String connectionManagerFactory) |
(package private) void |
setFiles(java.util.Set<FileData> files) |
void |
setFingerprintType(java.lang.String fingerprintType) |
void |
setHost(java.lang.String host) |
void |
setPassword(java.lang.String password) |
void |
setRootPath(java.lang.String rootPath) |
void |
setServerCertificate(byte[] serverCertificate) |
void |
setSshFingerprint(java.lang.String sshFingerprint) |
void |
setUsername(java.lang.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 java.lang.String connectionManagerFactory
public static final int MAX_HOST_LENGTH
private java.lang.String host
public static final int MAX_USERNAME_LENGTH
private java.lang.String username
public static final int MAX_PASSWORD_LENGTH
private java.lang.String password
public static final int MAX_ROOT_PATH_LENGTH
private java.lang.String rootPath
public static final int FINGERPRINT_LENGTH
private java.lang.String sshFingerprint
private java.lang.String fingerprintType
public static final int MAX_CERTIFICATE_LENGTH
private byte[] serverCertificate
private byte[] clientCertificate
private java.lang.String clientPassword
private java.util.Set<FileData> files
public java.lang.String getConnectionManagerFactory()
public void setConnectionManagerFactory(java.lang.String connectionManagerFactory)
public java.lang.String getHost()
public void setHost(java.lang.String host)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
@PropertyPathProtected public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getRootPath()
public void setRootPath(java.lang.String rootPath)
public java.lang.String getSshFingerprint()
public void setSshFingerprint(java.lang.String sshFingerprint)
public java.lang.String getFingerprintType()
public void setFingerprintType(java.lang.String fingerprintType)
public byte[] getServerCertificate()
public void setServerCertificate(byte[] serverCertificate)
@PropertyPathProtected public byte[] getClientCertificate()
public void setClientCertificate(byte[] clientCertificate)
@PropertyPathProtected public java.lang.String getClientCertificatePassword()
public void setClientCertificatePassword(java.lang.String clientPassword)
java.util.Set<FileData> getFiles()
FileData.getFileServer()
void setFiles(java.util.Set<FileData> files)