Discuss this help topic in SecureBlackbox Forum

TElCAdESSignatureProcessor.CreateEPES

TElCAdESSignatureProcessor     See also     


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


Creates a CAdES-EPES signature.

Declaration

[C#/Java]
    void CreateEPES(TElX509Certificate Cert, byte[] PolicyID, int PolicyHashAlg, byte[] PolicyHash);
    void CreateEPES(TElX509Certificate Cert, byte[] ContentType, byte[] PolicyID, int PolicyHashAlg, byte[] PolicyHash);
    void CreateEPES(TElX509Certificate Cert, TElCustomCertStorage Chain, byte[] ContentType, byte[] PolicyID, int PolicyHashAlg, byte[] PolicyHash, string URI, string UNOrganization, int32[] UNNumbers, string ExplicitText);

[VB.NET]
    Sub CreateEPES(ByVal Cert As TElX509Certificate, ByVal PolicyID As Byte(), ByVal PolicyHashAlg As Integer, ByVal PolicyHash As Byte())
    Sub CreateEPES(ByVal Cert As TElX509Certificate, ByVal ContentType As Byte(), ByVal PolicyID As Byte(), ByVal PolicyHashAlg As Integer, ByVal PolicyHash As Byte())
    Sub CreateEPES(ByVal Cert As TElX509Certificate, ByVal Chain As TElCustomCertStorage, ByVal ContentType As Byte(), ByVal PolicyID As Byte(), ByVal PolicyHashAlg As Integer, ByVal PolicyHash As Byte(), ByVal URI As String, ByVal UNOrganization As String, ByVal UNNumbers As Integer(), ByVal ExplicitText As String)

[Pascal]
    procedure CreateEPES(Cert : TElX509Certificate; const PolicyID : ByteArray; PolicyHashAlg : integer; const PolicyHash : ByteArray);
    procedure CreateEPES(Cert : TElX509Certificate; const ContentType : ByteArray; const PolicyID : ByteArray; PolicyHashAlg : integer; const PolicyHash : ByteArray);
    procedure CreateEPES(Cert : TElX509Certificate; Chain : TElCustomCertStorage; const ContentType : ByteArray; const PolicyID : ByteArray; PolicyHashAlg : integer; const PolicyHash : ByteArray; const URI : string; const UNOrganization : string; const UNNumbers : array of integer; const ExplicitText : string);

[C++]
    void CreateEPES(TElX509Certificate &Cert, const std::vector<uint8_t> &PolicyID, int32_t PolicyHashAlg, const std::vector<uint8_t> &PolicyHash);
    void CreateEPES(TElX509Certificate *Cert, const std::vector<uint8_t> &PolicyID, int32_t PolicyHashAlg, const std::vector<uint8_t> &PolicyHash);
    void CreateEPES(TElX509Certificate &Cert, const std::vector<uint8_t> &ContentType, const std::vector<uint8_t> &PolicyID, int32_t PolicyHashAlg, const std::vector<uint8_t> &PolicyHash);
    void CreateEPES(TElX509Certificate *Cert, const std::vector<uint8_t> &ContentType, const std::vector<uint8_t> &PolicyID, int32_t PolicyHashAlg, const std::vector<uint8_t> &PolicyHash);
    void CreateEPES(TElX509Certificate &Cert, TElCustomCertStorage &Chain, const std::vector<uint8_t> &ContentType, const std::vector<uint8_t> &PolicyID, int32_t PolicyHashAlg, const std::vector<uint8_t> &PolicyHash, const std::string &URI, const std::string &UNOrganization, const std::vector<int32_t> &UNNumbers, const std::string &ExplicitText);
    void CreateEPES(TElX509Certificate *Cert, TElCustomCertStorage *Chain, const std::vector<uint8_t> &ContentType, const std::vector<uint8_t> &PolicyID, int32_t PolicyHashAlg, const std::vector<uint8_t> &PolicyHash, const std::string &URI, const std::string &UNOrganization, const std::vector<int32_t> &UNNumbers, const std::string &ExplicitText);

[PHP]
    void CreateEPES(TElX509Certificate $Cert, array of byte|string|NULL $PolicyID, integer $PolicyHashAlg, array of byte|string|NULL $PolicyHash)
    void CreateEPES(TElX509Certificate $Cert, array of byte|string|NULL $ContentType, array of byte|string|NULL $PolicyID, integer $PolicyHashAlg, array of byte|string|NULL $PolicyHash)
    void CreateEPES(TElX509Certificate $Cert, TElCustomCertStorage $Chain, array of byte|string|NULL $ContentType, array of byte|string|NULL $PolicyID, integer $PolicyHashAlg, array of byte|string|NULL $PolicyHash, string $URI, string $UNOrganization, array of int32|NULL $UNNumbers, string $ExplicitText)

Parameters

  • Cert - specifies the signing certificate.
  • Chain - the certificate chain to be added to the signature.
  • ContentType - specifies the content type of the signed message.
  • ExplicitText - contains the value of the explicit text signature policy qualifier.
  • PolicyHash - specifies policy hash value.
  • PolicyHashAlg - specifies the hash algorithm used to compute the policy hash. Only SB_ALGORITHM_DGST_SHA1 is allowed so far.
  • PolicyID - specifies the signature-policy-identifier attribute.
  • UNNumbers - specifies the notice numbers by which the explicit notice texts can be retrieved.
  • UNOrganization - specifies the organization which issued the signature policy.
  • URI - specifies the value of the URI signature policy qualifier, which contains a URI or URL reference to the signature policy.

Description

    Call this method to create a CAdES-EPES (Explicit Policy-based Electronic Signature). This signature explicitly specifies the policy that shall be used for the signature validation.

See also:     Signature     CreateBES     CreateC     CreateT     CreateX     CreateXL    

Discuss this help topic in SecureBlackbox Forum