Class SoStrongName
Utility class for dealing with assemblies signed with SuperOffice' Strong Name keys
Inherited Members
Namespace: SuperOffice.Security.Permissions
Assembly: SoCore.dll
Syntax
public sealed class SoStrongName
Fields
PublicKeyString
Public part of the strong name signature used to sign SuperOffice' assemblies as a hex-string.
Declaration
public const string PublicKeyString = "0024000004800000940000000602000000240000525341310004000001000100BB43BCC9802ACEC3481F0DCB58658C743F1B434F1E9680ECFC47560C62E8C5F2D65653099D9FAFD98B6F911E25D944DE9B84AD5833FE976E0C03C295706DC4A5E77B5E8EA97042BE76BBE2AAE0566BE35940A43CCDCD5FE42FCA7D0DA60013E1D77B8B26FA02F0D803F1E5BD28EA2D8512ADDB28FD90BBB9B81C72B3E93AB2BB"
Field Value
Type | Description |
---|---|
string |
Methods
DemandSuperOfficeSigned(Assembly)
Demand that the assembly is signed by SuperOffice
Declaration
public static void DemandSuperOfficeSigned(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
Assembly | assembly | Assembly to check for signature |
Exceptions
Type | Condition |
---|---|
SoException | Thrown if the assembly is not signed by SuperOffice. |
DemandSuperOfficeSigned(Type)
Demand that the assembly the type resides in is signed by SuperOffice.
Declaration
public static void DemandSuperOfficeSigned(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type to check for signature. |
Exceptions
Type | Condition |
---|---|
SoException | Thrown if the type's assembly is not signed by SuperOffice. |
IsSuperOfficeSigned(Assembly)
Determine if the assembly is signed by SuperOffice.
Declaration
public static bool IsSuperOfficeSigned(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
Assembly | assembly | Assembly to check for signature |
Returns
Type | Description |
---|---|
bool | True if the assembly is signed by SuperOffice. |
IsSuperOfficeSigned(Type)
Check if the type reside in an assembly signed by SuperOffice.
Declaration
public static bool IsSuperOfficeSigned(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type to check for signature. |
Returns
Type | Description |
---|---|
bool | True if the type's assembly is signed by SuperOffice. |