C# Class RIM.VSNDK_Package.DebugToken.Model.DebugTokenData

Inheritance: RIM.VSNDK_Package.Signing.Models.NotifyPropertyChanged
ファイルを表示 Open project: blackberry/VSPlugin Class Usage Examples

Public Properties

Property Type Description
_initializedCorrectly bool
restart bool

Public Methods

Method Description
DebugTokenData ( ) : System

Constructor

Decrypt ( string cipher ) : string

Decrypts a given string.

Keep in mind that the decrypted string remains in memory and makes your application vulnerable per se. If runtime protection is essential, SecureString should be used.

Encrypt ( string plainText ) : string

Encrypts a given password and returns the encrypted data as a base64 string.

This solution is not really secure as we are keeping strings in memory. If runtime protection is essential, SecureString should be used.

addDevice ( DebugTokenDialog parent ) : bool

Add current device to device list.

createDebugToken ( ) : bool

Create a new Debug Token for connected device

getDeviceInfo ( ) : bool

Get the device Info of the connected device

refreshDevice ( DebugTokenDialog parent ) : bool

Refresh current device to device list.

resetPassword ( ) : bool

Protected Methods

Method Description
OnPropertyChanged ( string propName ) : void

Fire the PropertyChnaged event handler on change of property

Private Methods

Method Description
getDebugTokenInfo ( ) : bool

Retrieve debug token details

isRegistered ( ) : bool

Get the list of registered devices and display

p_ErrorDataReceived ( object sender, System e ) : void

On Error received event handler

p_OutputDataReceived ( object sender, System e ) : void

On Data Received event handler

refreshScreen ( ) : void

Set all the screen info

removeDebugToken ( ) : bool

remove debug token from connected device

uploadDebugToken ( ) : bool

Upload Token to connected device

Method Details

DebugTokenData() public method

Constructor
public DebugTokenData ( ) : System
return System

Decrypt() public method

Decrypts a given string.
Keep in mind that the decrypted string remains in memory and makes your application vulnerable per se. If runtime protection is essential, SecureString should be used.
If /// is a null reference.
public Decrypt ( string cipher ) : string
cipher string A base64 encoded string that was created /// through the or /// extension methods.
return string

Encrypt() public method

Encrypts a given password and returns the encrypted data as a base64 string.
This solution is not really secure as we are keeping strings in memory. If runtime protection is essential, SecureString should be used.
If /// is a null reference.
public Encrypt ( string plainText ) : string
plainText string An unencrypted string that needs /// to be secured.
return string

OnPropertyChanged() protected method

Fire the PropertyChnaged event handler on change of property
protected OnPropertyChanged ( string propName ) : void
propName string
return void

addDevice() public method

Add current device to device list.
public addDevice ( DebugTokenDialog parent ) : bool
parent DebugTokenDialog
return bool

createDebugToken() public method

Create a new Debug Token for connected device
public createDebugToken ( ) : bool
return bool

getDeviceInfo() public method

Get the device Info of the connected device
public getDeviceInfo ( ) : bool
return bool

refreshDevice() public method

Refresh current device to device list.
public refreshDevice ( DebugTokenDialog parent ) : bool
parent DebugTokenDialog
return bool

resetPassword() public method

public resetPassword ( ) : bool
return bool

Property Details

_initializedCorrectly public_oe static_oe property

public static bool _initializedCorrectly
return bool

restart public_oe static_oe property

public static bool restart
return bool