Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.LoadKeyFromStreamPKCS15

TElX509Certificate     See also     


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


Loads the certificate's private key from stream. The key must be stored in PKCS15 format.

Declaration

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

[VB.NET]
    Sub LoadKeyFromStreamPKCS15(ByVal Stream As System.IO.Stream, ByVal Password As String, ByVal Count As Integer)

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

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

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

[Java]
    void loadKeyFromStreamPKCS15(TElStream Stream, String Password, int Count);
    void loadKeyFromStreamPKCS15(InputStream Stream, String Password, int Count);

Parameters

  • Stream - the stream containing the key data.
  • Password - Password to decrypt the key. If the key is not encrypted, set this parameter to an empty string.
  • Count - number of bytes to be read from Stream. When zero, the data will be read to the end of the stream.

Description

    Use this method to load the keys acquired from PKCS#15 security tokens.

See also:     LoadKeyFromStream     LoadKeyFromBufferPKCS15    

Discuss this help topic in SecureBlackbox Forum