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
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
Hash byte[]
Signature byte[]
Username string

Protected Properties

Свойство Type Description
_data Brunet.Util.MemBlock

Méthodes publiques

Méthode 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 méthode

public CopyTo ( byte dst, int offset ) : int
dst byte
offset int
Résultat int

UserRevocationMessage() public méthode

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

UserRevocationMessage() public méthode

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

Property Details

Hash public_oe property

public byte[] Hash
Résultat byte[]

Signature public_oe property

public byte[] Signature
Résultat byte[]

Username public_oe property

public string Username
Résultat string

_data protected_oe property

protected MemBlock,Brunet.Util _data
Résultat Brunet.Util.MemBlock