Discuss this help topic in SecureBlackbox Forum

TElSAMLServiceProvider.OnResourceRead

TElSAMLServiceProvider     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when the protected resource is read.

Declaration

[C#]
    event TSBSAMLResourceReadEvent OnResourceRead;
    delegate void TSBSAMLResourceReadEvent(Object Sender, Object Handle, ref byte[] Buf, ref int Size);

[VB.NET]
    Event OnResourceRead As TSBSAMLResourceReadEvent
    Delegate Sub TSBSAMLResourceReadEvent(ByVal Sender As Object, ByVal Handle As Object, ByRef Buf As Byte(), ByRef Size As Integer)

[Pascal]
    property OnResourceRead : TSBSAMLResourceReadEvent;
    TSBSAMLResourceReadEvent = procedure(Sender : TObject; Handle : Pointer; var Buf : ByteArray; var Size : integer) of object;

[C++]
    void get_OnResourceRead(TSBSAMLResourceReadEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnResourceRead(TSBSAMLResourceReadEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSAMLResourceReadEvent)(void * _ObjectData, TObjectHandle Sender, void * Handle, uint8_t pBuf[], int32_t &szBuf, int32_t &Size);

[PHP]
    TSBSAMLResourceReadEvent|callable|NULL get_OnResourceRead()
    void set_OnResourceRead(TSBSAMLResourceReadEvent|callable|NULL $Value)
    callable TSBSAMLResourceReadEvent(TObject $Sender, TSBPointer|NULL $Handle, string &$Buf, integer &$Size)

[Java]
    TSBSAMLResourceReadEvent getOnResourceRead();
    void setOnResourceRead(TSBSAMLResourceReadEvent Value);
    TSBSAMLResourceReadEvent.Callback OnResourceRead = new TSBSAMLResourceReadEvent.Callback() {
        public void TSBSAMLResourceReadEventCallback(TObject Sender, Object Handle, byte[] Buf, TSBInteger Size) {
            //...
        }
    }

Parameters

  • Handle - the handle of the protected resource.
  • Buf - the buffer where a piece of protected data should be written by the handler.
  • Size - the number of bytes written to the buffer.
  • pBuf - the buffer where a piece of protected data should be written by the handler.
  • szBuf - the number of bytes written to the buffer.

Description

This event is fired by TElSAMLServiceProvider each time a piece of protected data should be sent to the client. The handler should provide the data via the Buf (pBuf) parameter, and supply its size via the Size parameter. When all data has been sent, and 0 bytes are copied, TElSAMLServiceProvider closes the protected resource.

See also:     OnResourceClose     OnResourceOpen    

Discuss this help topic in SecureBlackbox Forum