> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSSignedPublicKey

> Represents all licenses for this owner at this site.

Represents all licenses for this owner at this site.

## Constructors

### NSSignedPublicKey()

```crmscript theme={null}
NSSignedPublicKey
```

Initializes a new instance of the NSSignedPublicKey class.

## Methods

## GetExpiryDate()

```crmscript theme={null}
DateTime GetExpiryDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Date when the signature expires. No Timezone.

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
DateTime expiryDate = thing.GetExpiryDate();
```

## GetKey()

```crmscript theme={null}
NSDSAParameters GetKey()
```

**Returns:** [CRMScript.NetServer.NSDSAParameters](CRMScript.NetServer.NSDSAParameters) - Public key held by module owner.

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
NSDSAParameters key = thing.GetKey();
```

## GetOwnerName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the module owner, not visible in GUI but used in the code.

<Note>
  OwnerName SUPEROFFICE is reserved and may NEVER be used by partners. This must be in UPPER CASE and only contain A-Z and 0-9. NO EXTENDED CHARACTERS please.n
</Note>

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
String ownerName = thing.GetOwnerName();
```

## GetSignature()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Signature, Base64 encoded value.

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
String signature = thing.GetSignature();
```

## GetSignDate()

```crmscript theme={null}
DateTime GetSignDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Date when the the public key was signed. No Timezone.

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
DateTime signDate = thing.GetSignDate();
```

## SetExpiryDate(DateTime)

```crmscript theme={null}
Void SetExpiryDate(DateTime expiryDate)
```

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

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
DateTime expiryDate;
thing.SetExpiryDate(expiryDate);
```

## SetKey(NSDSAParameters)

```crmscript theme={null}
Void SetKey(NSDSAParameters key)
```

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

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
NSDSAParameters key;
thing.SetKey(key);
```

## SetOwnerName(String)

```crmscript theme={null}
Void SetOwnerName(String ownerName)
```

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

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
String ownerName;
thing.SetOwnerName(ownerName);
```

## SetSignature(String)

```crmscript theme={null}
Void SetSignature(String signature)
```

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

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
String signature;
thing.SetSignature(signature);
```

## SetSignDate(DateTime)

```crmscript theme={null}
Void SetSignDate(DateTime signDate)
```

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

**Example:**

```crmscript theme={null}
NSSignedPublicKey thing;
DateTime signDate;
thing.SetSignDate(signDate);
```


## Related topics

- [NSLicenseInfo](/en/automation/crmscript/reference/CRMScript.NetServer.NSLicenseInfo.md)
- [SuperOffice.WebApi.Data.SignedPublicKey](/en/api/reference/webapi/SuperOffice.WebApi.Data.SignedPublicKey.md)
- [Partner licenses](/en/admin/license/dev/partner-licenses.md)
- [SuperOffice.WebApi.Data.LicenseInfo](/en/api/reference/webapi/SuperOffice.WebApi.Data.LicenseInfo.md)
- [License technical overview](/en/admin/license/dev/index.md)
- [SuperOffice.WebApi.Data.License](/en/api/reference/webapi/SuperOffice.WebApi.Data.License.md)
