EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElX509Certificate.DetectKeyFileFormat

TElX509Certificate     See also    


 

Detects key format.

 
 

Declaration

[C#]
    static TSBX509KeyFileFormat DetectKeyFileFormat(string FileName, string Password);
    static TSBX509KeyFileFormat DetectKeyFileFormat(System.IO.Stream Stream, string Password);
    static TSBX509KeyFileFormat DetectKeyFileFormat(byte[] Buffer, int Index, int Size, string Password);

[VB.NET]
    Shared Function DetectKeyFileFormat(ByVal FileName As String, ) As TSBX509KeyFileFormat
    Shared Function DetectKeyFileFormat(ByVal Stream As System.IO.Stream, ByVal Password As String) As TSBX509KeyFileFormat
    Shared Function DetectKeyFileFormat(ByVal Buffer As Byte(), ByVal Index As Integer, ByVal Size As Integer, ByVal Password As String) As TSBX509KeyFileFormat

[Pascal]
    class function DetectKeyFileFormat(FileName : string; const Password : string): TSBX509KeyFileFormat;
    class function DetectKeyFileFormat(Stream : TStream; const Password : string): TSBX509KeyFileFormat;
    class function DetectKeyFileFormat(Buffer : pointer; Size: integer; const Password : string): TSBX509KeyFileFormat;

[VB6]
    Function IElCertificateX6.DetectCertFileFormat(Data As Variant, Password As String) As TxSBKeyFileFormat

[ActiveX]
    HRESULT _stdcall IElCertificateX6.DetectCertFileFormat([in] VARIANT Data, [in] BSTR Password, [out, retval] TxSBKeyFileFormat * Res);

[DLL]
    not implemented;
 
 

Parameters

  • FileName - name of the file containing key
  • Stream - stream containing key
  • Buffer - buffer containing key
  • Index - starting index of the key in Buffer
  • Size - size of the Buffer
  • Password - password to decrypt the key
    • [ActiveX]Data - certificate data
 
 

Return value

[.NET] [Pascal] [ActiveX] Description
kffUnknown = 0 kffUnknown kffUnknown = 1 key type is unknown
kffDER = 1 kffDER kffDER = 2 key is written in DER format
kffPEM = 2 kffPEM kffPEM = 3 key is written in PEM format
kffPFX = 3 kffPFX kffPFX = 4 key is written in PFX format
kffPVK = 4 kffPVK kffPVK = 5 key is written in PVK format
kffNET = 5 kffNET kffNET = 6 key is written in NET format
Declared in
[.NET] [Pascal] [ActiveX]
Namespace: SBX509
Assembly: SecureBlackbox
Unit: SBX509 Module: BaseBBox7.dll

 
 

Description

    This method detects format of the key (PFX, PEM, DER, PVK, NET).

 
 

See also:     DetectCertFileFormat    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation