> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# NSCredential

> Credentials supported for authentication

Credentials supported for authentication

## Constructors

### NSCredential()

```crmscript theme={null}
NSCredential
```

Initializes a new instance of the NSCredential class.

## Methods

## GetDisplayValue()

```crmscript theme={null}
String GetDisplayValue()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The value displayed to the user. This will typically be the users login name in active directory.

**Example:**

```crmscript theme={null}
NSCredential thing;
String displayValue = thing.GetDisplayValue();
```

## GetType()

```crmscript theme={null}
NSCredentialType GetType()
```

**Returns:** [CRMScript.NetServer.NSCredentialType](CRMScript.NetServer.NSCredentialType) - Description of credential type.

**Example:**

```crmscript theme={null}
NSCredential thing;
NSCredentialType type = thing.GetType();
```

## GetValue()

```crmscript theme={null}
String GetValue()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The actual value of the credentials. Typically the password or the users SID in active directory.

**Example:**

```crmscript theme={null}
NSCredential thing;
String value = thing.GetValue();
```

## SetDisplayValue(String)

```crmscript theme={null}
Void SetDisplayValue(String displayValue)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCredential thing;
String displayValue;
thing.SetDisplayValue(displayValue);
```

## SetType(NSCredentialType)

```crmscript theme={null}
Void SetType(NSCredentialType type)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCredential thing;
NSCredentialType type;
thing.SetType(type);
```

## SetValue(String)

```crmscript theme={null}
Void SetValue(String value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSCredential thing;
String value;
thing.SetValue(value);
```
