Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.SaveToBufferJKS

TElCustomCertStorage     See also     


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


Use this method in derived classes to save certificates contained in storage to buffer in JKS (Java Key Storage) format.

Declaration

[C#]
    bool SaveToBufferJKS(ref byte[] Buffer, string Pass, ref int Size);

[VB.NET]
    Function SaveToBufferJKS(ByRef Buffer As Byte(), ByVal Pass As String, ByRef Size As Integer) As Boolean

[Pascal]
    function SaveToBufferJKS(Buffer : pointer; Pass : string; var Size : longint) : boolean;
    function SaveToBufferJKSEx(Buffer : pointer; Pass : string; var Size : longint; OnAliasNeeded : TElJKSAliasNeededEvent = nil) : boolean;
    function TElJKSAliasNeededEvent(Cert : TElX509Certificate; var Alias : string) : boolean;

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

[PHP]
    bool SaveToBufferJKS(TSBPointer|array of byte|string|NULL $Buffer, string $Pass, integer &$Size)

[Java]
    boolean saveToBufferJKS(byte[] Buffer, String Pass, TSBInteger Size);

Parameters

  • Buffer - Buffer with JKS data
  • Size - Size of the Buffer in bytes
  • Pass - Password to encrypt certificates
  • OnAliasNeeded - this event is fired when alias is needed for some certificate
  • Cert - certificate for which alias must be provided
  • Alias - alias for the Cert must be provided via this parameter

Return value

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

Description

    Use this method in derived classes to save currently stored certificates in JKS format.

See also:     LoadFromBufferJKS     LoadFromStreamJKS     SaveToStreamJKS    

Discuss this help topic in SecureBlackbox Forum