Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.SaveToStreamJKS

TElCustomCertStorage     See also     


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


Saves the certificates contained in the storage to the stream in JKS (Java Key Storage) format.

Declaration

[C#]
    bool SaveToStreamJKS(System.IO.Stream Stream, string Pass);

[VB.NET]
    Function SaveToStreamJKS(ByVal Stream As System.IO.Stream, ByVal Pass As String) As Boolean

[Pascal]
    function SaveToStreamJKS(Stream: TStream; const Pass: string): boolean;
    function SaveToStreamJKSEx(Stream: TStream; const Pass: string; OnAliasNeeded : TElJKSAliasNeededEvent = nil) : boolean;
    function TElJKSAliasNeededEvent(Cert : TElX509Certificate; var Alias : string) : boolean;

[C++]
    bool SaveToStreamJKS(TStream &Stream, const std::string &Pass);
    bool SaveToStreamJKS(TStream *Stream, const std::string &Pass);

[PHP]
    bool SaveToStreamJKS(TStream $Stream, string $Pass)

[Java]
    boolean saveToStreamJKS(OutputStream Stream, String Pass);
    boolean saveToStreamJKS(TElStream Stream, String Pass);

Parameters

  • Stream - the stream to which the certificates are written.
  • 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 the 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     SaveToBufferJKS    

Discuss this help topic in SecureBlackbox Forum