Show / Hide Table of Contents

Class NSCredential

Credentials supported for authentication

Syntax

Constructors

NSCredential()

Initializes a new instance of the NSCredential class.

Declaration
NSCredential

Methods

GetDisplayValue()

Credentials supported for authentication

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()

Credentials supported for authentication

Declaration
NSCredentialType GetType()
Returns
Type Description
NSCredentialType

Description of credential type.

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

GetValue()

Credentials supported for authentication

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)

Credentials supported for authentication

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)

Credentials supported for authentication

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)

Credentials supported for authentication

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);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top