ServerSecurityOptions
Overview
The ServerSecurityOptions class provides a unified way to set security options used by the Remoting SDK Server Channels to prevent abuse of the server application.
There is no need to instantiate this class directly as this is done autoomatically when the Server Channel is instantiated.
Location
- Reference: RemObjects.SDK.Server.dll
- Namespace: RemObjects.SDK.Server
constructor
Creates a new instance of the ServerSecurityOptions class and initializes all properties with their default values.
constructor
ServerSecurityOptions()
Sub New()
constructor (Boolean)
constructor(enforceSecurity: Boolean)
ServerSecurityOptions(Boolean enforceSecurity)
Sub New(enforceSecurity As Boolean)
Parameters:
- enforceSecurity:
EnforceSecurity
Gets or sets a flag indicating whether the corresponding Server Channel should honor the MaxRequestSize property value and check the size of the incoming request.
The default value is true.
property EnforceSecurity: Boolean read write;
Boolean EnforceSecurity { get; set; }
Property EnforceSecurity() As Boolean
MaxRequestSize
Gets or set the maximum incoming data request size (in bytes) that will be accepted by the corresponding Server Channel.
If this limitation is violated, the ThrowMessageSizeExceededException method is used to raise an exception and reject the incoming request.
The default value is 512 kilobytes.
property MaxRequestSize: Int32 read write;
Int32 MaxRequestSize { get; set; }
Property MaxRequestSize() As Int32
MaxRequestTime
Gets or sets the maximum amount of time (in seconds) that the server should spend on retrieving an incoming data stream.
This setting is currently not used by any of the server channels.
The default value is 60 seconds.
property MaxRequestTime: Int32 read write;
Int32 MaxRequestTime { get; set; }
Property MaxRequestTime() As Int32
ThrowMessageSizeExceededException
method ThrowMessageSizeExceededException(size: Int64)
void ThrowMessageSizeExceededException(Int64 size)
Sub ThrowMessageSizeExceededException(size As Int64)
Parameters:
- size:
EnforceSecurity
Gets or sets a flag indicating whether the corresponding Server Channel should honor the MaxRequestSize property value and check the size of the incoming request.
The default value is true.
property EnforceSecurity: Boolean read write;
Boolean EnforceSecurity { get; set; }
Property EnforceSecurity() As Boolean
MaxRequestSize
Gets or set the maximum incoming data request size (in bytes) that will be accepted by the corresponding Server Channel.
If this limitation is violated, the ThrowMessageSizeExceededException method is used to raise an exception and reject the incoming request.
The default value is 512 kilobytes.
property MaxRequestSize: Int32 read write;
Int32 MaxRequestSize { get; set; }
Property MaxRequestSize() As Int32
MaxRequestTime
Gets or sets the maximum amount of time (in seconds) that the server should spend on retrieving an incoming data stream.
This setting is currently not used by any of the server channels.
The default value is 60 seconds.
property MaxRequestTime: Int32 read write;
Int32 MaxRequestTime { get; set; }
Property MaxRequestTime() As Int32
constructor
Creates a new instance of the ServerSecurityOptions class and initializes all properties with their default values.
constructor
ServerSecurityOptions()
Sub New()
constructor (Boolean)
constructor(enforceSecurity: Boolean)
ServerSecurityOptions(Boolean enforceSecurity)
Sub New(enforceSecurity As Boolean)
Parameters:
- enforceSecurity:
ThrowMessageSizeExceededException
method ThrowMessageSizeExceededException(size: Int64)
void ThrowMessageSizeExceededException(Int64 size)
Sub ThrowMessageSizeExceededException(size As Int64)
Parameters:
- size: