Class NSCredential

Credentials supported for authentication

Constructors

NSCredential()

Initializes a new instance of the NSCredential class.

Declaration

NSCredential

Methods

GetDisplayValue()

Declaration

String GetDisplayValue()

Examples

NSCredential thing;
String displayValue = thing.GetDisplayValue();

Returns

Type Description
String The value displayed to the user. This will typically be the users login name in active directory.

GetType()

Declaration

NSCredentialType GetType()

Examples

NSCredential thing;
NSCredentialType type = thing.GetType();

Returns

Type Description
NSCredentialType Description of credential type.

GetValue()

Declaration

String GetValue()

Examples

NSCredential thing;
String value = thing.GetValue();

Returns

Type Description
String The actual value of the credentials. Typically the password or the users SID in active directory.

SetDisplayValue(String)

Declaration

Void SetDisplayValue(String displayValue)

Examples

NSCredential thing;
String displayValue;
thing.SetDisplayValue(displayValue);

Parameters

Type Name Description
String displayValue The value displayed to the user. Typically the user's login name in active directory.

Returns

Type Description
Void

SetType(NSCredentialType)

Declaration

Void SetType(NSCredentialType type)

Examples

NSCredential thing;
NSCredentialType type;
thing.SetType(type);

Parameters

Type Name Description
NSCredentialType type Description of credential type.

Returns

Type Description
Void

SetValue(String)

Declaration

Void SetValue(String value)

Examples

NSCredential thing;
String value;
thing.SetValue(value);

Parameters

Type Name Description
String value This is the actual value of the credentials. Typically the password or the user's SID in active directory.

Returns

Type Description
Void