C# Class System.Net.SecureOnPassword

Datei anzeigen Open project: nikeee/wake-on-lan Class Usage Examples

Public Methods

Method Description
GetPasswordBytes ( ) : byte[]

Gets the buffer of the password.

SecureOnPassword ( byte password )

Initializes a new instance of SecureOnPassword with the given password.

SecureOnPassword ( string password )

Initializes a new instance of SecureOnPassword with the given password.

Uses Text.Encoding.Default as encoding.

SecureOnPassword ( string password, Text encoding )

Initializes a new instance of SecureOnPassword with the given password.

ToString ( ) : string

Converts the SecureOnPassword to dash notation.

ToString ( IFormatProvider format ) : string

Converts the SecureOnPassword to dash notation.

Private Methods

Method Description
ToString ( string format ) : string

Converts the SecureOnPassword to dash notation.

Method Details

GetPasswordBytes() public method

Gets the buffer of the password.
public GetPasswordBytes ( ) : byte[]
return byte[]

SecureOnPassword() public method

Initializes a new instance of SecureOnPassword with the given password.
is null. The length of the array password is not 6.
public SecureOnPassword ( byte password )
password byte The password as array.

SecureOnPassword() public method

Initializes a new instance of SecureOnPassword with the given password.
Uses Text.Encoding.Default as encoding.
is null.
public SecureOnPassword ( string password )
password string The password as .

SecureOnPassword() public method

Initializes a new instance of SecureOnPassword with the given password.
is null. is null. The array wich is created using the password has more elements than 6.
public SecureOnPassword ( string password, Text encoding )
password string The password as .
encoding Text The instance to use for the password.

ToString() public method

Converts the SecureOnPassword to dash notation.
public ToString ( ) : string
return string

ToString() public method

Converts the SecureOnPassword to dash notation.
public ToString ( IFormatProvider format ) : string
format IFormatProvider
return string