Discuss this help topic in SecureBlackbox Forum


TElWebDAVServer     See also     

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

This event is fired when SRP data is needed.


    event TSBServerSrpDbNeededEvent OnGetSrpDb;
    delegate void TSBServerSrpDbNeededEvent(Object Sender, string UserName, ref byte[] N, ref byte[] G, ref byte[] S, ref byte[] V);

    Event OnGetSrpDb As TSBServerSrpDbNeededEvent
    Delegate Sub TSBServerSrpDbNeededEvent(ByVal Sender As Object, ByVal UserName As String, ByRef N As Byte(), ByRef G As Byte(), ByRef S As Byte(), ByRef V As Byte())

    property OnGetSrpDb : TSBSSLServerSrpDbNeededEvent;
    TSBSSLServerSrpDbNeededEvent = function(Sender : TObject; const UserName : string; var N, G, S, V : ByteArray) : boolean of object;

    void get_OnGetSrpDb(TSBServerSrpDbNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnGetSrpDb(TSBServerSrpDbNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBServerSrpDbNeededEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcUserName, int32_t szUserName, uint8_t pN[], int32_t &szN, uint8_t pG[], int32_t &szG, uint8_t pS[], int32_t &szS, uint8_t pV[], int32_t &szV);

    TSBServerSrpDbNeededEvent|callable|NULL get_OnGetSrpDb()
    void set_OnGetSrpDb(TSBServerSrpDbNeededEvent|callable|NULL $Value)
    callable TSBServerSrpDbNeededEvent(TObject $Sender, string $UserName, string &$N, string &$G, string &$S, string &$V)

    TSBServerSrpDbNeededEvent getOnGetSrpDb();
    void setOnGetSrpDb(TSBServerSrpDbNeededEvent Value);
    TSBServerSrpDbNeededEvent.Callback OnGetSrpDb = new TSBServerSrpDbNeededEvent.Callback() {
        public boolean TSBServerSrpDbNeededEventCallback(TObject Sender, String UserName, byte[] N, byte[] G, byte[] S, byte[] V) {


  • UserName - username for which SRP data is requested.
  • N - safe prime number for SRP protocol.
  • G - the generator for the multiplicative group.
  • S - contains salt value.
  • V - specifies password verifier.
  • pcUserName - username for which SRP data is requested.
  • szUserName - the length of pcUserName.
  • pN -
  • szN - the length of pcN.
  • pG -
  • szG - the length of pcG.
  • pS -
  • szS - the length of pcS.
  • pV -
  • szV - the length of pcV.


    This event is fired by the server when SRP data is needed for client authentication. The handler must provide necessary information via the corresponding parameters.

See also:     OnKeyNeeded     Control    

Discuss this help topic in SecureBlackbox Forum