C# Class Brunet.Security.UserRevocationMessage

A revocation message creator and parser.
Stores the user's name, a current time stamp, and a random number hashed together using SHA1 and signed by an RSA key.
Inheritance: ICopyable
Show file Open project: pstjuste/brunet Class Usage Examples

Public Properties

Property Type Description
Hash byte[]
Signature byte[]
Username string

Protected Properties

Property Type Description
_data Brunet.Util.MemBlock

Public Methods

Method Description
CopyTo ( byte dst, int offset ) : int
UserRevocationMessage ( Certificate cacert, MemBlock data ) : Brunet.Messaging

Parse a revocation message.

UserRevocationMessage ( RSACryptoServiceProvider private_key, string username ) : Brunet.Messaging

Create a new revocation message.

Method Details

CopyTo() public method

public CopyTo ( byte dst, int offset ) : int
dst byte
offset int
return int

UserRevocationMessage() public method

Parse a revocation message.
public UserRevocationMessage ( Certificate cacert, MemBlock data ) : Brunet.Messaging
cacert Certificate
data Brunet.Util.MemBlock
return Brunet.Messaging

UserRevocationMessage() public method

Create a new revocation message.
public UserRevocationMessage ( RSACryptoServiceProvider private_key, string username ) : Brunet.Messaging
private_key System.Security.Cryptography.RSACryptoServiceProvider
username string
return Brunet.Messaging

Property Details

Hash public property

public byte[] Hash
return byte[]

Signature public property

public byte[] Signature
return byte[]

Username public property

public string Username
return string

_data protected property

protected MemBlock,Brunet.Util _data
return Brunet.Util.MemBlock