SFTPServer Class
Properties Methods Events Config Settings Errors
The SFTPServer class provides server-side functionality for SFTP connections.
Class Name
SecureBlackbox_SFTPServer
Procedural Interface
secureblackbox_sftpserver_open(); secureblackbox_sftpserver_close($res); secureblackbox_sftpserver_register_callback($res, $id, $function); secureblackbox_sftpserver_get_last_error($res); secureblackbox_sftpserver_get_last_error_code($res); secureblackbox_sftpserver_set($res, $id, $index, $value); secureblackbox_sftpserver_get($res, $id, $index); secureblackbox_sftpserver_do_config($res, $configurationstring); secureblackbox_sftpserver_do_doaction($res, $actionid, $actionparams); secureblackbox_sftpserver_do_dropclient($res, $connectionid, $forced); secureblackbox_sftpserver_do_getclientbuffer($res, $connectionid, $handle); secureblackbox_sftpserver_do_getclientfileentry($res, $connectionid, $handle); secureblackbox_sftpserver_do_listclients($res); secureblackbox_sftpserver_do_pinclient($res, $connectionid); secureblackbox_sftpserver_do_setclientbuffer($res, $connectionid, $handle, $value); secureblackbox_sftpserver_do_setclientfileentry($res, $connectionid, $handle); secureblackbox_sftpserver_do_start($res); secureblackbox_sftpserver_do_stop($res);
Remarks
SFTPServer is an implementation for SSH File Transfer Protocol server. It works over a secure SSH channel, and should not be confused with the FTP/FTPS protocol.
Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
Active | Specifies whether the SFTP server has started and ready to accept connections. |
AuthTypes | Defines allowed authentication types. |
BaseDir | Specifies the server's base (root) directory. |
ClientFileEntryATime | Contains the last access time for this file, in UTC. |
ClientFileEntryCTime | Contains this file's creation time, in UTC. |
ClientFileEntryDirectory | Specifies whether this entry is a directory. |
ClientFileEntryFileType | Specifies the type of this entry, one of the following: cftFile 0 cftDirectory 1 cftSymblink 2 cftSpecial 3 cftUnknown 4 cftSocket 5 cftCharDevice 6 cftBlockDevice 7 cftFIFO 8 . |
ClientFileEntryGroupExecute | Controls file execution permission for the group users. |
ClientFileEntryGroupRead | Controls file read permission for the group users. |
ClientFileEntryGroupWrite | Controls file write permission for the group users. |
ClientFileEntryHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
ClientFileEntryLongName | Contains the long name of the file (human-readable, ftp-like). |
ClientFileEntryMTime | Specifies the last modification time, in UTC. |
ClientFileEntryName | Specifies the file name. |
ClientFileEntryOtherExecute | Controls file execution permission for other users (users that are neither owners, nor belong to the same group). |
ClientFileEntryOtherRead | Controls file read permission for other users (users that are neither owners, nor belong to the same group). |
ClientFileEntryOtherWrite | Controls file write permission for other users (users that are neither owners, nor belong to the same group). |
ClientFileEntryOwner | Specifies the owner of the file/directory. |
ClientFileEntryPath | Contains the full path to the file. |
ClientFileEntrySize | The size of the file in bytes. |
ClientFileEntryUserExecute | Controls file execution permission for the file owner. |
ClientFileEntryUserRead | Controls file read permission for the file owner. |
ClientFileEntryUserWrite | Controls file write permission for the file owner. |
CompressionLevel | Specifies the preferable compression level. |
ExternalCryptoAsyncDocumentID | Specifies an optional document ID for SignAsyncBegin() and SignAsyncEnd() calls. |
ExternalCryptoCustomParams | Custom parameters to be passed to the signing service (uninterpreted). |
ExternalCryptoData | Additional data to be included in the async state and mirrored back by the requestor. |
ExternalCryptoExternalHashCalculation | Specifies whether the message hash is to be calculated at the external endpoint. |
ExternalCryptoHashAlgorithm | Specifies the request's signature hash algorithm. |
ExternalCryptoKeyID | The ID of the pre-shared key used for DC request authentication. |
ExternalCryptoKeySecret | The pre-shared key used for DC request authentication. |
ExternalCryptoMethod | Specifies the asynchronous signing method. |
ExternalCryptoMode | Specifies the external cryptography mode. |
ExternalCryptoPublicKeyAlgorithm | Provide the public key algorithm here if the certificate is not available on the pre-signing stage. |
FIPSMode | Reserved. |
ForceCompression | This property specifies whether server explicitly requires data compression. |
Host | Specifies server's host name. |
KeyFingerprintSHA1 | Contains the SHA-1 fingerprint (hash) of the key. |
KeyFingerprintSHA256 | Contains the SHA-256 fingerprint (hash) of the key. |
KeyHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
MaxSFTPVersion | Maximum SFTP version supported. |
MinSFTPVersion | Minimum SFTP version supported. |
PinnedClientAddress | The client's IP address. |
PinnedClientClientKeyAlgorithm | Specifies the client's key algorithm. |
PinnedClientClientKeyBits | Specifies the length of the client's key. |
PinnedClientClientKeyFingerprint | The fingerprint (hash value) of the client's public key. |
PinnedClientClientSoftwareName | Returns the name of the SSH software running on the client side. |
PinnedClientCloseReason | Contains the line sent by the client just before closing the connection. |
PinnedClientCompressionAlgorithmInbound | Compression algorithm for the incoming traffic. |
PinnedClientCompressionAlgorithmOutbound | Compression algorithm for the outgoing traffic. |
PinnedClientEncryptionAlgorithmInbound | Encryption algorithm for the incoming traffic. |
PinnedClientEncryptionAlgorithmOutbound | Encryption algorithm for the outgoing traffic. |
PinnedClientID | The client connection's unique identifier. |
PinnedClientInboundEncryptionKeyBits | Specifies the length of the key used to encrypt the incoming traffic. |
PinnedClientKexAlgorithm | The key exchange algorithm used during the SSH handshake. |
PinnedClientKexBits | The number of bits used by the key exchange algorithm. |
PinnedClientKexLines | The contents of the received KexInit packet. |
PinnedClientMacAlgorithmInbound | MAC algorithm used for the incoming connection. |
PinnedClientMacAlgorithmOutbound | MAC algorithm used for outbound connection. |
PinnedClientOutboundEncryptionKeyBits | Specifies the length of the key used to encrypt the outgoing traffic. |
PinnedClientPort | The remote port of the client connection. |
PinnedClientPublicKeyAlgorithm | Specifies the public key algorithm which was used during the SSH handshake. |
PinnedClientServerKeyBits | Specifies the number of bits in the server's key. |
PinnedClientServerKeyFingerprint | The fingerprint (hash value) of the server's public key. |
PinnedClientTotalBytesReceived | Returns the total number of bytes received over this connection. |
PinnedClientTotalBytesSent | Returns the total number of bytes sent over this connection. |
PinnedClientVersion | Specifies SSH protocol version. |
Port | Specifies the listening port number. |
ReadOnly | Specifies whether files on the server are read-only. |
ServerKeyCount | The number of records in the ServerKey arrays. |
ServerKeyAlgorithm | Specifies the key algorithm. |
ServerKeyBits | The number of bits in the key: the more the better, 2048 or 4096 are typical values. |
ServerKeyFingerprintMD5 | Contains the MD5 fingerprint (hash) of the key. |
ServerKeyFingerprintSHA1 | Contains the SHA-1 fingerprint (hash) of the key. |
ServerKeyHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
SocketIncomingSpeedLimit | The maximum number of bytes to read from the socket, per second. |
SocketLocalAddress | The local network interface to bind the socket to. |
SocketLocalPort | The local port number to bind the socket to. |
SocketOutgoingSpeedLimit | The maximum number of bytes to write to the socket, per second. |
SocketTimeout | The maximum period of waiting, in milliseconds, after which the socket operation is considered unsuccessful. |
SocketUseIPv6 | Enables or disables IP protocol version 6. |
SSHSettingsAutoAdjustCiphers | Whether the SSH client should adjust its list of supported ciphers 'on-the-fly' for greater compatibility with the server it is connecting to. |
SSHSettingsBaseConfiguration | Allows to choose base configuration of SSH settings, tuned up for different purposes such as high security or higher compatibility. |
SSHSettingsCompressionAlgorithms | A list of session compression algorithms separated with commas or semicolons. |
SSHSettingsCompressionLevel | Possible values for the Compression Level range from 0 (minimum compression) to 9 (maximum compression). |
SSHSettingsDefaultWindowSize | The SSH window size specifies how many bytes the client can send to the server in the command channel without obtaining pre-authorization for the further send from the server. |
SSHSettingsEncryptionAlgorithms | A list of session encryption algorithms separated with commas or semicolons. |
SSHSettingsForceCompression | Whether the SSH client should explicitly request compression. |
SSHSettingsGSSAuthTypes | A comma-separated list of authentication types. |
SSHSettingsGSSDelegateCreds | Switches credential delegation on or off. |
SSHSettingsGSSHostname | The GSS host name, in form of a FQDN (e. |
SSHSettingsGSSLib | A path to the GSS-API library (DLL or SO). |
SSHSettingsGSSMechanisms | A comma-separated list of GSS mechanisms to use. |
SSHSettingsGSSProtocols | A comma-separated list of SSPI protocols. |
SSHSettingsHandshakeTimeout | Specifies the maximal time for the SSH handshake to proceed, in seconds. |
SSHSettingsKexAlgorithms | A list of key exchange algorithms separated with commas or semicolons. |
SSHSettingsMacAlgorithms | A list of MAC (for message authentication code ) algorithms separated with commas or semicolons. |
SSHSettingsMaxSSHPacketSize | Specifies the maximum length of one SSH packet in bytes. |
SSHSettingsMinWindowSize | Specifies the minimal internal window size. |
SSHSettingsObfuscateHandshake | Enables or disables handshake obfuscation. |
SSHSettingsObfuscationPassword | Specifies the password used to encrypt the handshake when ObfuscateHandshake is set. |
SSHSettingsPublicKeyAlgorithms | A list of public key algorithms separated with commas or semicolons. |
SSHSettingsRequestPasswordChange | Whether to request a password change when connecting. |
SSHSettingsSoftwareName | The name to be used by the class to identify itself. |
SSHSettingsTrustAllKeys | Enables or disables explicit trust to all server keys. |
SSHSettingsUseAuthAgent | Enables or disables the use of external key agent, such as Putty key agent. |
SSHSettingsVersions | Specifies enabled SSH protocol versions (1 or 2). |
UserCount | The number of records in the User arrays. |
UserAssociatedData | Contains the user's Associated Data when SSH AEAD (Authenticated Encryption with Associated Data) algorithm is used. |
UserBasePath | Base path for this user in the server's file system. |
UserCert | Contains the user's certificate. |
UserData | Contains uninterpreted user-defined data that should be associated with the user account, such as comments or custom settings. |
UserHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
UserHashAlgorithm | Specifies the hash algorithm used to generate TOTP (Time-based One-Time Passwords) passwords for this user. |
UserIncomingSpeedLimit | Specifies the incoming speed limit for this user. |
UserOtpAlgorithm | The algorithm used to generate one-time passwords (OTP) for this user, either HOTP (Hash-based OTP) or TOTP (Time-based OTP). |
UserOtpValue | The user's time interval (TOTP) or Counter (HOTP). |
UserOutgoingSpeedLimit | Specifies the outgoing speed limit for this user. |
UserPassword | The user's authentication password. |
UserPasswordLen | Specifies the length of the user's OTP password. |
UserSharedSecret | Contains the user's secret key, which is essentially a shared secret between the client and server. |
UserSSHKey | Contains the user's SSH key. |
UserUsername | The registered name (login) of the user. |
UseUTF8 | Specifies whether UTF8 conversion is to be used when parsing file names. |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
Config | Sets or retrieves a configuration setting. |
DoAction | Performs an additional action. |
DropClient | Terminates a client connection. |
GetClientBuffer | Acquires a piece of operation data. |
GetClientFileEntry | Acquires file entry details from the class. |
ListClients | Enumerates the connected clients. |
PinClient | Takes a snapshot of the connection's properties. |
SetClientBuffer | Commits a data buffer to the server class. |
SetClientFileEntry | Commits the file entry details to the class. |
Start | Starts SFTP server operation. |
Stop | Stops SFTP server. |
Event List
The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.
Accept | This event is fired when new incoming connection is accepted. |
AfterCreateDirectory | This event indicates completion of directory creation request. |
AfterRemove | This event indicates completion of file removal request. |
AfterRenameFile | This event indicates completion of a file rename operation. |
AfterRequestAttributes | This event indicates completion of file attributes request. |
AfterSetAttributes | This event indicates completion of a set attributes request. |
AuthAttempt | Reports a user authentication attempt. |
AuthFailed | Reports user authentication failure. |
AuthPassword | This event is fired on password authentication attempt from a client. |
AuthPublicKey | This event is fired on public key authentication attempt from a client. |
AuthSucceeded | Reports a successful user authentication. |
BeforeCreateDirectory | This event is fired when a client requests to create a directory. |
BeforeDownloadFile | This event is fired when a download file request is received. |
BeforeFind | This event is fired when a client requests to find files and folders in Path. |
BeforeRemove | This event is fired when a client requests to delete a file or directory. |
BeforeRenameFile | This event is fired when a client requests to rename a file. |
BeforeRequestAttributes | This event is fired when a client requests to get file attributes. |
BeforeSetAttributes | This event is fired when a client requests to set file attributes. |
BeforeUploadFile | This event is fired when an upload file request is received. |
CloseFile | This event instructs the application to close an opened file. |
Connect | This event is fired when a remote connection has been established. |
CreateDirectory | This event instructs the application to create a directory. |
Disconnect | This event is fired when a client has disconnected. |
Error | Information about errors during data delivery. |
ExternalSign | Handles remote or external signing initiated by the server protocol. |
FindClose | This event signifies the completion of a custom file listing operation. |
FindFirst | This event signifies the start of the custom file listing retrieval mechanism. |
FindNext | This event retrieves the next entry of a custom file listing. |
Notification | This event notifies the application about an underlying control flow event. |
OpenFile | This event instructs the application to handle the file open request. |
ReadFile | This event is fired when a file read request is received. |
Remove | This event is fired when a client requests to delete a file or directory. |
RenameFile | This event is fired when a client requests to rename a file. |
RequestAttributes | This event is fired when a get file attributes request is received. |
SessionClosed | Reports session closure. |
SessionEstablished | This event is fired when a new session is established. |
SetAttributes | This event is fired when an set file attributes request is received. |
TranslatePath | This event is fired when a client requests the server to translate a path to its absolute form. |
WriteFile | This event is fired when a file write request is received. |
Config Settings
The following is a list of config settings for the class with short descriptions. Click on the links for further details.
AuthMode | Controls dual/multi-type authentication mode. |
CustomDHGroupIndex | Sets a specific Diffie-Hellman group index to enforce. |
DualStack | Allows the use of ip4 and ip6 simultaneously. |
MaxDHGroupSize | Sets the maximal Diffie-Hellman group size. |
MinDHGroupSize | Sets the minimal Diffie-Hellman group size. |
NotifyOnFileOperations | Enables low-level file operation notifications. |
UseStrictKeyExchange | Specifies how strict key exchange is supported. |
CheckKeyIntegrityBeforeUse | Enables or disable private key integrity check before use. |
CookieCaching | Specifies whether a cookie cache should be used for HTTP(S) transports. |
Cookies | Gets or sets local cookies for the class. |
DefDeriveKeyIterations | Specifies the default key derivation algorithm iteration count. |
EnableClientSideSSLFFDHE | Enables or disables finite field DHE key exchange support in TLS clients. |
GlobalCookies | Gets or sets global cookies for all the HTTP transports. |
HttpUserAgent | Specifies the user agent name to be used by all HTTP clients. |
LogDestination | Specifies the debug log destination. |
LogDetails | Specifies the debug log details to dump. |
LogFile | Specifies the debug log filename. |
LogFilters | Specifies the debug log filters. |
LogFlushMode | Specifies the log flush mode. |
LogLevel | Specifies the debug log level. |
LogMaxEventCount | Specifies the maximum number of events to cache before further action is taken. |
LogRotationMode | Specifies the log rotation mode. |
MaxASN1BufferLength | Specifies the maximal allowed length for ASN.1 primitive tag data. |
MaxASN1TreeDepth | Specifies the maximal depth for processed ASN.1 trees. |
OCSPHashAlgorithm | Specifies the hash algorithm to be used to identify certificates in OCSP requests. |
StaticDNS | Specifies whether static DNS rules should be used. |
StaticIPAddress[domain] | Gets or sets an IP address for the specified domain name. |
StaticIPAddresses | Gets or sets all the static DNS rules. |
Tag | Allows to store any custom data. |
TLSSessionGroup | Specifies the group name of TLS sessions to be used for session resumption. |
TLSSessionLifetime | Specifies lifetime in seconds of the cached TLS session. |
TLSSessionPurgeInterval | Specifies how often the session cache should remove the expired TLS sessions. |
UseOwnDNSResolver | Specifies whether the client classes should use own DNS resolver. |
UseSharedSystemStorages | Specifies whether the validation engine should use a global per-process copy of the system certificate stores. |
UseSystemOAEPAndPSS | Enforces or disables the use of system-driven RSA OAEP and PSS computations. |
UseSystemRandom | Enables or disables the use of the OS PRNG. |
Active Property (SecureBlackbox_SFTPServer Class)
Specifies whether the SFTP server has started and ready to accept connections.
Object Oriented Interface
public function getActive();
Procedural Interface
secureblackbox_sftpserver_get($res, 1 );
Default Value
false
Remarks
Check this property to find out whether the SFTP server is in active mode. Use Start and Stop methods to activate or deactivate the server.
This property is read-only and not available at design time.
Data Type
Boolean
AuthTypes Property (SecureBlackbox_SFTPServer Class)
Defines allowed authentication types.
Object Oriented Interface
public function getAuthTypes(); public function setAuthTypes($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 2 ); secureblackbox_sftpserver_set($res, 2, $value );
Default Value
30
Remarks
Use this property to define which authentication types are allowed on the server, set of
atRhosts | 0x01 | RHOSTS file authentication. Rarely used today. |
atPublicKey | 0x02 | Public key (sometimes called private key) authentication |
atPassword | 0x04 | Password-based authentication |
atHostbased | 0x08 | Hostbased authentication |
atKeyboard | 0x10 | Keyboard-interactive authentication. This is often used in place of generic password authentication. |
atGssWithMic | 0x20 | GSS authentication |
atGssKeyex | 0x40 | GSS authentication with key exchange |
atPublicKeyAgent | 0x80 | Public key agent authentication |
Data Type
Integer
BaseDir Property (SecureBlackbox_SFTPServer Class)
Specifies the server's base (root) directory.
Object Oriented Interface
public function getBaseDir(); public function setBaseDir($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 3 ); secureblackbox_sftpserver_set($res, 3, $value );
Default Value
''
Remarks
Use this property to set the base (root) directory on the server.
Data Type
String
ClientFileEntryATime Property (SecureBlackbox_SFTPServer Class)
Contains the last access time for this file, in UTC.
Object Oriented Interface
public function getClientFileEntryATime(); public function setClientFileEntryATime($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 4 ); secureblackbox_sftpserver_set($res, 4, $value );
Default Value
''
Remarks
Contains the last access time for this file, in UTC.
This property is not available at design time.
Data Type
String
ClientFileEntryCTime Property (SecureBlackbox_SFTPServer Class)
Contains this file's creation time, in UTC.
Object Oriented Interface
public function getClientFileEntryCTime(); public function setClientFileEntryCTime($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 5 ); secureblackbox_sftpserver_set($res, 5, $value );
Default Value
''
Remarks
Contains this file's creation time, in UTC.
This property is not available at design time.
Data Type
String
ClientFileEntryDirectory Property (SecureBlackbox_SFTPServer Class)
Specifies whether this entry is a directory.
Object Oriented Interface
public function getClientFileEntryDirectory(); public function setClientFileEntryDirectory($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 6 ); secureblackbox_sftpserver_set($res, 6, $value );
Default Value
false
Remarks
Specifies whether this entry is a directory.
This property is not available at design time.
Data Type
Boolean
ClientFileEntryFileType Property (SecureBlackbox_SFTPServer Class)
Specifies the type of this entry, one of the following: cftFile 0 cftDirectory 1 cftSymblink 2 cftSpecial 3 cftUnknown 4 cftSocket 5 cftCharDevice 6 cftBlockDevice 7 cftFIFO 8 .
Object Oriented Interface
public function getClientFileEntryFileType(); public function setClientFileEntryFileType($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 7 ); secureblackbox_sftpserver_set($res, 7, $value );
Default Value
4
Remarks
Specifies the type of this entry, one of the following:
cftFile | 0 | |
cftDirectory | 1 | |
cftSymblink | 2 | |
cftSpecial | 3 | |
cftUnknown | 4 | |
cftSocket | 5 | |
cftCharDevice | 6 | |
cftBlockDevice | 7 | |
cftFIFO | 8 |
This property is not available at design time.
Data Type
Integer
ClientFileEntryGroupExecute Property (SecureBlackbox_SFTPServer Class)
Controls file execution permission for the group users.
Object Oriented Interface
public function getClientFileEntryGroupExecute(); public function setClientFileEntryGroupExecute($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 8 ); secureblackbox_sftpserver_set($res, 8, $value );
Default Value
false
Remarks
Controls file execution permission for the group users.
This property is not available at design time.
Data Type
Boolean
ClientFileEntryGroupRead Property (SecureBlackbox_SFTPServer Class)
Controls file read permission for the group users.
Object Oriented Interface
public function getClientFileEntryGroupRead(); public function setClientFileEntryGroupRead($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 9 ); secureblackbox_sftpserver_set($res, 9, $value );
Default Value
false
Remarks
Controls file read permission for the group users.
This property is not available at design time.
Data Type
Boolean
ClientFileEntryGroupWrite Property (SecureBlackbox_SFTPServer Class)
Controls file write permission for the group users.
Object Oriented Interface
public function getClientFileEntryGroupWrite(); public function setClientFileEntryGroupWrite($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 10 ); secureblackbox_sftpserver_set($res, 10, $value );
Default Value
false
Remarks
Controls file write permission for the group users.
This property is not available at design time.
Data Type
Boolean
ClientFileEntryHandle Property (SecureBlackbox_SFTPServer Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Object Oriented Interface
public function getClientFileEntryHandle(); public function setClientFileEntryHandle($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 11 ); secureblackbox_sftpserver_set($res, 11, $value );
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object
after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
This property is not available at design time.
Data Type
Long64
ClientFileEntryLongName Property (SecureBlackbox_SFTPServer Class)
Contains the long name of the file (human-readable, ftp-like).
Object Oriented Interface
public function getClientFileEntryLongName(); public function setClientFileEntryLongName($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 12 ); secureblackbox_sftpserver_set($res, 12, $value );
Default Value
''
Remarks
Contains the long name of the file (human-readable, ftp-like).
This property is not available at design time.
Data Type
String
ClientFileEntryMTime Property (SecureBlackbox_SFTPServer Class)
Specifies the last modification time, in UTC.
Object Oriented Interface
public function getClientFileEntryMTime(); public function setClientFileEntryMTime($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 13 ); secureblackbox_sftpserver_set($res, 13, $value );
Default Value
''
Remarks
Specifies the last modification time, in UTC.
This property is not available at design time.
Data Type
String
ClientFileEntryName Property (SecureBlackbox_SFTPServer Class)
Specifies the file name.
Object Oriented Interface
public function getClientFileEntryName(); public function setClientFileEntryName($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 14 ); secureblackbox_sftpserver_set($res, 14, $value );
Default Value
''
Remarks
Specifies the file name.
This property is not available at design time.
Data Type
String
ClientFileEntryOtherExecute Property (SecureBlackbox_SFTPServer Class)
Controls file execution permission for other users (users that are neither owners, nor belong to the same group).
Object Oriented Interface
public function getClientFileEntryOtherExecute(); public function setClientFileEntryOtherExecute($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 15 ); secureblackbox_sftpserver_set($res, 15, $value );
Default Value
false
Remarks
Controls file execution permission for other users (users that are neither owners, nor belong to the same group).
This property is not available at design time.
Data Type
Boolean
ClientFileEntryOtherRead Property (SecureBlackbox_SFTPServer Class)
Controls file read permission for other users (users that are neither owners, nor belong to the same group).
Object Oriented Interface
public function getClientFileEntryOtherRead(); public function setClientFileEntryOtherRead($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 16 ); secureblackbox_sftpserver_set($res, 16, $value );
Default Value
false
Remarks
Controls file read permission for other users (users that are neither owners, nor belong to the same group).
This property is not available at design time.
Data Type
Boolean
ClientFileEntryOtherWrite Property (SecureBlackbox_SFTPServer Class)
Controls file write permission for other users (users that are neither owners, nor belong to the same group).
Object Oriented Interface
public function getClientFileEntryOtherWrite(); public function setClientFileEntryOtherWrite($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 17 ); secureblackbox_sftpserver_set($res, 17, $value );
Default Value
false
Remarks
Controls file write permission for other users (users that are neither owners, nor belong to the same group).
This property is not available at design time.
Data Type
Boolean
ClientFileEntryOwner Property (SecureBlackbox_SFTPServer Class)
Specifies the owner of the file/directory.
Object Oriented Interface
public function getClientFileEntryOwner(); public function setClientFileEntryOwner($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 18 ); secureblackbox_sftpserver_set($res, 18, $value );
Default Value
''
Remarks
Specifies the owner of the file/directory.
This property is not available at design time.
Data Type
String
ClientFileEntryPath Property (SecureBlackbox_SFTPServer Class)
Contains the full path to the file.
Object Oriented Interface
public function getClientFileEntryPath(); public function setClientFileEntryPath($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 19 ); secureblackbox_sftpserver_set($res, 19, $value );
Default Value
''
Remarks
Contains the full path to the file.
This property is not available at design time.
Data Type
String
ClientFileEntrySize Property (SecureBlackbox_SFTPServer Class)
The size of the file in bytes.
Object Oriented Interface
public function getClientFileEntrySize(); public function setClientFileEntrySize($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 20 ); secureblackbox_sftpserver_set($res, 20, $value );
Default Value
0
Remarks
The size of the file in bytes.
This property is not available at design time.
Data Type
Long64
ClientFileEntryUserExecute Property (SecureBlackbox_SFTPServer Class)
Controls file execution permission for the file owner.
Object Oriented Interface
public function getClientFileEntryUserExecute(); public function setClientFileEntryUserExecute($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 21 ); secureblackbox_sftpserver_set($res, 21, $value );
Default Value
false
Remarks
Controls file execution permission for the file owner.
This property is not available at design time.
Data Type
Boolean
ClientFileEntryUserRead Property (SecureBlackbox_SFTPServer Class)
Controls file read permission for the file owner.
Object Oriented Interface
public function getClientFileEntryUserRead(); public function setClientFileEntryUserRead($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 22 ); secureblackbox_sftpserver_set($res, 22, $value );
Default Value
false
Remarks
Controls file read permission for the file owner.
This property is not available at design time.
Data Type
Boolean
ClientFileEntryUserWrite Property (SecureBlackbox_SFTPServer Class)
Controls file write permission for the file owner.
Object Oriented Interface
public function getClientFileEntryUserWrite(); public function setClientFileEntryUserWrite($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 23 ); secureblackbox_sftpserver_set($res, 23, $value );
Default Value
false
Remarks
Controls file write permission for the file owner.
This property is not available at design time.
Data Type
Boolean
CompressionLevel Property (SecureBlackbox_SFTPServer Class)
Specifies the preferable compression level.
Object Oriented Interface
public function getCompressionLevel(); public function setCompressionLevel($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 24 ); secureblackbox_sftpserver_set($res, 24, $value );
Default Value
9
Remarks
Set this property before starting the server. Possible values range from 0 (lowest compression) to 9 (maximum compression). This property is ignored if compression wasn't accepted.
Data Type
Integer
ExternalCryptoAsyncDocumentID Property (SecureBlackbox_SFTPServer Class)
Specifies an optional document ID for SignAsyncBegin() and SignAsyncEnd() calls.
Object Oriented Interface
public function getExternalCryptoAsyncDocumentID(); public function setExternalCryptoAsyncDocumentID($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 25 ); secureblackbox_sftpserver_set($res, 25, $value );
Default Value
''
Remarks
Specifies an optional document ID for SignAsyncBegin() and SignAsyncEnd() calls.
Use this property when working with multi-signature DCAuth requests and responses to uniquely identify documents signed within a larger batch. On the completion stage, this value helps the signing component identify the correct signature in the returned batch of responses.
If using batched requests, make sure to set this property to the same value on both the pre-signing (SignAsyncBegin) and completion (SignAsyncEnd) stages.
Data Type
String
ExternalCryptoCustomParams Property (SecureBlackbox_SFTPServer Class)
Custom parameters to be passed to the signing service (uninterpreted).
Object Oriented Interface
public function getExternalCryptoCustomParams(); public function setExternalCryptoCustomParams($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 26 ); secureblackbox_sftpserver_set($res, 26, $value );
Default Value
''
Remarks
Custom parameters to be passed to the signing service (uninterpreted).
This property is not available at design time.
Data Type
String
ExternalCryptoData Property (SecureBlackbox_SFTPServer Class)
Additional data to be included in the async state and mirrored back by the requestor.
Object Oriented Interface
public function getExternalCryptoData(); public function setExternalCryptoData($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 27 ); secureblackbox_sftpserver_set($res, 27, $value );
Default Value
''
Remarks
Additional data to be included in the async state and mirrored back by the requestor.
This property is not available at design time.
Data Type
String
ExternalCryptoExternalHashCalculation Property (SecureBlackbox_SFTPServer Class)
Specifies whether the message hash is to be calculated at the external endpoint.
Object Oriented Interface
public function getExternalCryptoExternalHashCalculation(); public function setExternalCryptoExternalHashCalculation($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 28 ); secureblackbox_sftpserver_set($res, 28, $value );
Default Value
false
Remarks
Specifies whether the message hash is to be calculated at the external endpoint. Please note that this mode is not supported by the DCAuth class.
If set to true, the class will pass a few kilobytes of to-be-signed data from the document to the OnExternalSign event. This only applies when SignExternal() is called.
Data Type
Boolean
ExternalCryptoHashAlgorithm Property (SecureBlackbox_SFTPServer Class)
Specifies the request's signature hash algorithm.
Object Oriented Interface
public function getExternalCryptoHashAlgorithm(); public function setExternalCryptoHashAlgorithm($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 29 ); secureblackbox_sftpserver_set($res, 29, $value );
Default Value
'SHA256'
Remarks
Specifies the request's signature hash algorithm.
SB_HASH_ALGORITHM_SHA1 | SHA1 | |
SB_HASH_ALGORITHM_SHA224 | SHA224 | |
SB_HASH_ALGORITHM_SHA256 | SHA256 | |
SB_HASH_ALGORITHM_SHA384 | SHA384 | |
SB_HASH_ALGORITHM_SHA512 | SHA512 | |
SB_HASH_ALGORITHM_MD2 | MD2 | |
SB_HASH_ALGORITHM_MD4 | MD4 | |
SB_HASH_ALGORITHM_MD5 | MD5 | |
SB_HASH_ALGORITHM_RIPEMD160 | RIPEMD160 | |
SB_HASH_ALGORITHM_CRC32 | CRC32 | |
SB_HASH_ALGORITHM_SSL3 | SSL3 | |
SB_HASH_ALGORITHM_GOST_R3411_1994 | GOST1994 | |
SB_HASH_ALGORITHM_WHIRLPOOL | WHIRLPOOL | |
SB_HASH_ALGORITHM_POLY1305 | POLY1305 | |
SB_HASH_ALGORITHM_SHA3_224 | SHA3_224 | |
SB_HASH_ALGORITHM_SHA3_256 | SHA3_256 | |
SB_HASH_ALGORITHM_SHA3_384 | SHA3_384 | |
SB_HASH_ALGORITHM_SHA3_512 | SHA3_512 | |
SB_HASH_ALGORITHM_BLAKE2S_128 | BLAKE2S_128 | |
SB_HASH_ALGORITHM_BLAKE2S_160 | BLAKE2S_160 | |
SB_HASH_ALGORITHM_BLAKE2S_224 | BLAKE2S_224 | |
SB_HASH_ALGORITHM_BLAKE2S_256 | BLAKE2S_256 | |
SB_HASH_ALGORITHM_BLAKE2B_160 | BLAKE2B_160 | |
SB_HASH_ALGORITHM_BLAKE2B_256 | BLAKE2B_256 | |
SB_HASH_ALGORITHM_BLAKE2B_384 | BLAKE2B_384 | |
SB_HASH_ALGORITHM_BLAKE2B_512 | BLAKE2B_512 | |
SB_HASH_ALGORITHM_SHAKE_128 | SHAKE_128 | |
SB_HASH_ALGORITHM_SHAKE_256 | SHAKE_256 | |
SB_HASH_ALGORITHM_SHAKE_128_LEN | SHAKE_128_LEN | |
SB_HASH_ALGORITHM_SHAKE_256_LEN | SHAKE_256_LEN |
Data Type
String
ExternalCryptoKeyID Property (SecureBlackbox_SFTPServer Class)
The ID of the pre-shared key used for DC request authentication.
Object Oriented Interface
public function getExternalCryptoKeyID(); public function setExternalCryptoKeyID($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 30 ); secureblackbox_sftpserver_set($res, 30, $value );
Default Value
''
Remarks
The ID of the pre-shared key used for DC request authentication.
Asynchronous DCAuth-driven communication requires that parties authenticate each other with a secret pre-shared cryptographic key. This provides an extra protection layer for the protocol and diminishes the risk of the private key becoming abused by foreign parties. Use this property to provide the pre-shared key identifier, and use ExternalCryptoKeySecret to pass the key itself.
The same KeyID/KeySecret pair should be used on the DCAuth side for the signing requests to be accepted.
Note: The KeyID/KeySecret scheme is very similar to the AuthKey scheme used in various Cloud service providers to authenticate users.
Example:
signer.ExternalCrypto.KeyID = "MainSigningKey";
signer.ExternalCrypto.KeySecret = "abcdef0123456789";
Data Type
String
ExternalCryptoKeySecret Property (SecureBlackbox_SFTPServer Class)
The pre-shared key used for DC request authentication.
Object Oriented Interface
public function getExternalCryptoKeySecret(); public function setExternalCryptoKeySecret($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 31 ); secureblackbox_sftpserver_set($res, 31, $value );
Default Value
''
Remarks
The pre-shared key used for DC request authentication. This key must be set and match the key used by the DCAuth counterpart for the scheme to work.
Read more about configuring authentication in the ExternalCryptoKeyID topic.
Data Type
String
ExternalCryptoMethod Property (SecureBlackbox_SFTPServer Class)
Specifies the asynchronous signing method.
Object Oriented Interface
public function getExternalCryptoMethod(); public function setExternalCryptoMethod($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 32 ); secureblackbox_sftpserver_set($res, 32, $value );
Default Value
0
Remarks
Specifies the asynchronous signing method. This is typically defined by the DC server capabilities and setup.
Available options:
asmdPKCS1 | 0 |
asmdPKCS7 | 1 |
Data Type
Integer
ExternalCryptoMode Property (SecureBlackbox_SFTPServer Class)
Specifies the external cryptography mode.
Object Oriented Interface
public function getExternalCryptoMode(); public function setExternalCryptoMode($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 33 ); secureblackbox_sftpserver_set($res, 33, $value );
Default Value
0
Remarks
Specifies the external cryptography mode.
Available options:
ecmDefault | The default value (0) |
ecmDisabled | Do not use DC or external signing (1) |
ecmGeneric | Generic external signing with the OnExternalSign event (2) |
ecmDCAuth | DCAuth signing (3) |
ecmDCAuthJSON | DCAuth signing in JSON format (4) |
This property is not available at design time.
Data Type
Integer
ExternalCryptoPublicKeyAlgorithm Property (SecureBlackbox_SFTPServer Class)
Provide the public key algorithm here if the certificate is not available on the pre-signing stage.
Object Oriented Interface
public function getExternalCryptoPublicKeyAlgorithm(); public function setExternalCryptoPublicKeyAlgorithm($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 34 ); secureblackbox_sftpserver_set($res, 34, $value );
Default Value
''
Remarks
Provide the public key algorithm here if the certificate is not available on the pre-signing stage.
SB_CERT_ALGORITHM_ID_RSA_ENCRYPTION | rsaEncryption | |
SB_CERT_ALGORITHM_MD2_RSA_ENCRYPTION | md2withRSAEncryption | |
SB_CERT_ALGORITHM_MD5_RSA_ENCRYPTION | md5withRSAEncryption | |
SB_CERT_ALGORITHM_SHA1_RSA_ENCRYPTION | sha1withRSAEncryption | |
SB_CERT_ALGORITHM_ID_DSA | id-dsa | |
SB_CERT_ALGORITHM_ID_DSA_SHA1 | id-dsa-with-sha1 | |
SB_CERT_ALGORITHM_DH_PUBLIC | dhpublicnumber | |
SB_CERT_ALGORITHM_SHA224_RSA_ENCRYPTION | sha224WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA256_RSA_ENCRYPTION | sha256WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA384_RSA_ENCRYPTION | sha384WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA512_RSA_ENCRYPTION | sha512WithRSAEncryption | |
SB_CERT_ALGORITHM_ID_RSAPSS | id-RSASSA-PSS | |
SB_CERT_ALGORITHM_ID_RSAOAEP | id-RSAES-OAEP | |
SB_CERT_ALGORITHM_RSASIGNATURE_RIPEMD160 | ripemd160withRSA | |
SB_CERT_ALGORITHM_ID_ELGAMAL | elGamal | |
SB_CERT_ALGORITHM_SHA1_ECDSA | ecdsa-with-SHA1 | |
SB_CERT_ALGORITHM_RECOMMENDED_ECDSA | ecdsa-recommended | |
SB_CERT_ALGORITHM_SHA224_ECDSA | ecdsa-with-SHA224 | |
SB_CERT_ALGORITHM_SHA256_ECDSA | ecdsa-with-SHA256 | |
SB_CERT_ALGORITHM_SHA384_ECDSA | ecdsa-with-SHA384 | |
SB_CERT_ALGORITHM_SHA512_ECDSA | ecdsa-with-SHA512 | |
SB_CERT_ALGORITHM_EC | id-ecPublicKey | |
SB_CERT_ALGORITHM_SPECIFIED_ECDSA | ecdsa-specified | |
SB_CERT_ALGORITHM_GOST_R3410_1994 | id-GostR3410-94 | |
SB_CERT_ALGORITHM_GOST_R3410_2001 | id-GostR3410-2001 | |
SB_CERT_ALGORITHM_GOST_R3411_WITH_R3410_1994 | id-GostR3411-94-with-GostR3410-94 | |
SB_CERT_ALGORITHM_GOST_R3411_WITH_R3410_2001 | id-GostR3411-94-with-GostR3410-2001 | |
SB_CERT_ALGORITHM_SHA1_ECDSA_PLAIN | ecdsa-plain-SHA1 | |
SB_CERT_ALGORITHM_SHA224_ECDSA_PLAIN | ecdsa-plain-SHA224 | |
SB_CERT_ALGORITHM_SHA256_ECDSA_PLAIN | ecdsa-plain-SHA256 | |
SB_CERT_ALGORITHM_SHA384_ECDSA_PLAIN | ecdsa-plain-SHA384 | |
SB_CERT_ALGORITHM_SHA512_ECDSA_PLAIN | ecdsa-plain-SHA512 | |
SB_CERT_ALGORITHM_RIPEMD160_ECDSA_PLAIN | ecdsa-plain-RIPEMD160 | |
SB_CERT_ALGORITHM_WHIRLPOOL_RSA_ENCRYPTION | whirlpoolWithRSAEncryption | |
SB_CERT_ALGORITHM_ID_DSA_SHA224 | id-dsa-with-sha224 | |
SB_CERT_ALGORITHM_ID_DSA_SHA256 | id-dsa-with-sha256 | |
SB_CERT_ALGORITHM_SHA3_224_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-512 | |
SB_CERT_ALGORITHM_SHA3_224_ECDSA | id-ecdsa-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_ECDSA | id-ecdsa-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_ECDSA | id-ecdsa-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_ECDSA | id-ecdsa-with-sha3-512 | |
SB_CERT_ALGORITHM_SHA3_224_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-512 | |
SB_CERT_ALGORITHM_ID_DSA_SHA3_224 | id-dsa-with-sha3-224 | |
SB_CERT_ALGORITHM_ID_DSA_SHA3_256 | id-dsa-with-sha3-256 | |
SB_CERT_ALGORITHM_BLAKE2S_128_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b512 | |
SB_CERT_ALGORITHM_BLAKE2S_128_ECDSA | id-ecdsa-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_ECDSA | id-ecdsa-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_ECDSA | id-ecdsa-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_ECDSA | id-ecdsa-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_ECDSA | id-ecdsa-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_ECDSA | id-ecdsa-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_ECDSA | id-ecdsa-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_ECDSA | id-ecdsa-with-blake2b512 | |
SB_CERT_ALGORITHM_BLAKE2S_128_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b512 | |
SB_CERT_ALGORITHM_ID_DSA_BLAKE2S_224 | id-dsa-with-blake2s224 | |
SB_CERT_ALGORITHM_ID_DSA_BLAKE2S_256 | id-dsa-with-blake2s256 | |
SB_CERT_ALGORITHM_EDDSA_ED25519 | id-Ed25519 | |
SB_CERT_ALGORITHM_EDDSA_ED448 | id-Ed448 | |
SB_CERT_ALGORITHM_EDDSA_ED25519_PH | id-Ed25519ph | |
SB_CERT_ALGORITHM_EDDSA_ED448_PH | id-Ed448ph | |
SB_CERT_ALGORITHM_EDDSA | id-EdDSA | |
SB_CERT_ALGORITHM_EDDSA_SIGNATURE | id-EdDSA-sig |
Data Type
String
FIPSMode Property (SecureBlackbox_SFTPServer Class)
Reserved.
Object Oriented Interface
public function getFIPSMode(); public function setFIPSMode($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 35 ); secureblackbox_sftpserver_set($res, 35, $value );
Default Value
false
Remarks
This property is reserved for future use.
Data Type
Boolean
ForceCompression Property (SecureBlackbox_SFTPServer Class)
This property specifies whether server explicitly requires data compression.
Object Oriented Interface
public function getForceCompression(); public function setForceCompression($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 36 ); secureblackbox_sftpserver_set($res, 36, $value );
Default Value
false
Remarks
Set this property before starting the server. If it is set to true, the class will explicitly request data compression. If it is set to False, the class will support compression, although compression will be used only if the remote party doesn't support algorithms without compression.
Data Type
Boolean
Host Property (SecureBlackbox_SFTPServer Class)
Specifies server's host name.
Object Oriented Interface
public function getHost(); public function setHost($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 37 ); secureblackbox_sftpserver_set($res, 37, $value );
Default Value
''
Remarks
Use this property to set the host name for this server.
Data Type
String
KeyFingerprintSHA1 Property (SecureBlackbox_SFTPServer Class)
Contains the SHA-1 fingerprint (hash) of the key.
Object Oriented Interface
public function getKeyFingerprintSHA1();
Procedural Interface
secureblackbox_sftpserver_get($res, 53 );
Default Value
''
Remarks
Contains the SHA-1 fingerprint (hash) of the key.
This property is read-only and not available at design time.
Data Type
String
KeyFingerprintSHA256 Property (SecureBlackbox_SFTPServer Class)
Contains the SHA-256 fingerprint (hash) of the key.
Object Oriented Interface
public function getKeyFingerprintSHA256();
Procedural Interface
secureblackbox_sftpserver_get($res, 54 );
Default Value
''
Remarks
Contains the SHA-256 fingerprint (hash) of the key.
This property is read-only and not available at design time.
Data Type
String
KeyHandle Property (SecureBlackbox_SFTPServer Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Object Oriented Interface
public function getKeyHandle();
Procedural Interface
secureblackbox_sftpserver_get($res, 55 );
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object
after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
This property is read-only and not available at design time.
Data Type
Long64
MaxSFTPVersion Property (SecureBlackbox_SFTPServer Class)
Maximum SFTP version supported.
Object Oriented Interface
public function getMaxSFTPVersion(); public function setMaxSFTPVersion($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 70 ); secureblackbox_sftpserver_set($res, 70, $value );
Default Value
6
Remarks
MaxSFTPVersion and MinSFTPVersion properties control the range of SFTP protocol versions supported by this server.
Data Type
Integer
MinSFTPVersion Property (SecureBlackbox_SFTPServer Class)
Minimum SFTP version supported.
Object Oriented Interface
public function getMinSFTPVersion(); public function setMinSFTPVersion($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 71 ); secureblackbox_sftpserver_set($res, 71, $value );
Default Value
0
Remarks
MaxSFTPVersion and MinSFTPVersion properties control the range of SFTP protocol versions supported by this server.
Data Type
Integer
PinnedClientAddress Property (SecureBlackbox_SFTPServer Class)
The client's IP address.
Object Oriented Interface
public function getPinnedClientAddress();
Procedural Interface
secureblackbox_sftpserver_get($res, 72 );
Default Value
''
Remarks
The client's IP address.
This property is read-only and not available at design time.
Data Type
String
PinnedClientClientKeyAlgorithm Property (SecureBlackbox_SFTPServer Class)
Specifies the client's key algorithm.
Object Oriented Interface
public function getPinnedClientClientKeyAlgorithm();
Procedural Interface
secureblackbox_sftpserver_get($res, 73 );
Default Value
''
Remarks
Specifies the client's key algorithm.
This property is read-only and not available at design time.
Data Type
String
PinnedClientClientKeyBits Property (SecureBlackbox_SFTPServer Class)
Specifies the length of the client's key.
Object Oriented Interface
public function getPinnedClientClientKeyBits();
Procedural Interface
secureblackbox_sftpserver_get($res, 74 );
Default Value
0
Remarks
Specifies the length of the client's key.
This property is read-only and not available at design time.
Data Type
Integer
PinnedClientClientKeyFingerprint Property (SecureBlackbox_SFTPServer Class)
The fingerprint (hash value) of the client's public key.
Object Oriented Interface
public function getPinnedClientClientKeyFingerprint();
Procedural Interface
secureblackbox_sftpserver_get($res, 75 );
Default Value
''
Remarks
The fingerprint (hash value) of the client's public key.
This property is read-only and not available at design time.
Data Type
String
PinnedClientClientSoftwareName Property (SecureBlackbox_SFTPServer Class)
Returns the name of the SSH software running on the client side.
Object Oriented Interface
public function getPinnedClientClientSoftwareName();
Procedural Interface
secureblackbox_sftpserver_get($res, 76 );
Default Value
''
Remarks
Returns the name of the SSH software running on the client side.
This property is read-only and not available at design time.
Data Type
String
PinnedClientCloseReason Property (SecureBlackbox_SFTPServer Class)
Contains the line sent by the client just before closing the connection.
Object Oriented Interface
public function getPinnedClientCloseReason();
Procedural Interface
secureblackbox_sftpserver_get($res, 77 );
Default Value
''
Remarks
Contains the line sent by the client just before closing the connection. It might contain the error description if the connection was not closed gracefully.
This property is read-only and not available at design time.
Data Type
String
PinnedClientCompressionAlgorithmInbound Property (SecureBlackbox_SFTPServer Class)
Compression algorithm for the incoming traffic.
Object Oriented Interface
public function getPinnedClientCompressionAlgorithmInbound();
Procedural Interface
secureblackbox_sftpserver_get($res, 78 );
Default Value
''
Remarks
Compression algorithm for the incoming traffic.
This property is read-only and not available at design time.
Data Type
String
PinnedClientCompressionAlgorithmOutbound Property (SecureBlackbox_SFTPServer Class)
Compression algorithm for the outgoing traffic.
Object Oriented Interface
public function getPinnedClientCompressionAlgorithmOutbound();
Procedural Interface
secureblackbox_sftpserver_get($res, 79 );
Default Value
''
Remarks
Compression algorithm for the outgoing traffic.
This property is read-only and not available at design time.
Data Type
String
PinnedClientEncryptionAlgorithmInbound Property (SecureBlackbox_SFTPServer Class)
Encryption algorithm for the incoming traffic.
Object Oriented Interface
public function getPinnedClientEncryptionAlgorithmInbound();
Procedural Interface
secureblackbox_sftpserver_get($res, 80 );
Default Value
''
Remarks
Encryption algorithm for the incoming traffic.
This property is read-only and not available at design time.
Data Type
String
PinnedClientEncryptionAlgorithmOutbound Property (SecureBlackbox_SFTPServer Class)
Encryption algorithm for the outgoing traffic.
Object Oriented Interface
public function getPinnedClientEncryptionAlgorithmOutbound();
Procedural Interface
secureblackbox_sftpserver_get($res, 81 );
Default Value
''
Remarks
Encryption algorithm for the outgoing traffic.
This property is read-only and not available at design time.
Data Type
String
PinnedClientID Property (SecureBlackbox_SFTPServer Class)
The client connection's unique identifier.
Object Oriented Interface
public function getPinnedClientID();
Procedural Interface
secureblackbox_sftpserver_get($res, 82 );
Default Value
-1
Remarks
The client connection's unique identifier. This value is used throughout to refer to a particular client connection.
This property is read-only and not available at design time.
Data Type
Long64
PinnedClientInboundEncryptionKeyBits Property (SecureBlackbox_SFTPServer Class)
Specifies the length of the key used to encrypt the incoming traffic.
Object Oriented Interface
public function getPinnedClientInboundEncryptionKeyBits();
Procedural Interface
secureblackbox_sftpserver_get($res, 83 );
Default Value
0
Remarks
Specifies the length of the key used to encrypt the incoming traffic.
This property is read-only and not available at design time.
Data Type
Integer
PinnedClientKexAlgorithm Property (SecureBlackbox_SFTPServer Class)
The key exchange algorithm used during the SSH handshake.
Object Oriented Interface
public function getPinnedClientKexAlgorithm();
Procedural Interface
secureblackbox_sftpserver_get($res, 84 );
Default Value
''
Remarks
The key exchange algorithm used during the SSH handshake.
This property is read-only and not available at design time.
Data Type
String
PinnedClientKexBits Property (SecureBlackbox_SFTPServer Class)
The number of bits used by the key exchange algorithm.
Object Oriented Interface
public function getPinnedClientKexBits();
Procedural Interface
secureblackbox_sftpserver_get($res, 85 );
Default Value
0
Remarks
The number of bits used by the key exchange algorithm.
This property is read-only and not available at design time.
Data Type
Integer
PinnedClientKexLines Property (SecureBlackbox_SFTPServer Class)
The contents of the received KexInit packet.
Object Oriented Interface
public function getPinnedClientKexLines();
Procedural Interface
secureblackbox_sftpserver_get($res, 86 );
Default Value
''
Remarks
The contents of the received KexInit packet.
KexInit packet contains the list of algorithms supported by the remote party.
This property is read-only and not available at design time.
Data Type
String
PinnedClientMacAlgorithmInbound Property (SecureBlackbox_SFTPServer Class)
MAC algorithm used for the incoming connection.
Object Oriented Interface
public function getPinnedClientMacAlgorithmInbound();
Procedural Interface
secureblackbox_sftpserver_get($res, 87 );
Default Value
''
Remarks
MAC algorithm used for the incoming connection.
This property is read-only and not available at design time.
Data Type
String
PinnedClientMacAlgorithmOutbound Property (SecureBlackbox_SFTPServer Class)
MAC algorithm used for outbound connection.
Object Oriented Interface
public function getPinnedClientMacAlgorithmOutbound();
Procedural Interface
secureblackbox_sftpserver_get($res, 88 );
Default Value
''
Remarks
MAC algorithm used for outbound connection.
This property is read-only and not available at design time.
Data Type
String
PinnedClientOutboundEncryptionKeyBits Property (SecureBlackbox_SFTPServer Class)
Specifies the length of the key used to encrypt the outgoing traffic.
Object Oriented Interface
public function getPinnedClientOutboundEncryptionKeyBits();
Procedural Interface
secureblackbox_sftpserver_get($res, 89 );
Default Value
0
Remarks
Specifies the length of the key used to encrypt the outgoing traffic.
This property is read-only and not available at design time.
Data Type
Integer
PinnedClientPort Property (SecureBlackbox_SFTPServer Class)
The remote port of the client connection.
Object Oriented Interface
public function getPinnedClientPort();
Procedural Interface
secureblackbox_sftpserver_get($res, 90 );
Default Value
0
Remarks
The remote port of the client connection.
This property is read-only and not available at design time.
Data Type
Integer
PinnedClientPublicKeyAlgorithm Property (SecureBlackbox_SFTPServer Class)
Specifies the public key algorithm which was used during the SSH handshake.
Object Oriented Interface
public function getPinnedClientPublicKeyAlgorithm();
Procedural Interface
secureblackbox_sftpserver_get($res, 91 );
Default Value
''
Remarks
Specifies the public key algorithm which was used during the SSH handshake.
This property is read-only and not available at design time.
Data Type
String
PinnedClientServerKeyBits Property (SecureBlackbox_SFTPServer Class)
Specifies the number of bits in the server's key.
Object Oriented Interface
public function getPinnedClientServerKeyBits();
Procedural Interface
secureblackbox_sftpserver_get($res, 92 );
Default Value
0
Remarks
Specifies the number of bits in the server's key.
This property is read-only and not available at design time.
Data Type
Integer
PinnedClientServerKeyFingerprint Property (SecureBlackbox_SFTPServer Class)
The fingerprint (hash value) of the server's public key.
Object Oriented Interface
public function getPinnedClientServerKeyFingerprint();
Procedural Interface
secureblackbox_sftpserver_get($res, 93 );
Default Value
''
Remarks
The fingerprint (hash value) of the server's public key.
This property is read-only and not available at design time.
Data Type
String
PinnedClientTotalBytesReceived Property (SecureBlackbox_SFTPServer Class)
Returns the total number of bytes received over this connection.
Object Oriented Interface
public function getPinnedClientTotalBytesReceived();
Procedural Interface
secureblackbox_sftpserver_get($res, 94 );
Default Value
0
Remarks
Returns the total number of bytes received over this connection.
This property is read-only and not available at design time.
Data Type
Long64
PinnedClientTotalBytesSent Property (SecureBlackbox_SFTPServer Class)
Returns the total number of bytes sent over this connection.
Object Oriented Interface
public function getPinnedClientTotalBytesSent();
Procedural Interface
secureblackbox_sftpserver_get($res, 95 );
Default Value
0
Remarks
Returns the total number of bytes sent over this connection.
This property is read-only and not available at design time.
Data Type
Long64
PinnedClientVersion Property (SecureBlackbox_SFTPServer Class)
Specifies SSH protocol version.
Object Oriented Interface
public function getPinnedClientVersion();
Procedural Interface
secureblackbox_sftpserver_get($res, 96 );
Default Value
2
Remarks
Specifies SSH protocol version.
This property is read-only and not available at design time.
Data Type
Integer
Port Property (SecureBlackbox_SFTPServer Class)
Specifies the listening port number.
Object Oriented Interface
public function getPort(); public function setPort($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 97 ); secureblackbox_sftpserver_set($res, 97, $value );
Default Value
22
Remarks
Use this property to specify on which port the class will be listening to client connections.
Data Type
Integer
ReadOnly Property (SecureBlackbox_SFTPServer Class)
Specifies whether files on the server are read-only.
Object Oriented Interface
public function getReadOnly(); public function setReadOnly($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 98 ); secureblackbox_sftpserver_set($res, 98, $value );
Default Value
false
Remarks
Set this property to true to deny all client requests to change files on the server.
Data Type
Boolean
ServerKeyCount Property (SecureBlackbox_SFTPServer Class)
The number of records in the ServerKey arrays.
Object Oriented Interface
public function getServerKeyCount(); public function setServerKeyCount($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 99 ); secureblackbox_sftpserver_set($res, 99, $value );
Default Value
0
Remarks
This property controls the size of the following arrays:
The array indices start at 0 and end at ServerKeyCount - 1.This property is not available at design time.
Data Type
Integer
ServerKeyAlgorithm Property (SecureBlackbox_SFTPServer Class)
Specifies the key algorithm.
Object Oriented Interface
public function getServerKeyAlgorithm($serverkeyindex);
Procedural Interface
secureblackbox_sftpserver_get($res, 100 , $serverkeyindex);
Default Value
''
Remarks
Specifies the key algorithm.
The $serverkeyindex parameter specifies the index of the item in the array. The size of the array is controlled by the ServerKeyCount property.
This property is read-only and not available at design time.
Data Type
String
ServerKeyBits Property (SecureBlackbox_SFTPServer Class)
The number of bits in the key: the more the better, 2048 or 4096 are typical values.
Object Oriented Interface
public function getServerKeyBits($serverkeyindex);
Procedural Interface
secureblackbox_sftpserver_get($res, 101 , $serverkeyindex);
Default Value
0
Remarks
The number of bits in the key: the more the better, 2048 or 4096 are typical values.
The $serverkeyindex parameter specifies the index of the item in the array. The size of the array is controlled by the ServerKeyCount property.
This property is read-only and not available at design time.
Data Type
Integer
ServerKeyFingerprintMD5 Property (SecureBlackbox_SFTPServer Class)
Contains the MD5 fingerprint (hash) of the key.
Object Oriented Interface
public function getServerKeyFingerprintMD5($serverkeyindex);
Procedural Interface
secureblackbox_sftpserver_get($res, 114 , $serverkeyindex);
Default Value
''
Remarks
Contains the MD5 fingerprint (hash) of the key.
The $serverkeyindex parameter specifies the index of the item in the array. The size of the array is controlled by the ServerKeyCount property.
This property is read-only and not available at design time.
Data Type
String
ServerKeyFingerprintSHA1 Property (SecureBlackbox_SFTPServer Class)
Contains the SHA-1 fingerprint (hash) of the key.
Object Oriented Interface
public function getServerKeyFingerprintSHA1($serverkeyindex);
Procedural Interface
secureblackbox_sftpserver_get($res, 115 , $serverkeyindex);
Default Value
''
Remarks
Contains the SHA-1 fingerprint (hash) of the key.
The $serverkeyindex parameter specifies the index of the item in the array. The size of the array is controlled by the ServerKeyCount property.
This property is read-only and not available at design time.
Data Type
String
ServerKeyHandle Property (SecureBlackbox_SFTPServer Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Object Oriented Interface
public function getServerKeyHandle($serverkeyindex); public function setServerKeyHandle($serverkeyindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 117 , $serverkeyindex); secureblackbox_sftpserver_set($res, 117, $value , $serverkeyindex);
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object
after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
The $serverkeyindex parameter specifies the index of the item in the array. The size of the array is controlled by the ServerKeyCount property.
This property is not available at design time.
Data Type
Long64
SocketIncomingSpeedLimit Property (SecureBlackbox_SFTPServer Class)
The maximum number of bytes to read from the socket, per second.
Object Oriented Interface
public function getSocketIncomingSpeedLimit(); public function setSocketIncomingSpeedLimit($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 137 ); secureblackbox_sftpserver_set($res, 137, $value );
Default Value
0
Remarks
The maximum number of bytes to read from the socket, per second.
Data Type
Integer
SocketLocalAddress Property (SecureBlackbox_SFTPServer Class)
The local network interface to bind the socket to.
Object Oriented Interface
public function getSocketLocalAddress(); public function setSocketLocalAddress($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 138 ); secureblackbox_sftpserver_set($res, 138, $value );
Default Value
''
Remarks
The local network interface to bind the socket to.
Data Type
String
SocketLocalPort Property (SecureBlackbox_SFTPServer Class)
The local port number to bind the socket to.
Object Oriented Interface
public function getSocketLocalPort(); public function setSocketLocalPort($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 139 ); secureblackbox_sftpserver_set($res, 139, $value );
Default Value
0
Remarks
The local port number to bind the socket to.
Data Type
Integer
SocketOutgoingSpeedLimit Property (SecureBlackbox_SFTPServer Class)
The maximum number of bytes to write to the socket, per second.
Object Oriented Interface
public function getSocketOutgoingSpeedLimit(); public function setSocketOutgoingSpeedLimit($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 140 ); secureblackbox_sftpserver_set($res, 140, $value );
Default Value
0
Remarks
The maximum number of bytes to write to the socket, per second.
Data Type
Integer
SocketTimeout Property (SecureBlackbox_SFTPServer Class)
The maximum period of waiting, in milliseconds, after which the socket operation is considered unsuccessful.
Object Oriented Interface
public function getSocketTimeout(); public function setSocketTimeout($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 141 ); secureblackbox_sftpserver_set($res, 141, $value );
Default Value
60000
Remarks
The maximum period of waiting, in milliseconds, after which the socket operation is considered unsuccessful.
If Timeout is set to 0, a socket operation will expire after the system-default timeout (2 hrs 8 min for TCP stack).
Data Type
Integer
SocketUseIPv6 Property (SecureBlackbox_SFTPServer Class)
Enables or disables IP protocol version 6.
Object Oriented Interface
public function getSocketUseIPv6(); public function setSocketUseIPv6($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 142 ); secureblackbox_sftpserver_set($res, 142, $value );
Default Value
false
Remarks
Enables or disables IP protocol version 6.
Data Type
Boolean
SSHSettingsAutoAdjustCiphers Property (SecureBlackbox_SFTPServer Class)
Whether the SSH client should adjust its list of supported ciphers 'on-the-fly' for greater compatibility with the server it is connecting to.
Object Oriented Interface
public function getSSHSettingsAutoAdjustCiphers(); public function setSSHSettingsAutoAdjustCiphers($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 143 ); secureblackbox_sftpserver_set($res, 143, $value );
Default Value
true
Remarks
Whether the SSH client should adjust its list of supported ciphers 'on-the-fly' for greater compatibility with the server it is connecting to.
Data Type
Boolean
SSHSettingsBaseConfiguration Property (SecureBlackbox_SFTPServer Class)
Allows to choose base configuration of SSH settings, tuned up for different purposes such as high security or higher compatibility.
Object Oriented Interface
public function getSSHSettingsBaseConfiguration(); public function setSSHSettingsBaseConfiguration($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 144 ); secureblackbox_sftpserver_set($res, 144, $value );
Default Value
0
Remarks
Allows to choose base configuration of SSH settings, tuned up for different purposes such as high security or higher compatibility.
Data Type
Integer
SSHSettingsCompressionAlgorithms Property (SecureBlackbox_SFTPServer Class)
A list of session compression algorithms separated with commas or semicolons.
Object Oriented Interface
public function getSSHSettingsCompressionAlgorithms(); public function setSSHSettingsCompressionAlgorithms($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 145 ); secureblackbox_sftpserver_set($res, 145, $value );
Default Value
''
Remarks
A list of session compression algorithms separated with commas or semicolons. Each algorithm in the list may be prefixed with a minus sign (-) to indicate that the algorithm should be disabled rather than enabled. Besides the specific algorithm names, this property supports the all (and -all) aliases that allow to blanketly enable or disable all compression algorithms at once.
Note: the list of algorithms provided to this property alters the baseline list of compression algorithms pre-configured for this component. Remember to start your algorithm string with -all; if you need to only enable a specific fixed set of algorithms. The list of supported compression algorithms is provided below:
- none
- zlib
- zlib@openssh.com
Data Type
String
SSHSettingsCompressionLevel Property (SecureBlackbox_SFTPServer Class)
Possible values for the Compression Level range from 0 (minimum compression) to 9 (maximum compression).
Object Oriented Interface
public function getSSHSettingsCompressionLevel(); public function setSSHSettingsCompressionLevel($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 146 ); secureblackbox_sftpserver_set($res, 146, $value );
Default Value
6
Remarks
Possible values for the Compression Level range from 0 (minimum compression) to 9 (maximum compression). This setting is ignored if compression wasn't accepted.
Data Type
Integer
SSHSettingsDefaultWindowSize Property (SecureBlackbox_SFTPServer Class)
The SSH window size specifies how many bytes the client can send to the server in the command channel without obtaining pre-authorization for the further send from the server.
Object Oriented Interface
public function getSSHSettingsDefaultWindowSize(); public function setSSHSettingsDefaultWindowSize($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 147 ); secureblackbox_sftpserver_set($res, 147, $value );
Default Value
2048000
Remarks
The SSH window size specifies how many bytes the client can send to the server in the command channel without obtaining pre-authorization for the further send from the server.
Data Type
Integer
SSHSettingsEncryptionAlgorithms Property (SecureBlackbox_SFTPServer Class)
A list of session encryption algorithms separated with commas or semicolons.
Object Oriented Interface
public function getSSHSettingsEncryptionAlgorithms(); public function setSSHSettingsEncryptionAlgorithms($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 148 ); secureblackbox_sftpserver_set($res, 148, $value );
Default Value
''
Remarks
A list of session encryption algorithms separated with commas or semicolons. Each algorithm in the list may be prefixed with a minus sign (-) to indicate that the algorithm should be disabled rather than enabled. Besides the specific algorithm names, this property supports the all (and -all) aliases that allow to blanketly enable or disable all encryption algorithms at once.
Note: the list of algorithms provided to this property alters the baseline list of encryption algorithms pre-configured for this component. Remember to start your algorithm string with -all; if you need to only enable a specific fixed set of algorithms. The list of supported encryption algorithms is provided below:
- 3des-cbc
- blowfish-cbc
- twofish256-cbc
- twofish192-cbc
- twofish128-cbc
- aes256-cbc
- aes192-cbc
- aes128-cbc
- serpent256-cbc
- serpent192-cbc
- serpent128-cbc
- arcfour
- idea-cbc
- cast128-cbc
- none
- des-cbc
- aes128-ctr
- aes192-ctr
- aes256-ctr
- 3des-ctr
- blowfish-ctr
- twofish128-ctr
- twofish192-ctr
- twofish256-ctr
- serpent128-ctr
- serpent192-ctr
- serpent256-ctr
- idea-ctr
- cast128-ctr
- arcfour128
- arcfour256
- aes128-gcm
- aes256-gcm
- aes128-gcm@openssh.com
- aes256-gcm@openssh.com
- chacha20-poly1305
- chacha20-poly1305@openssh.com
Data Type
String
SSHSettingsForceCompression Property (SecureBlackbox_SFTPServer Class)
Whether the SSH client should explicitly request compression.
Object Oriented Interface
public function getSSHSettingsForceCompression(); public function setSSHSettingsForceCompression($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 149 ); secureblackbox_sftpserver_set($res, 149, $value );
Default Value
false
Remarks
Whether the SSH client should explicitly request compression.
If ForceCompression is False, compression will be used only if the server doesn't support algorithms without compression.
Data Type
Boolean
SSHSettingsGSSAuthTypes Property (SecureBlackbox_SFTPServer Class)
A comma-separated list of authentication types.
Object Oriented Interface
public function getSSHSettingsGSSAuthTypes(); public function setSSHSettingsGSSAuthTypes($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 150 ); secureblackbox_sftpserver_set($res, 150, $value );
Default Value
''
Remarks
A comma-separated list of authentication types. Two types are currently supported: gssapi-with-mic and gssapi-keyex.
Data Type
String
SSHSettingsGSSDelegateCreds Property (SecureBlackbox_SFTPServer Class)
Switches credential delegation on or off.
Object Oriented Interface
public function getSSHSettingsGSSDelegateCreds(); public function setSSHSettingsGSSDelegateCreds($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 151 ); secureblackbox_sftpserver_set($res, 151, $value );
Default Value
false
Remarks
Switches credential delegation on or off.
Data Type
Boolean
SSHSettingsGSSHostname Property (SecureBlackbox_SFTPServer Class)
The GSS host name, in form of a FQDN (e.
Object Oriented Interface
public function getSSHSettingsGSSHostname(); public function setSSHSettingsGSSHostname($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 152 ); secureblackbox_sftpserver_set($res, 152, $value );
Default Value
''
Remarks
The GSS host name, in form of a FQDN (e.g. hostname.com), a principal name (e.g. 'host@hostname.com), or a cross-real ticket-granting ticket (e.g. krbtgt/test.com@example.com).
Data Type
String
SSHSettingsGSSLib Property (SecureBlackbox_SFTPServer Class)
A path to the GSS-API library (DLL or SO).
Object Oriented Interface
public function getSSHSettingsGSSLib(); public function setSSHSettingsGSSLib($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 153 ); secureblackbox_sftpserver_set($res, 153, $value );
Default Value
''
Remarks
A path to the GSS-API library (DLL or SO).
Data Type
String
SSHSettingsGSSMechanisms Property (SecureBlackbox_SFTPServer Class)
A comma-separated list of GSS mechanisms to use.
Object Oriented Interface
public function getSSHSettingsGSSMechanisms(); public function setSSHSettingsGSSMechanisms($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 154 ); secureblackbox_sftpserver_set($res, 154, $value );
Default Value
''
Remarks
A comma-separated list of GSS mechanisms to use. Two values are currently supported: lib and SSPI.
Data Type
String
SSHSettingsGSSProtocols Property (SecureBlackbox_SFTPServer Class)
A comma-separated list of SSPI protocols.
Object Oriented Interface
public function getSSHSettingsGSSProtocols(); public function setSSHSettingsGSSProtocols($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 155 ); secureblackbox_sftpserver_set($res, 155, $value );
Default Value
''
Remarks
A comma-separated list of SSPI protocols. Two protocols are currently supported: kerberos and NTLM.
Data Type
String
SSHSettingsHandshakeTimeout Property (SecureBlackbox_SFTPServer Class)
Specifies the maximal time for the SSH handshake to proceed, in seconds.
Object Oriented Interface
public function getSSHSettingsHandshakeTimeout(); public function setSSHSettingsHandshakeTimeout($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 156 ); secureblackbox_sftpserver_set($res, 156, $value );
Default Value
45
Remarks
Specifies the maximal time for the SSH handshake to proceed, in seconds. If the handshake is not completed within this period, the session is aborted.
Data Type
Integer
SSHSettingsKexAlgorithms Property (SecureBlackbox_SFTPServer Class)
A list of key exchange algorithms separated with commas or semicolons.
Object Oriented Interface
public function getSSHSettingsKexAlgorithms(); public function setSSHSettingsKexAlgorithms($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 157 ); secureblackbox_sftpserver_set($res, 157, $value );
Default Value
''
Remarks
A list of key exchange algorithms separated with commas or semicolons. Each algorithm in the list may be prefixed with a minus sign (-) to indicate that the algorithm should be disabled rather than enabled. Besides the specific algorithm names, this property supports the all (and -all) aliases that allow to blanketly enable or disable all key exchange algorithms at once.
Note: the list of algorithms provided to this property alters the baseline list of key exchange algorithms pre-configured for this component. Remember to start your algorithm string with -all; if you need to only enable a specific fixed set of algorithms. The list of supported kex algorithms is provided below:
- diffie-hellman-group-exchange-sha1
- diffie-hellman-group1-sha1
- diffie-hellman-group14-sha1
- diffie-hellman-group-exchange-sha256
- rsa1024-sha1
- rsa2048-sha256
- ecdh-sha2-nistp256
- ecdh-sha2-nistp384
- ecdh-sha2-nistp521
- ecdh-sha2-nistk163
- ecdh-sha2-nistp192
- ecdh-sha2-nistp224
- ecdh-sha2-nistk233
- ecdh-sha2-nistb233
- ecdh-sha2-nistk283
- ecdh-sha2-nistk409
- ecdh-sha2-nistb409
- ecdh-sha2-nistt571
- ecdh-sha2-curve25519
- curve25519-sha256@libssh.org
- curve448-sha512@libssh.org
- diffie-hellman-group14-sha256
- diffie-hellman-group15-sha512
- diffie-hellman-group16-sha512
- diffie-hellman-group17-sha512
- diffie-hellman-group18-sha512
Data Type
String
SSHSettingsMacAlgorithms Property (SecureBlackbox_SFTPServer Class)
A list of MAC (for message authentication code ) algorithms separated with commas or semicolons.
Object Oriented Interface
public function getSSHSettingsMacAlgorithms(); public function setSSHSettingsMacAlgorithms($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 158 ); secureblackbox_sftpserver_set($res, 158, $value );
Default Value
''
Remarks
A list of MAC (for message authentication code) algorithms separated with commas or semicolons. Each algorithm in the list may be prefixed with a minus sign (-) to indicate that the algorithm should be disabled rather than enabled. Besides the specific algorithm names, this property supports the all (and -all) aliases that allow to blanketly enable or disable all MAC algorithms at once.
Note: the list of algorithms provided to this property alters the baseline list of MAC algorithms pre-configured for this component. Remember to start your algorithm string with -all; if you need to only enable a specific fixed set of algorithms. The list of supported MAC algorithms is provided below:
- hmac-sha1
- hmac-sha1-96
- hmac-md5
- hmac-md5-96
- none
- hmac-ripemd160
- hmac-ripemd
- hmac-ripemd160@openssh.com
- hmac-sha256@ssh.com
- hmac-sha256-96@ssh.com
- umac-32@openssh.com
- umac-64@openssh.com
- umac-96@openssh.com
- umac-128@openssh.com
- hmac-sha2-256
- hmac-sha2-512
- aes128-gcm
- aes256-gcm
- chacha20-poly1305@openssh.com
- hmac-sha2-256-etm@openssh.com
- hmac-sha2-512-etm@openssh.com
Data Type
String
SSHSettingsMaxSSHPacketSize Property (SecureBlackbox_SFTPServer Class)
Specifies the maximum length of one SSH packet in bytes.
Object Oriented Interface
public function getSSHSettingsMaxSSHPacketSize(); public function setSSHSettingsMaxSSHPacketSize($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 159 ); secureblackbox_sftpserver_set($res, 159, $value );
Default Value
262144
Remarks
Specifies the maximum length of one SSH packet in bytes.
Data Type
Integer
SSHSettingsMinWindowSize Property (SecureBlackbox_SFTPServer Class)
Specifies the minimal internal window size.
Object Oriented Interface
public function getSSHSettingsMinWindowSize(); public function setSSHSettingsMinWindowSize($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 160 ); secureblackbox_sftpserver_set($res, 160, $value );
Default Value
2048
Remarks
Specifies the minimal internal window size. When the minimal window size is reached, the 'window extension' request is sent to the server. This request notifies the server that the window was extended, and it can send more data.
Data Type
Integer
SSHSettingsObfuscateHandshake Property (SecureBlackbox_SFTPServer Class)
Enables or disables handshake obfuscation.
Object Oriented Interface
public function getSSHSettingsObfuscateHandshake(); public function setSSHSettingsObfuscateHandshake($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 161 ); secureblackbox_sftpserver_set($res, 161, $value );
Default Value
false
Remarks
Enables or disables handshake obfuscation.
Data Type
Boolean
SSHSettingsObfuscationPassword Property (SecureBlackbox_SFTPServer Class)
Specifies the password used to encrypt the handshake when ObfuscateHandshake is set.
Object Oriented Interface
public function getSSHSettingsObfuscationPassword(); public function setSSHSettingsObfuscationPassword($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 162 ); secureblackbox_sftpserver_set($res, 162, $value );
Default Value
''
Remarks
Specifies the password used to encrypt the handshake when ObfuscateHandshake is set.
Data Type
String
SSHSettingsPublicKeyAlgorithms Property (SecureBlackbox_SFTPServer Class)
A list of public key algorithms separated with commas or semicolons.
Object Oriented Interface
public function getSSHSettingsPublicKeyAlgorithms(); public function setSSHSettingsPublicKeyAlgorithms($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 163 ); secureblackbox_sftpserver_set($res, 163, $value );
Default Value
''
Remarks
A list of public key algorithms separated with commas or semicolons. Each algorithm in the list may be prefixed with a minus sign (-) to indicate that the algorithm should be disabled rather than enabled. Besides the specific algorithm names, this property supports the all (and -all) aliases that allow to blanketly enable or disable all public key algorithms at once.
Note: the list of algorithms provided to this property alters the baseline list of public key algorithms pre-configured for this component. Remember to start your algorithm string with -all; if you need to only enable a specific fixed set of algorithms. The list of supported public key algorithms is provided below:
- ssh-dss
- ssh-rsa
- x509v3-sign-rsa
- x509v3-sign-dss
- spki-sign-rsa,
- spki-sign-dss
- pgp-sign-rsa
- pgp-sign-dss
- ecdsa-sha2-nistp256
- ecdsa-sha2-nistp384
- ecdsa-sha2-nistp521
- ecdsa-sha2-nistk163
- ecdsa-sha2-nistp192
- ecdsa-sha2-nistp224
- ecdsa-sha2-nistk233
- ecdsa-sha2-nistb233
- ecdsa-sha2-nistk283
- ecdsa-sha2-nistk409
- ecdsa-sha2-nistb409
- ecdsa-sha2-nistt571,
- ecdsa-sha2-curve25519
- x509v3-ssh-rsa
- x509v3-ssh-dss
- x509v3-rsa2048-sha256
- x509v3-ecdsa-sha2-nistp256
- x509v3-ecdsa-sha2-nistp384
- x509v3-ecdsa-sha2-nistp521
- x509v3-ecdsa-sha2-nistk163
- x509v3-ecdsa-sha2-nistp192
- x509v3-ecdsa-sha2-nistp224
- x509v3-ecdsa-sha2-nistk233
- x509v3-ecdsa-sha2-nistb233
- x509v3-ecdsa-sha2-nistk283
- x509v3-ecdsa-sha2-nistk409
- x509v3-ecdsa-sha2-nistb409
- x509v3-ecdsa-sha2-nistt571
- x509v3-ecdsa-sha2-curve25519
- ssh-ed25519
- ssh-ed448
- rsa-sha2-256
- rsa-sha2-512
Data Type
String
SSHSettingsRequestPasswordChange Property (SecureBlackbox_SFTPServer Class)
Whether to request a password change when connecting.
Object Oriented Interface
public function getSSHSettingsRequestPasswordChange(); public function setSSHSettingsRequestPasswordChange($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 164 ); secureblackbox_sftpserver_set($res, 164, $value );
Default Value
false
Remarks
Whether to request a password change when connecting.
Data Type
Boolean
SSHSettingsSoftwareName Property (SecureBlackbox_SFTPServer Class)
The name to be used by the class to identify itself.
Object Oriented Interface
public function getSSHSettingsSoftwareName(); public function setSSHSettingsSoftwareName($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 165 ); secureblackbox_sftpserver_set($res, 165, $value );
Default Value
'SecureBlackbox'
Remarks
The name to be used by the component to identify itself.
Data Type
String
SSHSettingsTrustAllKeys Property (SecureBlackbox_SFTPServer Class)
Enables or disables explicit trust to all server keys.
Object Oriented Interface
public function getSSHSettingsTrustAllKeys(); public function setSSHSettingsTrustAllKeys($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 166 ); secureblackbox_sftpserver_set($res, 166, $value );
Default Value
false
Remarks
Enables or disables explicit trust to all server keys. Use with care.
Data Type
Boolean
SSHSettingsUseAuthAgent Property (SecureBlackbox_SFTPServer Class)
Enables or disables the use of external key agent, such as Putty key agent.
Object Oriented Interface
public function getSSHSettingsUseAuthAgent(); public function setSSHSettingsUseAuthAgent($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 167 ); secureblackbox_sftpserver_set($res, 167, $value );
Default Value
false
Remarks
Enables or disables the use of external key agent, such as Putty key agent.
Data Type
Boolean
SSHSettingsVersions Property (SecureBlackbox_SFTPServer Class)
Specifies enabled SSH protocol versions (1 or 2).
Object Oriented Interface
public function getSSHSettingsVersions(); public function setSSHSettingsVersions($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 168 ); secureblackbox_sftpserver_set($res, 168, $value );
Default Value
1
Remarks
Specifies enabled SSH protocol versions (1 or 2).
Data Type
Integer
UserCount Property (SecureBlackbox_SFTPServer Class)
The number of records in the User arrays.
Object Oriented Interface
public function getUserCount(); public function setUserCount($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 169 ); secureblackbox_sftpserver_set($res, 169, $value );
Default Value
0
Remarks
This property controls the size of the following arrays:
- UserAssociatedData
- UserBasePath
- UserCert
- UserData
- UserHandle
- UserHashAlgorithm
- UserIncomingSpeedLimit
- UserOtpAlgorithm
- UserOtpValue
- UserOutgoingSpeedLimit
- UserPassword
- UserPasswordLen
- UserSharedSecret
- UserSSHKey
- UserUsername
This property is not available at design time.
Data Type
Integer
UserAssociatedData Property (SecureBlackbox_SFTPServer Class)
Contains the user's Associated Data when SSH AEAD (Authenticated Encryption with Associated Data) algorithm is used.
Object Oriented Interface
public function getUserAssociatedData($userindex); public function setUserAssociatedData($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 170 , $userindex); secureblackbox_sftpserver_set($res, 170, $value , $userindex);
Remarks
Contains the user's Associated Data when SSH AEAD (Authenticated Encryption with Associated Data) algorithm is used.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Byte Array
UserBasePath Property (SecureBlackbox_SFTPServer Class)
Base path for this user in the server's file system.
Object Oriented Interface
public function getUserBasePath($userindex); public function setUserBasePath($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 171 , $userindex); secureblackbox_sftpserver_set($res, 171, $value , $userindex);
Default Value
''
Remarks
Base path for this user in the server's file system.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
String
UserCert Property (SecureBlackbox_SFTPServer Class)
Contains the user's certificate.
Object Oriented Interface
public function getUserCert($userindex); public function setUserCert($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 172 , $userindex); secureblackbox_sftpserver_set($res, 172, $value , $userindex);
Remarks
Contains the user's certificate.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Byte Array
UserData Property (SecureBlackbox_SFTPServer Class)
Contains uninterpreted user-defined data that should be associated with the user account, such as comments or custom settings.
Object Oriented Interface
public function getUserData($userindex); public function setUserData($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 173 , $userindex); secureblackbox_sftpserver_set($res, 173, $value , $userindex);
Default Value
''
Remarks
Contains uninterpreted user-defined data that should be associated with the user account, such as comments or custom settings.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
String
UserHandle Property (SecureBlackbox_SFTPServer Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Object Oriented Interface
public function getUserHandle($userindex); public function setUserHandle($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 174 , $userindex); secureblackbox_sftpserver_set($res, 174, $value , $userindex);
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object
after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Long64
UserHashAlgorithm Property (SecureBlackbox_SFTPServer Class)
Specifies the hash algorithm used to generate TOTP (Time-based One-Time Passwords) passwords for this user.
Object Oriented Interface
public function getUserHashAlgorithm($userindex); public function setUserHashAlgorithm($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 175 , $userindex); secureblackbox_sftpserver_set($res, 175, $value , $userindex);
Default Value
''
Remarks
Specifies the hash algorithm used to generate TOTP (Time-based One-Time Passwords) passwords for this user. Three HMAC algorithms are supported, with SHA-1, SHA-256, and SHA-512 digests:
SB_MAC_ALGORITHM_HMAC_SHA1 | SHA1 | |
SB_MAC_ALGORITHM_HMAC_SHA256 | SHA256 | |
SB_MAC_ALGORITHM_HMAC_SHA512 | SHA512 |
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
String
UserIncomingSpeedLimit Property (SecureBlackbox_SFTPServer Class)
Specifies the incoming speed limit for this user.
Object Oriented Interface
public function getUserIncomingSpeedLimit($userindex); public function setUserIncomingSpeedLimit($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 176 , $userindex); secureblackbox_sftpserver_set($res, 176, $value , $userindex);
Default Value
0
Remarks
Specifies the incoming speed limit for this user. The value of 0 (zero) means "no limitation".
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Integer
UserOtpAlgorithm Property (SecureBlackbox_SFTPServer Class)
The algorithm used to generate one-time passwords (OTP) for this user, either HOTP (Hash-based OTP) or TOTP (Time-based OTP).
Object Oriented Interface
public function getUserOtpAlgorithm($userindex); public function setUserOtpAlgorithm($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 177 , $userindex); secureblackbox_sftpserver_set($res, 177, $value , $userindex);
Default Value
0
Remarks
The algorithm used to generate one-time passwords (OTP) for this user, either HOTP (Hash-based OTP) or TOTP (Time-based OTP). In the former case, a value of a dedicated counter is used to generate a unique password, while in the latter the password is generated on the basis of the current time value.
oaHmac | 0 | |
oaTime | 1 |
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Integer
UserOtpValue Property (SecureBlackbox_SFTPServer Class)
The user's time interval (TOTP) or Counter (HOTP).
Object Oriented Interface
public function getUserOtpValue($userindex); public function setUserOtpValue($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 178 , $userindex); secureblackbox_sftpserver_set($res, 178, $value , $userindex);
Default Value
0
Remarks
The user's time interval (TOTP) or Counter (HOTP).
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Integer
UserOutgoingSpeedLimit Property (SecureBlackbox_SFTPServer Class)
Specifies the outgoing speed limit for this user.
Object Oriented Interface
public function getUserOutgoingSpeedLimit($userindex); public function setUserOutgoingSpeedLimit($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 179 , $userindex); secureblackbox_sftpserver_set($res, 179, $value , $userindex);
Default Value
0
Remarks
Specifies the outgoing speed limit for this user. The value of 0 (zero) means "no limitation".
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Integer
UserPassword Property (SecureBlackbox_SFTPServer Class)
The user's authentication password.
Object Oriented Interface
public function getUserPassword($userindex); public function setUserPassword($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 180 , $userindex); secureblackbox_sftpserver_set($res, 180, $value , $userindex);
Default Value
''
Remarks
The user's authentication password.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
String
UserPasswordLen Property (SecureBlackbox_SFTPServer Class)
Specifies the length of the user's OTP password.
Object Oriented Interface
public function getUserPasswordLen($userindex); public function setUserPasswordLen($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 181 , $userindex); secureblackbox_sftpserver_set($res, 181, $value , $userindex);
Default Value
0
Remarks
Specifies the length of the user's OTP password.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Integer
UserSharedSecret Property (SecureBlackbox_SFTPServer Class)
Contains the user's secret key, which is essentially a shared secret between the client and server.
Object Oriented Interface
public function getUserSharedSecret($userindex); public function setUserSharedSecret($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 182 , $userindex); secureblackbox_sftpserver_set($res, 182, $value , $userindex);
Remarks
Contains the user's secret key, which is essentially a shared secret between the client and server.
Shared secrets can be used in TLS-driven protocols, as well as in OTP (where it is called a 'key secret') for generating one-time passwords on one side, and validate them on the other.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Byte Array
UserSSHKey Property (SecureBlackbox_SFTPServer Class)
Contains the user's SSH key.
Object Oriented Interface
public function getUserSSHKey($userindex); public function setUserSSHKey($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 183 , $userindex); secureblackbox_sftpserver_set($res, 183, $value , $userindex);
Remarks
Contains the user's SSH key.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
Byte Array
UserUsername Property (SecureBlackbox_SFTPServer Class)
The registered name (login) of the user.
Object Oriented Interface
public function getUserUsername($userindex); public function setUserUsername($userindex, $value);
Procedural Interface
secureblackbox_sftpserver_get($res, 184 , $userindex); secureblackbox_sftpserver_set($res, 184, $value , $userindex);
Default Value
''
Remarks
The registered name (login) of the user.
The $userindex parameter specifies the index of the item in the array. The size of the array is controlled by the UserCount property.
This property is not available at design time.
Data Type
String
UseUTF8 Property (SecureBlackbox_SFTPServer Class)
Specifies whether UTF8 conversion is to be used when parsing file names.
Object Oriented Interface
public function getUseUTF8(); public function setUseUTF8($value);
Procedural Interface
secureblackbox_sftpserver_get($res, 185 ); secureblackbox_sftpserver_set($res, 185, $value );
Default Value
false
Remarks
This property specifies whether UTF8 conversion of filenames is used by the server. It is set automatically according to protocol flow, but user could also set it to the desired value.
Data Type
Boolean
Config Method (SecureBlackbox_SFTPServer Class)
Sets or retrieves a configuration setting.
Object Oriented Interface
public function doConfig($configurationstring);
Procedural Interface
secureblackbox_sftpserver_do_config($res, $configurationstring);
Remarks
Config is a generic method available in every class. It is used to set and retrieve configuration settings for the class.
These settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.
To set a configuration setting named PROPERTY, you must call Config("PROPERTY=VALUE"), where VALUE is the value of the setting expressed as a string. For boolean values, use the strings "True", "False", "0", "1", "Yes", or "No" (case does not matter).
To read (query) the value of a configuration setting, you must call Config("PROPERTY"). The value will be returned as a string.
DoAction Method (SecureBlackbox_SFTPServer Class)
Performs an additional action.
Object Oriented Interface
public function doDoAction($actionid, $actionparams);
Procedural Interface
secureblackbox_sftpserver_do_doaction($res, $actionid, $actionparams);
Remarks
DoAction is a generic method available in every class. It is used to perform an additional action introduced after the product major release. The list of actions is not fixed, and may be flexibly extended over time.
The unique identifier (case insensitive) of the action is provided in the ActionID parameter.
ActionParams contains the value of a single parameter, or a list of multiple parameters for the action in the form of PARAM1=VALUE1;PARAM2=VALUE2;....
DropClient Method (SecureBlackbox_SFTPServer Class)
Terminates a client connection.
Object Oriented Interface
public function doDropClient($connectionid, $forced);
Procedural Interface
secureblackbox_sftpserver_do_dropclient($res, $connectionid, $forced);
Remarks
Call this method to shut down a connected client. Forced indicates whether the connection should be closed in a graceful manner.
GetClientBuffer Method (SecureBlackbox_SFTPServer Class)
Acquires a piece of operation data.
Object Oriented Interface
public function doGetClientBuffer($connectionid, $handle);
Procedural Interface
secureblackbox_sftpserver_do_getclientbuffer($res, $connectionid, $handle);
Remarks
Use this method to obtain a piece of data relevant to a transfer operation in a thread-safe way.
A typical place to call this method is inside the WriteFile event handler, when implementing customized file transfers.
GetClientFileEntry Method (SecureBlackbox_SFTPServer Class)
Acquires file entry details from the class.
Object Oriented Interface
public function doGetClientFileEntry($connectionid, $handle);
Procedural Interface
secureblackbox_sftpserver_do_getclientfileentry($res, $connectionid, $handle);
Remarks
Use this method to acquire the details of a file entry from the server in atomic and thread-safe way. After this method completes, the entry details will be propagated in ClientFileEntry property.
When calling this method, pass the client connection ID in ConnectionID property, and the opened file handle (if needed) in Handle property.
ListClients Method (SecureBlackbox_SFTPServer Class)
Enumerates the connected clients.
Object Oriented Interface
public function doListClients();
Procedural Interface
secureblackbox_sftpserver_do_listclients($res);
Remarks
This method enumerates the connected clients. It returns a list of strings, with each string being of 'ConnectionID|Address|Port' format, and representing a single connection.
PinClient Method (SecureBlackbox_SFTPServer Class)
Takes a snapshot of the connection's properties.
Object Oriented Interface
public function doPinClient($connectionid);
Procedural Interface
secureblackbox_sftpserver_do_pinclient($res, $connectionid);
Remarks
Use this method to take a snapshot of a connected client. The captured properties are populated in PinnedClient property.
SetClientBuffer Method (SecureBlackbox_SFTPServer Class)
Commits a data buffer to the server class.
Object Oriented Interface
public function doSetClientBuffer($connectionid, $handle, $value);
Procedural Interface
secureblackbox_sftpserver_do_setclientbuffer($res, $connectionid, $handle, $value);
Remarks
Use this method to commit a data buffer passed via the Value parameter to the server control in a thread-safe way.
One example where you might need to pass your buffer to the server is when customizing upload operations via ReadFile event.
SetClientFileEntry Method (SecureBlackbox_SFTPServer Class)
Commits the file entry details to the class.
Object Oriented Interface
public function doSetClientFileEntry($connectionid, $handle);
Procedural Interface
secureblackbox_sftpserver_do_setclientfileentry($res, $connectionid, $handle);
Remarks
Use this method to commit the file entry details configured in ClientFileEntry property to the server object in a thread-safe way. Pass the client's connection ID via ConnectionID property, and the file entry's handle via Handle.
Start Method (SecureBlackbox_SFTPServer Class)
Starts SFTP server operation.
Object Oriented Interface
public function doStart();
Procedural Interface
secureblackbox_sftpserver_do_start($res);
Remarks
Call this method to start listening to incoming connections.
Stop Method (SecureBlackbox_SFTPServer Class)
Stops SFTP server.
Object Oriented Interface
public function doStop();
Procedural Interface
secureblackbox_sftpserver_do_stop($res);
Remarks
Call this method to close all connections and stop listening to clients.
Accept Event (SecureBlackbox_SFTPServer Class)
This event is fired when new incoming connection is accepted.
Object Oriented Interface
public function fireAccept($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 1, array($this, 'fireAccept'));
Parameter List
'remoteaddress'
'remoteport'
'accept'
Remarks
This event is fired by the class before a new incoming connection is accepted. RemoteAddress contains the IP address of the connecting client. Use the Accept parameter to either accept, or reject the connection.
AfterCreateDirectory Event (SecureBlackbox_SFTPServer Class)
This event indicates completion of directory creation request.
Object Oriented Interface
public function fireAfterCreateDirectory($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 2, array($this, 'fireAfterCreateDirectory'));
Parameter List
'connectionid'
'path'
'operationstatus'
Remarks
This event is fired to report completion of a directory creation request. The ConnectionID parameter specifies in which session the request was received, the Path specifies the directory path, and the OperationStatus contains the operation result.
If needed, you can amend the OperationStatus to return a different operation result:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
AfterRemove Event (SecureBlackbox_SFTPServer Class)
This event indicates completion of file removal request.
Object Oriented Interface
public function fireAfterRemove($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 3, array($this, 'fireAfterRemove'));
Parameter List
'connectionid'
'path'
'operationstatus'
Remarks
This event is fired when a request to delete a file or directory has been processed by the server. The ConnectionID parameter specifies the session in which the request was received. OperationStatus contains the operation result.
If needed, you can amend the OperationStatus to return a different operation result:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
AfterRenameFile Event (SecureBlackbox_SFTPServer Class)
This event indicates completion of a file rename operation.
Object Oriented Interface
public function fireAfterRenameFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 4, array($this, 'fireAfterRenameFile'));
Parameter List
'connectionid'
'oldpath'
'newpath'
'operationstatus'
Remarks
This event is fired when a request to rename a file (from OldPath to NewPath) has been processed. The ConnectionID parameter specifies in which session the request was received, and OperationStatus contains the operation result.
If needed, you can amend the OperationStatus to return a different operation result:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
AfterRequestAttributes Event (SecureBlackbox_SFTPServer Class)
This event indicates completion of file attributes request.
Object Oriented Interface
public function fireAfterRequestAttributes($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 5, array($this, 'fireAfterRequestAttributes'));
Parameter List
'connectionid'
'path'
'operationstatus'
Remarks
This event is fired when a request for get file attributes has been processed by the server. The ConnectionID parameter specifies in which session the request was received. OperationStatus contains the result of the operation.
If needed, you can amend the OperationStatus to return a different operation result:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
AfterSetAttributes Event (SecureBlackbox_SFTPServer Class)
This event indicates completion of a set attributes request.
Object Oriented Interface
public function fireAfterSetAttributes($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 6, array($this, 'fireAfterSetAttributes'));
Parameter List
'connectionid'
'path'
'operationstatus'
Remarks
This event is fired when a request for set file attributes has been processed. The ConnectionID parameter specifies in which session the request was received. The OperationStatus parameter contains the operation result.
If needed, you can amend the OperationStatus to return a different operation result:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
AuthAttempt Event (SecureBlackbox_SFTPServer Class)
Reports a user authentication attempt.
Object Oriented Interface
public function fireAuthAttempt($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 7, array($this, 'fireAuthAttempt'));
Parameter List
'connectionid'
'username'
'authtype'
'accept'
Remarks
ConnectionID identifies the session, Username specifies client's username, and AuthType specifies the authentication type. Use the Accept parameter to accept or decline the attempt.
Supported authentication types:
atRhosts | 0x01 | RHOSTS file authentication. Rarely used today. |
atPublicKey | 0x02 | Public key (sometimes called private key) authentication |
atPassword | 0x04 | Password-based authentication |
atHostbased | 0x08 | Hostbased authentication |
atKeyboard | 0x10 | Keyboard-interactive authentication. This is often used in place of generic password authentication. |
atGssWithMic | 0x20 | GSS authentication |
atGssKeyex | 0x40 | GSS authentication with key exchange |
atPublicKeyAgent | 0x80 | Public key agent authentication |
AuthFailed Event (SecureBlackbox_SFTPServer Class)
Reports user authentication failure.
Object Oriented Interface
public function fireAuthFailed($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 8, array($this, 'fireAuthFailed'));
Parameter List
'connectionid'
'username'
'authtype'
Remarks
ConnectionID identifies the session, Username specify client's username, and AuthType specifies what authentication type was used.
Supported authentication types:
atRhosts | 0x01 | RHOSTS file authentication. Rarely used today. |
atPublicKey | 0x02 | Public key (sometimes called private key) authentication |
atPassword | 0x04 | Password-based authentication |
atHostbased | 0x08 | Hostbased authentication |
atKeyboard | 0x10 | Keyboard-interactive authentication. This is often used in place of generic password authentication. |
atGssWithMic | 0x20 | GSS authentication |
atGssKeyex | 0x40 | GSS authentication with key exchange |
atPublicKeyAgent | 0x80 | Public key agent authentication |
AuthPassword Event (SecureBlackbox_SFTPServer Class)
This event is fired on password authentication attempt from a client.
Object Oriented Interface
public function fireAuthPassword($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 9, array($this, 'fireAuthPassword'));
Parameter List
'connectionid'
'username'
'password'
'accept'
'forcechangepassword'
Remarks
Parameters Username and Password contain user credentials. If they are correct, set Accept to true. You can request password change by setting ForceChangePassword to true.
AuthPublicKey Event (SecureBlackbox_SFTPServer Class)
This event is fired on public key authentication attempt from a client.
Object Oriented Interface
public function fireAuthPublicKey($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 10, array($this, 'fireAuthPublicKey'));
Parameter List
'connectionid'
'username'
'accept'
Remarks
Username specifies client's username, and Accept is used to accept or reject authentication.
AuthSucceeded Event (SecureBlackbox_SFTPServer Class)
Reports a successful user authentication.
Object Oriented Interface
public function fireAuthSucceeded($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 11, array($this, 'fireAuthSucceeded'));
Parameter List
'connectionid'
'username'
'authtype'
Remarks
ConnectionID identifies the session, Username specify client's username, and AuthType specifies what authentication type was used.
Supported authentication types:
atRhosts | 0x01 | RHOSTS file authentication. Rarely used today. |
atPublicKey | 0x02 | Public key (sometimes called private key) authentication |
atPassword | 0x04 | Password-based authentication |
atHostbased | 0x08 | Hostbased authentication |
atKeyboard | 0x10 | Keyboard-interactive authentication. This is often used in place of generic password authentication. |
atGssWithMic | 0x20 | GSS authentication |
atGssKeyex | 0x40 | GSS authentication with key exchange |
atPublicKeyAgent | 0x80 | Public key agent authentication |
BeforeCreateDirectory Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests to create a directory.
Object Oriented Interface
public function fireBeforeCreateDirectory($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 12, array($this, 'fireBeforeCreateDirectory'));
Parameter List
'connectionid'
'path'
'action'
Remarks
This event is fired when a request to create a directory has been received. The ConnectionID parameter specifies in which session the request was received.
Choose Action as one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
BeforeDownloadFile Event (SecureBlackbox_SFTPServer Class)
This event is fired when a download file request is received.
Object Oriented Interface
public function fireBeforeDownloadFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 13, array($this, 'fireBeforeDownloadFile'));
Parameter List
'connectionid'
'path'
'action'
Remarks
This event is fired when a request to download file is received from the client. The ConnectionID parameter specifies in which session the request was received.
Choose Action as one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
BeforeFind Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests to find files and folders in Path.
Object Oriented Interface
public function fireBeforeFind($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 14, array($this, 'fireBeforeFind'));
Parameter List
'connectionid'
'path'
'action'
Remarks
This event is fired when a request to find files and folders in Path has been received. The ConnectionID parameter specifies in which session the request was received.
Choose Action as one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
BeforeRemove Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests to delete a file or directory.
Object Oriented Interface
public function fireBeforeRemove($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 15, array($this, 'fireBeforeRemove'));
Parameter List
'connectionid'
'path'
'action'
Remarks
This event is fired when a request to delete a file or directory is received from the client. The ConnectionID parameter specifies in which session the request was received.
Choose Action as one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
BeforeRenameFile Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests to rename a file.
Object Oriented Interface
public function fireBeforeRenameFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 16, array($this, 'fireBeforeRenameFile'));
Parameter List
'connectionid'
'oldpath'
'newpath'
'action'
Remarks
This event is fired when a request to rename a file (from OldPath to NewPath) is received from the client. The ConnectionID parameter specifies in which session the request was received.
Choose Action as one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
BeforeRequestAttributes Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests to get file attributes.
Object Oriented Interface
public function fireBeforeRequestAttributes($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 17, array($this, 'fireBeforeRequestAttributes'));
Parameter List
'connectionid'
'path'
'action'
Remarks
This event is fired when a request to get file attributes has been received. The ConnectionID parameter specifies in which session the request was received.
Choose Action as one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
BeforeSetAttributes Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests to set file attributes.
Object Oriented Interface
public function fireBeforeSetAttributes($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 18, array($this, 'fireBeforeSetAttributes'));
Parameter List
'connectionid'
'path'
'action'
Remarks
This event is fired when a request to set file attributes has been received. The ConnectionID parameter specifies in which session the request was received.
Choose Action as one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
BeforeUploadFile Event (SecureBlackbox_SFTPServer Class)
This event is fired when an upload file request is received.
Object Oriented Interface
public function fireBeforeUploadFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 19, array($this, 'fireBeforeUploadFile'));
Parameter List
'connectionid'
'path'
'action'
Remarks
This event is fired when an upload file request is received from the client. The ConnectionID parameter specifies in which session the request was received, and Path specifies the location on the server where the file needs to be saved.
Choose Action as one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
CloseFile Event (SecureBlackbox_SFTPServer Class)
This event instructs the application to close an opened file.
Object Oriented Interface
public function fireCloseFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 20, array($this, 'fireCloseFile'));
Parameter List
'connectionid'
'handle'
'operationstatus'
Remarks
This event is fired upon receipt of a close-file packet from a client. Servers implementing virtualized transfers must close the previously opened local file referenced by Handle in this event handler. No further operations are allowed with the closed file.
Set OperationStatus to one of the following values to report the result of this operation to the client:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
Connect Event (SecureBlackbox_SFTPServer Class)
This event is fired when a remote connection has been established.
Object Oriented Interface
public function fireConnect($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 21, array($this, 'fireConnect'));
Parameter List
'connectionid'
'remoteaddress'
'remoteport'
Remarks
ConnectionID contains a session identifier, and RemoteAddress specifies the client's IP address.
CreateDirectory Event (SecureBlackbox_SFTPServer Class)
This event instructs the application to create a directory.
Object Oriented Interface
public function fireCreateDirectory($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 22, array($this, 'fireCreateDirectory'));
Parameter List
'connectionid'
'path'
'operationstatus'
Remarks
This event is fired when a request to create a directory has been received and needs to be served (virtualized) by the application. The ConnectionID parameter specifies the session that has communicated the request, and Path contains the name of the directory to be created.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
Disconnect Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client has disconnected.
Object Oriented Interface
public function fireDisconnect($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 23, array($this, 'fireDisconnect'));
Parameter List
'connectionid'
Remarks
This event reports loss of connection to the client within the session specified by ConnectionID.
Error Event (SecureBlackbox_SFTPServer Class)
Information about errors during data delivery.
Object Oriented Interface
public function fireError($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 24, array($this, 'fireError'));
Parameter List
'errorcode'
'description'
Remarks
The event is fired in case of exceptional conditions during message processing.
ErrorCode contains an error code and Description contains a textual description of the error. For a list of valid error codes and their descriptions, please refer to the SFTP section.
ExternalSign Event (SecureBlackbox_SFTPServer Class)
Handles remote or external signing initiated by the server protocol.
Object Oriented Interface
public function fireExternalSign($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 25, array($this, 'fireExternalSign'));
Parameter List
'connectionid'
'operationid'
'hashalgorithm'
'pars'
'data'
'signeddata'
Remarks
Assign a handler to this event if you need to delegate a low-level signing operation to an external, remote, or custom signing engine. Depending on the settings, the handler will receive a hashed or unhashed value to be signed.
The event handler must pass the value of Data to the signer, obtain the signature, and pass it back to the class via the SignedData parameter.
OperationId provides a comment about the operation and its origin. It depends on the exact class being used, and may be empty. HashAlgorithm specifies the hash algorithm being used for the operation, and Pars contains algorithm-dependent parameters.
The class uses base16 (hex) encoding for the Data, SignedData, and Pars parameters. If your signing engine uses a different input and output encoding, you may need to decode and/or encode the data before and/or after the signing.
A sample MD5 hash encoded in base16: a0dee2a0382afbb09120ffa7ccd8a152 - lower case base16 A0DEE2A0382AFBB09120FFA7CCD8A152 - upper case base16
A sample event handler that uses the .NET RSACryptoServiceProvider class may look like the following:
signer.OnExternalSign += (s, e) =>
{
var cert = new X509Certificate2("cert.pfx", "", X509KeyStorageFlags.Exportable);
var key = (RSACryptoServiceProvider)cert.PrivateKey;
var dataToSign = e.Data.FromBase16String();
var signedData = key.SignHash(dataToSign, "2.16.840.1.101.3.4.2.1");
e.SignedData = signedData.ToBase16String();
};
FindClose Event (SecureBlackbox_SFTPServer Class)
This event signifies the completion of a custom file listing operation.
Object Oriented Interface
public function fireFindClose($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 26, array($this, 'fireFindClose'));
Parameter List
'connectionid'
'handle'
'operationstatus'
Remarks
FindClose notifies your code about the completion of a custom file listing request. Use it in conjunction with FindFirst and FindNext to handle file listing requests manually.
See FindFirst topic for the details on implementing customized file listing request processing.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
FindFirst Event (SecureBlackbox_SFTPServer Class)
This event signifies the start of the custom file listing retrieval mechanism.
Object Oriented Interface
public function fireFindFirst($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 27, array($this, 'fireFindFirst'));
Parameter List
'connectionid'
'path'
'operationstatus'
'handle'
Remarks
FindFirst, FindNext, and FindClose events represent a mechanism for providing customized file listings to class. They are only fired if Action parameter of the preceding BeforeFind event was set to fraCustom.
The behaviour of these events mimics that of the standard FindFirst/FindNext/FindClose functions found in many operating systems/frameworks. FindFirst fires once to request the first list entry; FindNext then fires continuously in a loop to request all subsequent entries. To indicate that the listing is over, set OperationStatus parameter to ostEOF. Not doing so may lead to an endless loop and session freeze, as the component would continue firing FindNext infinitely waiting for the EOF marker.
The handlers for both FindFirst and FindNext events should be implemented in the following way: if there are more entries in the directory to pass back to the server component,
- set OperationStatus to ostOK,
- fill in ClientFileEntry with the details of the next entry,
- commit the entry to the server using SetClientFileEntry method.
Use the by-ref Handle parameter to assign a handle (a unique identifier) to the file listing procedure inside the FindFirst event handler. This identifier will then be passed to all subsequent FindNext and FindClose calls to let your code chain the events together.
The ConnectionID parameter specifies in which SFTP session the request was received, and Path indicates the requested directory.
The following operation status constants are available, besides the ones referenced above:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
FindNext Event (SecureBlackbox_SFTPServer Class)
This event retrieves the next entry of a custom file listing.
Object Oriented Interface
public function fireFindNext($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 28, array($this, 'fireFindNext'));
Parameter List
'connectionid'
'handle'
'operationstatus'
Remarks
This event is fired repeatedly after FindFirst to retrieve the directory contents entry-by-entry. Please see the FindFirst topic for more details about implementing a handler of this event.
Remember to set OperationStatus to ostEOF when there are no more entries left to close the listing operation. If there are more entries to pass, set it to ostOK. Other possible values are given in the table below:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
Notification Event (SecureBlackbox_SFTPServer Class)
This event notifies the application about an underlying control flow event.
Object Oriented Interface
public function fireNotification($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 29, array($this, 'fireNotification'));
Parameter List
'eventid'
'eventparam'
Remarks
The class fires this event to let the application know about some event, occurrence, or milestone in the class. For example, it may fire to report completion of the document processing. The list of events being reported is not fixed, and may be flexibly extended over time.
The unique identifier of the event is provided in the EventID parameter. EventParam contains any parameters accompanying the occurrence. Depending on the type of the class, the exact action it is performing, or the document being processed, one or both may be omitted.
This class can fire this event with the following EventID values:
FileOpen | Notifies your code about the file being opened, which is typically
an indicator of the initiation of the transfer operation.
The EventParam value passed with this EventID is a string of the
following format:
ConnectionID=3;Path=/dir/file;Handle=x5DshAk8;Modes=48;Access=0;DesiredAccess=8 This EventID only fires if the NotifyOnFileOperations configuration property is set to true. |
FileRead | Notifies your code about the file chunk being requested.
The EventParam value passed with this EventID is a string of the
following format:
ConnectionID=7;Handle=x5DshAk8;Offset=2048;Count=1024;Read=1021 This EventID only fires if the NotifyOnFileOperations configuration property is set to true. |
FileWrite | Notifies your code about the file chunk being received.
The EventParam value passed with this EventID is a string of the
following format:
ConnectionID=7;Handle=x5DshAk8;Offset=2048;Count=1024 This EventID only fires if the NotifyOnFileOperations configuration property is set to true. |
FileClose | Notifies your code about the closure of an opened file.
The EventParam value passed with this EventID is a string of the
following format:
ConnectionID=7;Handle=x5DshAk8;Modes=48 This EventID only fires if the NotifyOnFileOperations configuration property is set to true. |
OpenShell | Notifies your code about an opened shell tunnel. The EventParam has the following format: ConnectionID=9;LocalChannel=1;RemoteChannel=2 |
OpenCommand | Notifies your code about an opened command tunnel. The
EventParam value has the following format:
ConnectionID=8;LocalChannel=3;RemoteChannel=3;Command=ls -l |
CloseShell | Indicates the closure of a shell tunnel. The EventParam format is the same as with the OpenShell event ID. |
CloseCommand | Indicates the closure of a command tunnel. The EventParam format is the same as with the OpenCommand event ID. |
OpenFile Event (SecureBlackbox_SFTPServer Class)
This event instructs the application to handle the file open request.
Object Oriented Interface
public function fireOpenFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 30, array($this, 'fireOpenFile'));
Parameter List
'connectionid'
'path'
'modes'
'access'
'operationstatus'
'handle'
Remarks
This event is fired when a file open request is received from the client and needs to be handled (virtualized) by the server. The ConnectionID parameter specifies in which session the request was received, and Path specifies the location of the file.
Modes can be a combination of one or several file open mode flags:
cfmRead | 1 |
cfmWrite | 2 |
cfmAppend | 4 |
cfmCreate | 8 |
cfmTruncate | 16 |
cfmExcl | 32 |
cfmText | 64 |
cfmOpenOrCreate | 128 |
cfmAppendAtomic | 256 |
cfmNoFollow | 512 |
cfmDeleteOnClose | 1024 |
Different client applications may provide different selections of mode flags. For example, some clients specify (cfmCreate + cfmTruncate) when overwriting files, whereas others would specify cfmOpenOrCreate. Please make sure your code is prepared to receive different combinations of flags here and handles them gracefully.
The Access parameter provides additional file access modifiers:
cfaReadLock | 1 |
cfaWriteLock | 2 |
cfaDeleteLock | 4 |
cfaBlockAdvisory | 8 |
The Handle string represents a unique identifier of the opened file, similar to file handles used in Windows or Unix APIs. Handles are unique across all files opened at the same time. Class generates handles automatically, but you can update the auto-generated values with your own in this event handler (just remember to keep them unique).
Set OperationStatus parameter in accordance with the outcome of the operation to one of the values given below:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
ReadFile Event (SecureBlackbox_SFTPServer Class)
This event is fired when a file read request is received.
Object Oriented Interface
public function fireReadFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 31, array($this, 'fireReadFile'));
Parameter List
'connectionid'
'handle'
'offset'
'size'
'operationstatus'
Remarks
This event is fired when a request to read block from a file is received from the client. The ConnectionID parameter specifies in which session the request was received, and Handle indicates an opened file handle. Offset and Size denote the location and size of the file piece.
Inside the event handler, pass the appropriate file chunk to the component via SetClientBuffer method.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
Remove Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests to delete a file or directory.
Object Oriented Interface
public function fireRemove($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 32, array($this, 'fireRemove'));
Parameter List
'connectionid'
'path'
'operationstatus'
Remarks
This event is fired when a request to delete a file or directory is received from the client. The ConnectionID parameter specifies in which session the request was received.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
RenameFile Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests to rename a file.
Object Oriented Interface
public function fireRenameFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 33, array($this, 'fireRenameFile'));
Parameter List
'connectionid'
'oldpath'
'newpath'
'operationstatus'
Remarks
This event is fired when a request to rename a file (from OldPath to NewPath) is received from the client. The ConnectionID parameter specifies in which session the request was received.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
RequestAttributes Event (SecureBlackbox_SFTPServer Class)
This event is fired when a get file attributes request is received.
Object Oriented Interface
public function fireRequestAttributes($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 34, array($this, 'fireRequestAttributes'));
Parameter List
'connectionid'
'path'
'handle'
'operationstatus'
Remarks
This event is fired when a request to get file attributes is received from the client. The ConnectionID parameter specifies in which session the request was received, and Path specifies the file location where the attributes need to be retrieved.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
SessionClosed Event (SecureBlackbox_SFTPServer Class)
Reports session closure.
Object Oriented Interface
public function fireSessionClosed($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 35, array($this, 'fireSessionClosed'));
Parameter List
'connectionid'
Remarks
This event is fired when a connection identified by ConnectionID has been gracefully closed.
SessionEstablished Event (SecureBlackbox_SFTPServer Class)
This event is fired when a new session is established.
Object Oriented Interface
public function fireSessionEstablished($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 36, array($this, 'fireSessionEstablished'));
Parameter List
'connectionid'
Remarks
This event is fired when a new connection identified by ConnectionID has been established with a client.
SetAttributes Event (SecureBlackbox_SFTPServer Class)
This event is fired when an set file attributes request is received.
Object Oriented Interface
public function fireSetAttributes($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 37, array($this, 'fireSetAttributes'));
Parameter List
'connectionid'
'path'
'handle'
'operationstatus'
Remarks
This event is fired when a request to set file attributes is received from the client. The ConnectionID parameter specifies in which session the request was received, and Path specifies the file location which the attributes needs to be set.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
TranslatePath Event (SecureBlackbox_SFTPServer Class)
This event is fired when a client requests the server to translate a path to its absolute form.
Object Oriented Interface
public function fireTranslatePath($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 38, array($this, 'fireTranslatePath'));
Parameter List
'connectionid'
'path'
'absolutepath'
'action'
Remarks
This event is fired when a request to translate a relative path to the corresponding absolute path is received. The ConnectionID parameter specifies the session in which the request was received.
You can let the server do the translation automatically according to the default file system rules, or take care of it yourself. Use the Action parameter to specify who is responsible for the translation. If doing the translation manually, return the translated path via the AbsolutePath parameter. Action can take one of the following values:
fraAuto | 1 | Handle the requested action automatically by the server |
fraCustom | 2 | Override the action using the user code logic |
fraAbort | 3 | Abort the requested action |
WriteFile Event (SecureBlackbox_SFTPServer Class)
This event is fired when a file write request is received.
Object Oriented Interface
public function fireWriteFile($param);
Procedural Interface
secureblackbox_sftpserver_register_callback($res, 39, array($this, 'fireWriteFile'));
Parameter List
'connectionid'
'handle'
'offset'
'operationstatus'
Remarks
This event is fired when a request to write a data block to a file is received from the client. The ConnectionID parameter specifies the session the request originates from. The Handle parameter references the opened file where the block should be written to. Offset references the position in the file where the block of data should be written.
Use GetClientBuffer method to obtain the piece of data that should be written to the file.
Set OperationStatus to one of the below values according to the outcome of the request processing:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |
Config Settings (SFTPServer Class)
The class accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.SFTPServer Config Settings
Since both client and server must implement strict key exchange to effectively mitigate the Terrapin attack, the class provides options to further control the behavior in different scenarios. Possible values for this setting are:
0 | Disabled. Strict key exchange is not supported in the class. |
1 (default) | Enabled, but not enforced. This setting enables strict key exchange, but if the remote host does not support strict key exchange the connection is still allowed to continue. |
2 | Enabled, but reject affected algorithms if the remote host does not support strict key exchange. If the remote host supports strict key exchange all algorithms may be used. If the remote host does not support strict key exchange the connection will only continue if the selected encryption and MAC algorithms are not affected by the Terrapin attack. |
3 | Required. If the remote host does not support strict key exchange the connection will fail. |
Base Config Settings
You can switch this property off to improve performance if your project only uses known, good private keys.
Supported values are:
off | No caching (default) | |
local | Local caching | |
global | Global caching |
This setting only applies to sessions negotiated with TLS version 1.3.
Supported values are:
file | File | |
console | Console | |
systemlog | System Log (supported for Android only) | |
debugger | Debugger (supported for VCL for Windows and .Net) |
Supported values are:
time | Current time | |
level | Level | |
package | Package name | |
module | Module name | |
class | Class name | |
method | Method name | |
threadid | Thread Id | |
contenttype | Content type | |
content | Content | |
all | All details |
Supported filter names are:
exclude-package | Exclude a package specified in the value | |
exclude-module | Exclude a module specified in the value | |
exclude-class | Exclude a class specified in the value | |
exclude-method | Exclude a method specified in the value | |
include-package | Include a package specified in the value | |
include-module | Include a module specified in the value | |
include-class | Include a class specified in the value | |
include-method | Include a method specified in the value |
none | No flush (caching only) | |
immediate | Immediate flush (real-time logging) | |
maxcount | Flush cached entries upon reaching LogMaxEventCount entries in the cache. |
Supported values are:
none | None (by default) | |
fatal | Severe errors that cause premature termination. | |
error | Other runtime errors or unexpected conditions. | |
warning | Use of deprecated APIs, poor use of API, 'almost' errors, other runtime situations that are undesirable or unexpected, but not necessarily "wrong". | |
info | Interesting runtime events (startup/shutdown). | |
debug | Detailed information on flow of through the system. | |
trace | More detailed information. |
The default value of this setting is 100.
none | No rotation | |
deleteolder | Delete older entries from the cache upon reaching LogMaxEventCount | |
keepolder | Keep older entries in the cache upon reaching LogMaxEventCount (newer entries are discarded) |
Supported values are:
none | No static DNS rules (default) | |
local | Local static DNS rules | |
global | Global static DNS rules |
This setting only applies to certificates originating from a Windows system store.
Trappable Errors (SFTPServer Class)
SFTPServer Errors
1048577 Invalid parameter value (SB_ERROR_INVALID_PARAMETER) | |
1048578 Class is configured incorrectly (SB_ERROR_INVALID_SETUP) | |
1048579 Operation cannot be executed in the current state (SB_ERROR_INVALID_STATE) | |
1048580 Attempt to set an invalid value to a property (SB_ERROR_INVALID_VALUE) | |
1048581 Certificate does not have its private key loaded (SB_ERROR_NO_PRIVATE_KEY) | |
1048581 Cancelled by the user (SB_ERROR_CANCELLED_BY_USER) | |
31457281 Unsupported file operation (SB_ERROR_SFTP_UNSUPPORTED_FILEOPERATION) |