C# Class LearningRegistry.PgpSigner

Exibir arquivo Open project: adlnet-archive/LR.Net Class Usage Examples

Public Methods

Method Description
PgpSigner ( IEnumerable publicKeyLocation, string privateKey, string userId, string passPhrase ) : System
Sign ( lr_document document ) : lr_document

Private Methods

Method Description
getHash ( string s ) : string
getPrivateKeyStream ( String privateKey ) : Stream
readSecretKey ( Stream privateKeyStream ) : PgpSecretKey
signEnvelopeData ( string msg ) : string

Method Details

PgpSigner() public method

public PgpSigner ( IEnumerable publicKeyLocation, string privateKey, string userId, string passPhrase ) : System
publicKeyLocation IEnumerable
privateKey string
userId string
passPhrase string
return System

Sign() public method

public Sign ( lr_document document ) : lr_document
document lr_document
return lr_document