Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromBufferPEM

TElCustomCertStorage     See also     


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


Loads certificates from the memory buffer. Buffer should contain certificate in PEM format.

Declaration

[C#]
    int LoadFromBufferPEM(byte[] Buffer, string Password);

[VB.NET]
    Function LoadFromBufferPEM(ByVal Buffer As Byte(), ByVal Password As String) As Integer

[Pascal]
    function LoadFromBufferPEM(Buffer : pointer; Size : longint; const Password : string) : integer;

[C++]
    int32_t LoadFromBufferPEM(void * Buffer, int32_t Size, const std::string &Password);

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

[Java]
    int loadFromBufferPEM(byte[] Buffer, String Password);

Parameters

  • Buffer - the buffer from which the certificates are loaded.
  • Password - the password to decrypt the certificate data.
  • Size - the size of the buffer.

Return value

    Returns 0 on success, and PEM error code otherwise.

Description

    Use this method to load the certificates stored in memory buffer in PEM format.

See also:     LoadFromStreamPEM     SaveToBufferPEM     SaveToStreamPEM    

Discuss this help topic in SecureBlackbox Forum