Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromStreamJKS

TElCustomCertStorage     See also     


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


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

Declaration

[C#]
    bool LoadFromStreamJKS(System.IO.Stream Stream, string Pass, int Count, TElJKSPasswordEvent OnPasswordNeeded);

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

[Java]
    boolean loadFromStreamJKS(InputStream Stream, String Pass, int Count, TElJKSPasswordEvent arg3);
    boolean loadFromStreamJKS(TElStream Stream, String Pass, int Count, TElJKSPasswordEvent arg3);

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