Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.SaveToBufferJKS

TElCustomCertStorage     See also     


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


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

Declaration

[C#/Java]
    bool SaveToBufferJKS(ref byte[] Buffer, string Pass, ref int Size);
    bool SaveToBufferJKSEx(ref byte[] Buffer, string Pass, ref int Size, TElJKSAliasNeededEvent OnAliasNeeded /* = null */);
    bool TElJKSAliasNeededEvent(TElX509Certificate Cert, ref string Alias);

[VB.NET]
    Function SaveToBufferJKS(ByRef Buffer As Byte(), ByVal Pass As String, ByRef Size As Integer) As Boolean
    Function SaveToBufferJKSEx(ByRef Buffer As Byte(), ByVal Pass As String, ByRef Size As Integer, ByVal OnAliasNeeded As TElJKSAliasNeededEvent = Nothing) As Boolean
    Function TElJKSAliasNeededEvent(ByVal Cert As TElX509Certificate, ByRef Alias As String) 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)

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