Package net.sf.basedb.core.data
Class FileServerData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.OwnedData
net.sf.basedb.core.data.SharedData
net.sf.basedb.core.data.CommonData
net.sf.basedb.core.data.AnnotatedData
net.sf.basedb.core.data.FileServerData
- All Implemented Interfaces:
AnnotatableData
,IdentifiableData
,LoggableData
,NameableData
,OwnableData
,RemovableData
,ShareableData
File entries that are external files can be linked to a file server. This
contains information about username/password and/or SSL keys that are
required to access the server.
- Since:
- 2.16
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2023-06-05 09:18:49 +0200 (Mon, 05 Jun 2023) $
- Hibernate: class
- table="`FileServers`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate byte[]
private String
private String
static final int
private String
private String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
private String
private String
private byte[]
private String
private byte[]
private String
private String
private String
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the client certificate that we need to send to the server to make the server accept our connection.Get the password that is used to unlock the client certificate.Get the ID of the connection manager factory that should be used to retreieve the file contents and metadata.getFiles()
This is the inverse end.Get the type of SSH fingerprint.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)Get the password that is used to login to the server.Get the root path that must be added to all URI:s using this file server.byte[]
Get the public server certificate indicating that we should trust https connections to the server.Get the fingerprint of the SSH public key for the server that must be verified when (if) it is accessed via the SSH protocol.byte[]
Get the SSH private key that we need to send to the server to make the server accept our connection.Get the private key format.Get the password that is used to unlock the SSH private key.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
void
setFingerprintType
(String fingerprintType) void
void
setPassword
(String password) void
setRootPath
(String rootPath) void
setServerCertificate
(byte[] serverCertificate) void
setSshFingerprint
(String sshFingerprint) void
setSshPrivateKey
(byte[] sshPrivateKey) void
setSshPrivateKeyFormat
(String sshPrivateKeyFormat) void
setSshPrivateKeyPassword
(String sshPrivateKeyPassword) void
setUsername
(String username) Methods inherited from class net.sf.basedb.core.data.AnnotatedData
getAnnotations, getAnnotationSet, setAnnotations, setAnnotationSet
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, getRemovedBy, setDescription, setName, setRemovedBy
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
-
Field Details
-
MAX_CONNECTION_MANAGER_FACTORY_LENGTH
public static final int MAX_CONNECTION_MANAGER_FACTORY_LENGTH- See Also:
-
connectionManagerFactory
-
MAX_HOST_LENGTH
public static final int MAX_HOST_LENGTH- See Also:
-
host
-
MAX_USERNAME_LENGTH
public static final int MAX_USERNAME_LENGTH- See Also:
-
username
-
MAX_PASSWORD_LENGTH
public static final int MAX_PASSWORD_LENGTH- See Also:
-
password
-
MAX_ROOT_PATH_LENGTH
public static final int MAX_ROOT_PATH_LENGTH- See Also:
-
rootPath
-
FINGERPRINT_LENGTH
public static final int FINGERPRINT_LENGTH- See Also:
-
sshFingerprint
-
fingerprintType
-
MAX_PRIVATE_KEY_LENGTH
public static final int MAX_PRIVATE_KEY_LENGTH- See Also:
-
sshPrivateKey
private byte[] sshPrivateKey -
sshPrivateKeyPassword
-
MAX_FORMAT_LENGTH
public static final int MAX_FORMAT_LENGTH- See Also:
-
sshPrivateKeyFormat
-
MAX_CERTIFICATE_LENGTH
public static final int MAX_CERTIFICATE_LENGTH- See Also:
-
serverCertificate
private byte[] serverCertificate -
clientCertificate
private byte[] clientCertificate -
clientPassword
-
files
-
-
Constructor Details
-
FileServerData
public FileServerData()
-
-
Method Details
-
getConnectionManagerFactory
Get the ID of the connection manager factory that should be used to retreieve the file contents and metadata. If null auto-detection is used to find a suitable connection manager factory.- Since:
- 3.0
- Hibernate: property
- column="`cm_factory`" type="string" length="255" not-null="false"
-
setConnectionManagerFactory
-
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)- Since:
- 3.0
- Hibernate: property
- column="`host`" type="string" length="255" not-null="false"
-
setHost
-
getUsername
Get the username that is used to login to the server. If null no login is required.- Hibernate: property
- column="`username`" type="string" length="255" not-null="false"
-
setUsername
-
getPassword
Get the password that is used to login to the server.- Hibernate: property
- column="`password`" type="string" length="255" not-null="false"
-
setPassword
-
getRootPath
Get the root path that must be added to all URI:s using this file server.- Since:
- 3.3
- Hibernate: property
- column="`root_path`" type="string" length="255" not-null="false"
-
setRootPath
-
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.- Since:
- 3.3
- Hibernate: property
- column="`ssh_fingerprint`" type="string" length="47" not-null="false"
-
setSshFingerprint
-
getFingerprintType
Get the type of SSH fingerprint.- Since:
- 3.11
- Hibernate: property
- column="`ssh_fingerprint_type`" type="string" length="255" not-null="false"
-
setFingerprintType
-
getSshPrivateKey
Get the SSH private key that we need to send to the server to make the server accept our connection.- Since:
- 3.13
- Hibernate: property
- column="`ssh_private_key`" type="binary" length="65535" not-null="false"
-
setSshPrivateKey
public void setSshPrivateKey(byte[] sshPrivateKey) -
getSshPrivateKeyPassword
Get the password that is used to unlock the SSH private key.- Since:
- 3.13
- Hibernate: property
- column="`ssh_private_key_password`" type="string" length="255" not-null="false"
-
setSshPrivateKeyPassword
-
getSshPrivateKeyFormat
Get the private key format.- Since:
- 3.13
- Hibernate: property
- column="`ssh_private_key_format`" type="string" length="255" not-null="false"
-
setSshPrivateKeyFormat
-
getServerCertificate
Get the public server certificate indicating that we should trust https connections to the server.- Hibernate: property
- column="`server_certificate`" type="binary" length="65535" not-null="false"
-
setServerCertificate
public void setServerCertificate(byte[] serverCertificate) -
getClientCertificate
Get the client certificate that we need to send to the server to make the server accept our connection.- Hibernate: property
- column="`client_certificate`" type="binary" length="65535" not-null="false"
-
setClientCertificate
public void setClientCertificate(byte[] clientCertificate) -
getClientCertificatePassword
Get the password that is used to unlock the client certificate.- Hibernate: property
- column="`client_password`" type="string" length="255" not-null="false"
-
setClientCertificatePassword
-
getFiles
This is the inverse end.- See Also:
- Hibernate: set
- lazy="true" inverse="true"
- Hibernate: collection-key
- column="`fileserver_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.FileData"
-
setFiles
-