Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromStreamPEM

TElCustomCertStorage     See also     


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


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

Declaration

[C#]
    int LoadFromStreamPEM(System.IO.Stream Stream, string Password, int Count);

[VB.NET]
    Function LoadFromStreamPEM(ByVal Stream As System.IO.Stream, ByVal Password As String, ByVal Count As Integer) 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)

[Java]
    int loadFromStreamPEM(InputStream Stream, String Password, int Count);
    int loadFromStreamPEM(TElStream Stream, String Password, int 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