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

Inheritance: RIM.VSNDK_Package.Signing.Models.NotifyPropertyChanged
Afficher le fichier Open project: blackberry/VSPlugin Class Usage Examples

Méthodes publiques

Свойство Type Description
_initializedCorrectly bool
restart bool

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnPropertyChanged ( string propName ) : void

Fire the PropertyChnaged event handler on change of property

Private Methods

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

Constructor
public DebugTokenData ( ) : System
Résultat System

Decrypt() public méthode

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.
Résultat string

Encrypt() public méthode

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.
Résultat string

OnPropertyChanged() protected méthode

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

addDevice() public méthode

Add current device to device list.
public addDevice ( DebugTokenDialog parent ) : bool
parent DebugTokenDialog
Résultat bool

createDebugToken() public méthode

Create a new Debug Token for connected device
public createDebugToken ( ) : bool
Résultat bool

getDeviceInfo() public méthode

Get the device Info of the connected device
public getDeviceInfo ( ) : bool
Résultat bool

refreshDevice() public méthode

Refresh current device to device list.
public refreshDevice ( DebugTokenDialog parent ) : bool
parent DebugTokenDialog
Résultat bool

resetPassword() public méthode

public resetPassword ( ) : bool
Résultat bool

Property Details

_initializedCorrectly public_oe static_oe property

public static bool _initializedCorrectly
Résultat bool

restart public_oe static_oe property

public static bool restart
Résultat bool