Class DomainHelper
This class is an Helper for Domain validation. Usefull to apply rules on domaines rules organisation
Inheritance
System.Object
DomainHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SecureExchangesSDK.Helpers
Assembly: SecureExchangesSDK.dll
Syntax
public static class DomainHelper
Methods
GetEmailDomain(String)
Get the domain of an email
Declaration
public static string GetEmailDomain(string emailAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | emailAddress | email address |
Returns
Type | Description |
---|---|
System.String | the domain of the email |
GetSHADomain(String)
Get the SHA512 of a specific domain
Declaration
public static string GetSHADomain(string domain)
Parameters
Type | Name | Description |
---|---|---|
System.String | domain |
Returns
Type | Description |
---|---|
System.String |
IsDomainPublic(String)
Determine if a domain is seen to be public
Declaration
public static bool IsDomainPublic(string domain)
Parameters
Type | Name | Description |
---|---|---|
System.String | domain |
Returns
Type | Description |
---|---|
System.Boolean |
IsNotReservedDomain(String)
That should be the SecureExchanges reserved domain
Declaration
public static bool IsNotReservedDomain(string domain)
Parameters
Type | Name | Description |
---|---|---|
System.String | domain | domain to validate |
Returns
Type | Description |
---|---|
System.Boolean | True / False |
IsValidDomain(String)
Validate if it's a valid domain
Declaration
public static bool IsValidDomain(string domain)
Parameters
Type | Name | Description |
---|---|---|
System.String | domain | The domain to validate |
Returns
Type | Description |
---|---|
System.Boolean | True / False |