Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromStreamPKCS7

TElCustomCertStorage     See also     


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


Use this method to load multiple certificates stored in PKCS7 format from stream.

Declaration

[C#]
    int LoadFromStreamPKCS7(System.IO.Stream Stream, int Count);

[VB.NET]
    Function LoadFromStreamPKCS7(ByVal Stream As System.IO.Stream, ByVal Count As Integer) As Integer

[Pascal]
    function LoadFromStreamPKCS7(Stream: TStream; Count: integer = 0): integer;

[C++]
    int32_t LoadFromStreamPKCS7(TStream &Stream, int32_t Count);
    int32_t LoadFromStreamPKCS7(TStream *Stream, int32_t Count);

[PHP]
    integer LoadFromStreamPKCS7(TStream $Stream, integer $Count)

[Java]
    int loadFromStreamPKCS7(InputStream Stream, int Count);
    int loadFromStreamPKCS7(TElStream Stream, int Count);

Parameters

  • Stream - The stream from which the certificates are loaded.
  • Count - Optional parameter that specified the number of bytes to be read. If this parameter is zero, the stream is read till the end.

Return value

    0 if certificates were successfully loaded.
    PKCS7 error code otherwise.

PKCS7 Error codes

Description

    Use this method to load certificates in PKCS#7 format from the stream.

See also:     LoadFromBufferPKCS7     SaveToBufferPKCS7     SaveToStreamPKCS7    

Discuss this help topic in SecureBlackbox Forum