19 namespace Deveel.Data.Security {
29 public const string AnyAddress =
"%";
42 : this(userName, protocol, AnyAddress, privilege) {
56 if (String.IsNullOrEmpty(userName))
57 throw new ArgumentNullException(
"userName");
58 if (String.IsNullOrEmpty(protocol))
59 throw new ArgumentNullException(
"protocol");
64 Privilege = privilege;
70 public string UserName {
get;
private set; }
75 public string Protocol {
get;
private set; }
80 public string Address {
get;
private set; }
92 public bool IsForAnyAddress {
93 get {
return Address.Equals(AnyAddress); }
UserProtocolAccess(string userName, string protocol, AccessPrivilege privilege)
Constructs a user access control that matches all the addresses for the given protocol.
UserProtocolAccess(string userName, string protocol, string address, AccessPrivilege privilege)
Constructs a user access control that matches the address for the given protocol. ...
Contains the information about the access control to a user from a defined connection protocol to the...
AccessPrivilege
The privilege granted to a user on a given resource.