EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElX509Certificate.DetectCertFileFormat

TElX509Certificate     See also    


 

Detects certificate format.

 
 

Declaration

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

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

[Pascal]
    class function DetectCertFileFormat(FileName : string): TSBCertFileFormat;
    class function DetectCertFileFormat(Stream : TStream): TSBCertFileFormat;
    class function DetectCertFileFormat(Buffer : pointer; Size: integer): TSBCertFileFormat;

[VB6]
    Function IElCertificateX6.DetectCertFileFormat(Data As Variant) As TxSBCertFileFormat

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

[DLL]
    not implemented;
 
 

Parameters

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

Return value

[.NET] [Pascal] [ActiveX] Description
cfUnknown = 0 cfUnknown cfUnknown = 1 certificate type is unknown
cfDER = 1 cfDER cfDER = 2 certificate is written in DER format
cfPEM = 2 cfPEM cfPEM = 3 certificate is written in PEM format
cfPFX = 3 cfPFX cfPFX = 4 certificate is written in PFX format
cfSPC = 4 cfSPC cfSPC = 5 certificate is written in SPC format
Declared in
[.NET] [Pascal] [ActiveX]
Namespace: SBX509
Assembly: SecureBlackbox
Unit: SBX509 Module: BaseBBox6.dll

 
 

Description

    This method detects format of the certificate (PFX, PEM, DER, SPC).

 
 

See also:     DetectKeyFileFormat    

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