Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromStreamPEM

TElCustomCertStorage     See also     


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


Reads certificates from the stream. The certificates are contained in PEM format.

Declaration

[C#/Java]
    int LoadFromStreamPEM(System.IO.Stream Stream, string Password, int Count /* = 0 */);

[VB.NET]
    Function LoadFromStreamPEM(ByVal Stream As System.IO.Stream, ByVal Password As String, ByVal Count As Integer = 0) As Integer

[Pascal]
    function LoadFromStreamPEM(Stream : TStream; const Password : string; Count : integer = 0) : integer;

[C++]
    int32_t LoadFromStreamPEM(TStream &Stream, const std::string &Password, int32_t Count);
    int32_t LoadFromStreamPEM(TStream *Stream, const std::string &Password, int32_t Count);

[PHP]
    integer LoadFromStreamPEM(TStream $Stream, string $Password, integer $Count)

Parameters

  • Stream - the stream containing the certificates.
  • Password - the password encrypting the certificates.
  • Count - optional parameter that specifies the number of bytes to be read. If this parameter is zero, the whole stream (from current position till the end) is read.

Return value

    Returns 0 on success, and PEM error code otherwise.

Description

    Use this method to read certificates in PEM format from stream.

See also:     LoadFromBufferPEM     SaveToBufferPEM     SaveToStreamPEM    

Discuss this help topic in SecureBlackbox Forum