Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.LoadFromBufferSPC

TElX509Certificate     See also     


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


Loads the certificate from the memory buffer.

Declaration

[C#/Java]
    int LoadFromBufferSPC(byte[] Buffer);
    int LoadFromBufferSPC(byte[] Buffer, int StartIndex, int Count);

[VB.NET]
    Function LoadFromBufferSPC(ByVal Buffer As Byte()) As Integer
    Function LoadFromBufferSPC(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer) As Integer

[Pascal]
    function LoadFromBufferSPC(Buffer : pointer; Size : integer) : integer;

[C++]
    int32_t LoadFromBufferSPC(void * Buffer, int32_t Size);

[PHP]
    integer LoadFromBufferSPC(TSBPointer|array of byte|string|NULL $Buffer, integer $Size)

Parameters

  • Buffer - the buffer from which the certificate is loaded.
  • Size - the size of the buffer from which the data is loaded.
  • StartIndex -
  • Count -

Return value

    0 on success.
    SPC error code otherwise.

Description

    This method attempts to read the certificate from the provided memory location of the given size. The certificate must have been saved in SPC (PKCS#7) format.

See also:     LoadFromBufferAuto     LoadKeyFromBufferPVK     LoadFromBuffer     LoadFromBufferPFX     LoadFromStream     SaveToBuffer    

Discuss this help topic in SecureBlackbox Forum