Class PortalSecurity
Inheritance
PortalSecurity
Assembly: DotNetNuke.dll
Syntax
public class PortalSecurity
Constructors
PortalSecurity()
Declaration
Fields
Instance
Declaration
public static readonly PortalSecurity Instance
Field Value
Methods
CheckAllPortalFileExtensionWhitelists(string)
Declaration
public void CheckAllPortalFileExtensionWhitelists(string newMasterList)
Parameters
Type |
Name |
Description |
string |
newMasterList |
|
CreateKey(int)
Declaration
public string CreateKey(int numBytes)
Parameters
Type |
Name |
Description |
int |
numBytes |
|
Returns
Decrypt(string, string)
Declaration
public string Decrypt(string strKey, string strData)
Parameters
Returns
DecryptString(string, string)
Declaration
public string DecryptString(string message, string passphrase)
Parameters
Returns
Encrypt(string, string)
Declaration
public string Encrypt(string key, string data)
Parameters
Returns
EncryptString(string, string)
Declaration
public string EncryptString(string message, string passphrase)
Parameters
Returns
ForceSecureConnection()
Declaration
public static void ForceSecureConnection()
GetCookieDomain(int)
Declaration
public static string GetCookieDomain(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
Declaration
public string InputFilter(string userInput, PortalSecurity.FilterFlag filterType)
Parameters
Returns
IsDenied(UserInfo, PortalSettings, string)
Declaration
public static bool IsDenied(UserInfo objUserInfo, PortalSettings settings, string roles)
Parameters
Returns
IsDenied(string)
Declaration
public static bool IsDenied(string roles)
Parameters
Type |
Name |
Description |
string |
roles |
|
Returns
IsFollower(int)
Declaration
public static bool IsFollower(int userId)
Parameters
Type |
Name |
Description |
int |
userId |
|
Returns
IsFriend(int)
Declaration
public static bool IsFriend(int userId)
Parameters
Type |
Name |
Description |
int |
userId |
|
Returns
IsInRole(string)
Declaration
public static bool IsInRole(string role)
Parameters
Type |
Name |
Description |
string |
role |
|
Returns
IsInRoles(UserInfo, PortalSettings, string)
Declaration
public static bool IsInRoles(UserInfo objUserInfo, PortalSettings settings, string roles)
Parameters
Returns
IsInRoles(string)
Declaration
public static bool IsInRoles(string roles)
Parameters
Type |
Name |
Description |
string |
roles |
|
Returns
IsOwner(int)
Declaration
public static bool IsOwner(int userId)
Parameters
Type |
Name |
Description |
int |
userId |
|
Returns
Remove(string, ConfigType, string, FilterScope)
Declaration
public string Remove(string inputString, PortalSecurity.ConfigType configType, string configSource, PortalSecurity.FilterScope filterScope)
Parameters
Returns
Replace(string, ConfigType, string, FilterScope)
Declaration
public string Replace(string inputString, PortalSecurity.ConfigType configType, string configSource, PortalSecurity.FilterScope filterScope)
Parameters
Returns
SignIn(UserInfo, bool)
Declaration
public void SignIn(UserInfo user, bool createPersistentCookie)
Parameters
Type |
Name |
Description |
UserInfo |
user |
|
bool |
createPersistentCookie |
|
SignOut()
Declaration
Declaration
public bool ValidateInput(string userInput, PortalSecurity.FilterFlag filterType)
Parameters
Returns
Extension Methods