C# Class ittru.signAx

Inheritance: IObjectSafety
Mostra file Open project: projeto-siga/bluecrystal-signer

Private Properties

Property Type Description
RegisterClass void
UnregisterClass void
convertHashAlg int
getCertificate string
getKeySize int
getSubject string
sign byte[]
sign string
sign string

Public Methods

Method Description
GetInterfaceSafetyOptions ( System.Guid &iid, int &pdwSupportedOptions, int &pdwEnabledOptions ) : long
SetInterfaceSafetyOptions ( System.Guid &iid, int dwOptionSetMask, int dwEnabledOptions ) : long
SignMsg ( int hashAlg, byte msg, X509Certificate2 signerCert ) : byte[]
VerifyMsg ( byte encodedSignedCms, byte &origMsg ) : bool
sign ( int hashAlg, byte content ) : byte[]
signAx ( ) : System

Private Methods

Method Description
RegisterClass ( string key ) : void
UnregisterClass ( string key ) : void
convertHashAlg ( String hashAlg ) : int
getCertificate ( string title, string message, String subjectRegex, string issuerRegex ) : string
getKeySize ( ) : int
getSubject ( ) : string
sign ( string hashAlg, byte content ) : byte[]
sign ( int hashAlg, string contentB64 ) : string
sign ( string hashAlg, string contentB64 ) : string

Method Details

GetInterfaceSafetyOptions() public method

public GetInterfaceSafetyOptions ( System.Guid &iid, int &pdwSupportedOptions, int &pdwEnabledOptions ) : long
iid System.Guid
pdwSupportedOptions int
pdwEnabledOptions int
return long

SetInterfaceSafetyOptions() public method

public SetInterfaceSafetyOptions ( System.Guid &iid, int dwOptionSetMask, int dwEnabledOptions ) : long
iid System.Guid
dwOptionSetMask int
dwEnabledOptions int
return long

SignMsg() public static method

public static SignMsg ( int hashAlg, byte msg, X509Certificate2 signerCert ) : byte[]
hashAlg int
msg byte
signerCert System.Security.Cryptography.X509Certificates.X509Certificate2
return byte[]

VerifyMsg() public static method

public static VerifyMsg ( byte encodedSignedCms, byte &origMsg ) : bool
encodedSignedCms byte
origMsg byte
return bool

sign() public method

public sign ( int hashAlg, byte content ) : byte[]
hashAlg int
content byte
return byte[]

signAx() public method

public signAx ( ) : System
return System