Show / Hide Table of Contents

Class NSCredential

Credentials supported for authentication

Syntax

Constructors

NSCredential()

Initializes a new instance of the NSCredential class.

Introduced or updated in version: 7

Declaration
NSCredential

Methods

GetDisplayValue()

Introduced or updated in version: 7

Declaration
String GetDisplayValue()
Returns
Type Description
String

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

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

GetType()

Introduced or updated in version: 7

Declaration
NSCredentialType GetType()
Returns
Type Description
NSCredentialType

Description of credential type.

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

GetValue()

Introduced or updated in version: 7

Declaration
String GetValue()
Returns
Type Description
String

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

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

SetDisplayValue(String)

Introduced or updated in version: 7

Declaration
Void SetDisplayValue(String 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
Examples
NSCredential thing;
String displayValue;
thing.SetDisplayValue(displayValue);

SetType(NSCredentialType)

Introduced or updated in version: 7

Declaration
Void SetType(NSCredentialType type)
Parameters
Type Name Description
NSCredentialType type

Description of credential type.

Returns
Type Description
Void
Examples
NSCredential thing;
NSCredentialType type;
thing.SetType(type);

SetValue(String)

Introduced or updated in version: 7

Declaration
Void SetValue(String 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
Examples
NSCredential thing;
String value;
thing.SetValue(value);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top