Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromBufferJKS

TElCustomCertStorage     See also     


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


Use this method to load multiple certificates stored in JKS (Java Key Storage) format.

Declaration

[C#/Java]
    bool LoadFromBufferJKS(byte[] Buffer, string Pass, TElJKSPasswordEvent OnPasswordNeeded /* = null */);
    bool TElJKSPasswordEvent(string Alias, ref string Password);

[VB.NET]
    Function LoadFromBufferJKS(ByVal Buffer As Byte(), ByVal Pass As String, ByVal OnPasswordNeeded As TElJKSPasswordEvent = Nothing) As Boolean
    Function TElJKSPasswordEvent(ByVal Alias As String, ByRef Password As String) As Boolean

[Pascal]
    function LoadFromBufferJKS(Buffer : pointer; Pass : string; Size : longint; OnPasswordNeeded : TElJKSPasswordEvent = nil) : boolean;
    function TElJKSPasswordEvent(const Alias : string; var Password : string) : boolean;

[C++]
    bool LoadFromBufferJKS(void * Buffer, const std::string &Pass, int32_t Size, TElJKSPasswordEvent pMethodOnPasswordNeeded, void * pDataOnPasswordNeeded);

[PHP]
    bool LoadFromBufferJKS(TSBPointer|array of byte|string|NULL $Buffer, string $Pass, integer $Size, TElJKSPasswordEvent|callable|NULL $OnPasswordNeeded)

Parameters

  • Buffer - Buffer with JKS data
  • Size - Size of Buffer in bytes
  • Pass - Password to decrypt certificates
  • 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

     True if certificates were successfully loaded.
     False otherwise.

Description

    Use this method to load certificates which are stored in JKS format.

See also:     LoadFromStreamJKS     SaveToBufferJKS     SaveToStreamJKS    

Discuss this help topic in SecureBlackbox Forum