Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.LoadKeyFromStream

TElCertificateRequest     See also     


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


Reads the private key from the stream.

Declaration

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

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

[Pascal]
    procedure LoadKeyFromStream(Stream: TStream; Count : integer = 0);

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

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

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

Parameters

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

Return value

    Returns 0 on success, and error code otherwise.

Description

    Use this method to load a private key to be used for request regeneration from stream.

See also:     LoadKeyFromBuffer     LoadKeyFromBufferPEM     LoadKeyFromStreamPEM     KeyMaterial    

Discuss this help topic in SecureBlackbox Forum