C# Class Ipop.GroupVPNClient

State machine used in obtaining a GroupVPN signed certificate.
Mostrar archivo 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_oe property

protected Certificate _cert
return Certificate

_group protected_oe property

protected string _group
return string

_group_vpn protected_oe property

protected IGroupVPNServer _group_vpn
return IGroupVPNServer

_request_id protected_oe property

protected string _request_id
return string

_secret protected_oe property

protected string _secret
return string

_state protected_oe property

protected States _state
return States

_unsigned_cert protected_oe property

protected byte[] _unsigned_cert
return byte[]

_username protected_oe property

protected string _username
return string