Interface IFinFilter

Namespace
Subsembly.FinTS
Assembly
Subsembly.FinTS.Core.dll

Interface to an implementation of a filter function that can be applied when transmitting and receiving FinTS messages.

public interface IFinFilter

Properties

FilterFunction

The name of the filter function that is implemented by this filter.

string FilterFunction { get; }

Property Value

string

Remarks

This is the name that appears in the HIKOM segment. At this time only the filter names MIM for base 64 encoding and UUE for UUencoding are defined. The HIKOM segment restricts this name to three characters.

FilterFunctionVersion

The version of the filter function that is implemented by this filter.

int FilterFunctionVersion { get; }

Property Value

int

Remarks

This is not the version number of the implementation itself, but the specification version of the filter function according to FinTS. Currently this must always be 1.

Methods

FilteredOutputSize(int)

Computes the resulting size of the output data after applying this filter function.

int FilteredOutputSize(int nMsgSize)

Parameters

nMsgSize int

The original size of the FinTS request message that shall be filtered by this filter before transmission.

Returns

int

The resulting size of the output data after applying this filter function.

InputFilter(Stream)

Creates a new instance of an input stream filter.

Stream InputFilter(Stream aStream)

Parameters

aStream Stream

Source stream that provides the raw data onto which the input filter function shall be applied. This stream must be readable. It is not required that this stream be seekable.

Returns

Stream

A readable Stream is returned that filters all data from the source stream and provides the resulting data through its read functions. The returned stream is not seekable. The returned stream shall be used to read a single FinTS message only. After all message data has been read the stream must be closed.

OutputFilter(Stream)

Creates a new instance of an output stream filter.

Stream OutputFilter(Stream aStream)

Parameters

aStream Stream

Destination stream that ultimately receives the written data after the filter function was applied. This stream must be writable. It is not required that this stream be seekable.

Returns

Stream

A writable Stream is returned that filters all written data and writes the resulting data to the given destination stream. The returned stream is not seekable. The returned stream shall be used to write a single FinTS message only. After all message data has been written to that stream it must be flushed and then closed.