Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromStreamJKS

TElCustomCertStorage     See also     


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


Use this method to load multiple certificates stored in JKS (PKCS12) format from stream.

Declaration

[C#/Java]
    bool LoadFromStreamJKS(System.IO.Stream Stream, string Pass, int Count /* = 0 */, TElJKSPasswordEvent OnPasswordNeeded /* = null */);
    bool TElJKSPasswordEvent(string Alias, ref string Password);

[VB.NET]
    Function LoadFromStreamJKS(ByVal Stream As System.IO.Stream, ByVal Pass As String, ByVal Count As Integer = 0, ByVal OnPasswordNeeded As TElJKSPasswordEvent = Nothing) As Boolean
    Function TElJKSPasswordEvent(ByVal Alias As String, ByRef Password As String) As Boolean

[Pascal]
    function LoadFromStreamJKS(Stream: TStream; const Pass: string; Count: integer = 0; OnPasswordNeeded : TElJKSPasswordEvent = nil) : boolean;
    function TElJKSPasswordEvent(Alias : string; var Password : string) : boolean;

[C++]
    bool LoadFromStreamJKS(TStream &Stream, const std::string &Pass, int32_t Count, TElJKSPasswordEvent pMethodOnPasswordNeeded, void * pDataOnPasswordNeeded);
    bool LoadFromStreamJKS(TStream *Stream, const std::string &Pass, int32_t Count, TElJKSPasswordEvent pMethodOnPasswordNeeded, void * pDataOnPasswordNeeded);

[PHP]
    bool LoadFromStreamJKS(TStream $Stream, string $Pass, integer $Count, TElJKSPasswordEvent|callable|NULL $OnPasswordNeeded)

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 from current position till the end is read.
  • Pass - Specifies the pass phrase to decrypt the certificates data. If certificates are not encrypted, set this parameter to empty string.
  • OnPasswordNeeded - This event is called if Pass is incorrect
  • Alias - Alias that identifies the certificate
  • Password - Password to the certificate that is identified by Alias should be provided via this parameter
  • pMethodOnPasswordNeeded -
  • pDataOnPasswordNeeded -

Return value

    Returns True if certificates were successfully loaded, and False otherwise.

Description

    Use this method to load certificates in JKS format from the stream.

See also:     LoadFromBufferJKS     SaveToBufferJKS     SaveToStreamJKS    

Discuss this help topic in SecureBlackbox Forum