C# Class Ipop.GroupVPNClient

State machine used in obtaining a GroupVPN signed certificate.
Show file Open project: pstjuste/brunet

Protected Properties

Property Type Description
_cert Certificate
_group string
_group_vpn IGroupVPNServer
_request_id string
_secret string
_state States
_unsigned_cert byte[]
_username string

Public Methods

Method Description
CheckRequest ( ) : bool

Checks the request to see if it has been signed!

GroupVPNClient ( string username, string group, string secret, string server_uri, string node_address, RSACryptoServiceProvider public_key ) : Brunet
Start ( ) : void

Keeps the thread until either we are successful in getting a certificate or we fail.

Protected Methods

Method Description
SubmitRequest ( ) : bool

Submits a request to be signed!

Method Details

CheckRequest() public method

Checks the request to see if it has been signed!
public CheckRequest ( ) : bool
return bool

GroupVPNClient() public method

public GroupVPNClient ( string username, string group, string secret, string server_uri, string node_address, RSACryptoServiceProvider public_key ) : Brunet
username string
group string
secret string
server_uri string
node_address string
public_key System.Security.Cryptography.RSACryptoServiceProvider
return Brunet

Start() public method

Keeps the thread until either we are successful in getting a certificate or we fail.
public Start ( ) : void
return void

SubmitRequest() protected method

Submits a request to be signed!
protected SubmitRequest ( ) : bool
return bool

Property Details

_cert protected property

protected Certificate _cert
return Certificate

_group protected property

protected string _group
return string

_group_vpn protected property

protected IGroupVPNServer _group_vpn
return IGroupVPNServer

_request_id protected property

protected string _request_id
return string

_secret protected property

protected string _secret
return string

_state protected property

protected States _state
return States

_unsigned_cert protected property

protected byte[] _unsigned_cert
return byte[]

_username protected property

protected string _username
return string