Пример #1
0
 public bool RefreshHostedNetwork(out string outputs,
                                  HostedNetworkData hostedNetworkData)
 {
     return(Execute("refresh hostednetwork"
                    + ParameterUtil.Required(nameof(hostedNetworkData), hostedNetworkData),
                    out outputs));
 }
Пример #2
0
 public bool DeleteProfile(out string outputs,
                           string @interface)
 {
     return(Execute("delete profile"
                    + ParameterUtil.Required(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #3
0
 public bool ShowFilters(out string outputs,
                         FilterPermission filterPermission)
 {
     return(Execute("show filters"
                    + ParameterUtil.Required(nameof(filterPermission), filterPermission),
                    out outputs));
 }
Пример #4
0
 public bool SetBlockPeriod(out string outputs,
                            int value)
 {
     return(Execute("set blockperiod"
                    + ParameterUtil.Required(nameof(value), value),
                    out outputs));
 }
Пример #5
0
 public bool SetAllowExplicitCreds(out string outputs,
                                   bool allow)
 {
     return(Execute("set allowexplicitcreds"
                    + ParameterUtil.Required(nameof(allow), allow, "yes", "no"),
                    out outputs));
 }
Пример #6
0
 public bool SetCreateAllUserProfile(out string outputs,
                                     bool enabled)
 {
     return(Execute("set createalluserprofile"
                    + ParameterUtil.Required(nameof(enabled), enabled, "yes", "no"),
                    out outputs));
 }
Пример #7
0
 public bool SetBlockedNetworks(out string outputs,
                                bool display)
 {
     return(Execute("set blockednetworks"
                    + ParameterUtil.Required(nameof(display), display, "show", "hide"),
                    out outputs));
 }
Пример #8
0
 public bool SetTracing(out string outputs,
                        TracingMode tracingMode)
 {
     return(Execute("set tracing"
                    + ParameterUtil.Required(nameof(tracingMode), tracingMode),
                    out outputs));
 }
Пример #9
0
 public bool ShowUrlAcl(out string outputs,
                        string url)
 {
     return(Execute("show urlacl"
                    + ParameterUtil.Required(nameof(url), url),
                    out outputs));
 }
Пример #10
0
 public bool ShowSslCert(out string outputs,
                         Port port)
 {
     return(Execute("show sslcert"
                    + ParameterUtil.Required(port.TypeName, port),
                    out outputs));
 }
Пример #11
0
 public bool AddIpListen(out string outputs,
                         string ipaddress)
 {
     return(Execute("add iplisten"
                    + ParameterUtil.Required(nameof(ipaddress), ipaddress),
                    out outputs));
 }
Пример #12
0
 public bool DeleteTimeout(out string outputs,
                           TimeoutType timeouttype)
 {
     return(Execute("delete timeout"
                    + ParameterUtil.Required(nameof(timeouttype), timeouttype),
                    out outputs));
 }
Пример #13
0
 public bool DeleteSetting(out string outputs,
                           SettingType settingtype)
 {
     return(Execute("delete setting"
                    + ParameterUtil.Required(nameof(settingtype), settingtype),
                    out outputs));
 }
Пример #14
0
 public bool SetAutoConfig(out string outputs,
                           bool enabled,
                           string @interface)
 {
     return(Execute("set allowexplicitcreds"
                    + ParameterUtil.Required(nameof(enabled), enabled, "yes", "no")
                    + ParameterUtil.Required(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #15
0
 public bool AddProfile(out string outputs,
                        string filename,
                        string @interface)
 {
     return(Execute("add profile"
                    + ParameterUtil.Required(nameof(filename), filename, true)
                    + ParameterUtil.Required(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #16
0
 public bool ExportProfile(out string outputs,
                           string folder,
                           string @interface = null)
 {
     return(Execute("export profile"
                    + ParameterUtil.Required(nameof(folder), folder, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #17
0
 public bool AddTimeout(out string outputs,
                        TimeoutType timeouttype,
                        ushort value)
 {
     return(Execute("add timeout"
                    + ParameterUtil.Required(nameof(timeouttype), timeouttype)
                    + ParameterUtil.Required(nameof(value), value),
                    out outputs));
 }
Пример #18
0
 public bool AddCacheParam(out string outputs,
                           CacheParamType type,
                           ulong value)
 {
     return(Execute("add cacheparam"
                    + ParameterUtil.Required(nameof(type), type)
                    + ParameterUtil.Required(nameof(value), value),
                    out outputs));
 }
Пример #19
0
 public bool AddSetting(out string outputs,
                        SettingType settingtype,
                        ulong value)
 {
     return(Execute("add setting"
                    + ParameterUtil.Required(nameof(settingtype), settingtype)
                    + ParameterUtil.Required(nameof(value), value),
                    out outputs));
 }
Пример #20
0
 public bool DeleteCache(out string outputs,
                         string url,
                         bool?recursive = null)
 {
     return(Execute("delete cache"
                    + ParameterUtil.Required(nameof(url), url)
                    + ParameterUtil.Optional(nameof(recursive), recursive, "yes", "no"),
                    out outputs));
 }
Пример #21
0
 public bool DeleteProfile(out string outputs,
                           string filename,
                           string @interface = null)
 {
     return(Execute("delete profile"
                    + ParameterUtil.Required(nameof(filename), filename, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #22
0
 public bool SetRandomization(out string outputs,
                              bool enabled,
                              string @interface)
 {
     return(Execute("set randomization"
                    + ParameterUtil.Required(nameof(enabled), enabled, "yes", "no")
                    + ParameterUtil.Required(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #23
0
 public bool SetEapUserData(out string outputs,
                            string filename,
                            bool allusers,
                            string @interface)
 {
     return(Execute("set eapuserdata"
                    + ParameterUtil.Required(nameof(filename), filename, true)
                    + ParameterUtil.Required(nameof(allusers), allusers, "yes", "no")
                    + ParameterUtil.Required(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #24
0
 public bool Connect(out string outputs,
                     string name,
                     string ssid       = null,
                     string @interface = null)
 {
     return(Execute("connect"
                    + ParameterUtil.Required(nameof(name), name, true)
                    + ParameterUtil.Optional(nameof(ssid), ssid, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #25
0
 public bool SetProfileType(out string outputs,
                            string name,
                            ProfileType profiletype,
                            string @interface = null)
 {
     return(Execute("set profiletype"
                    + ParameterUtil.Required(nameof(name), name, true)
                    + ParameterUtil.Required(nameof(profiletype), profiletype)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true),
                    out outputs));
 }
Пример #26
0
 public bool AddProfile(out string outputs,
                        string filename,
                        string @interface       = null,
                        ProfileUser profileUser = null)
 {
     return(Execute("add profile"
                    + ParameterUtil.Required(nameof(filename), filename, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true)
                    + ParameterUtil.Optional(nameof(profileUser), profileUser),
                    out outputs));
 }
Пример #27
0
 public bool SetProfileOrder(out string outputs,
                             string name,
                             string @interface,
                             int priority)
 {
     return(Execute("set profileorder"
                    + ParameterUtil.Required(nameof(name), name, true)
                    + ParameterUtil.Required(nameof(@interface), @interface, true)
                    + ParameterUtil.Required(nameof(priority), priority),
                    out outputs));
 }
Пример #28
0
 public bool AddUrlAcl(out string outputs,
                       string url,
                       string user     = null,
                       bool?listen     = null,
                       bool? @delegate = null,
                       string sddl     = null)
 {
     return(Execute("add urlacl"
                    + ParameterUtil.Required(nameof(url), url)
                    + ParameterUtil.Optional(nameof(user), user)
                    + ParameterUtil.Optional(nameof(listen), listen, "yes", "no")
                    + ParameterUtil.Optional(nameof(@delegate), @delegate, "yes", "no")
                    + ParameterUtil.Optional(nameof(sddl), sddl),
                    out outputs));
 }
Пример #29
0
 public bool AddSslCert(out string outputs,
                        Port port,
                        string appid,
                        string certhash                 = null,
                        string certstorename            = null,
                        bool?verifyclientcertrevocation = null,
                        bool?verifyrevocationwithcachedclientcertonly = null,
                        bool?usagecheck = null,
                        uint?revocationfreshnesstime = null,
                        uint?urlretrievaltimeout     = null,
                        string sslctlidentifier      = null,
                        string sslctlstorename       = null,
                        bool?dsmapperusage           = null,
                        bool?clientcertnegotiation   = null,
                        bool?reject              = null,
                        bool?disablehttp2        = null,
                        bool?disablequic         = null,
                        bool?disabletls13        = null,
                        bool?disableocspstapling = null)
 {
     return(Execute("add sslcert"
                    + ParameterUtil.Required(port.TypeName, port)
                    + ParameterUtil.Required(nameof(appid), appid)
                    + ParameterUtil.Optional(nameof(certhash), certhash)
                    + ParameterUtil.Optional(nameof(certstorename), certstorename)
                    + ParameterUtil.Optional(nameof(verifyclientcertrevocation), verifyclientcertrevocation, "enable", "disable")
                    + ParameterUtil.Optional(nameof(verifyrevocationwithcachedclientcertonly),
                                             verifyrevocationwithcachedclientcertonly,
                                             "enable", "disable")
                    + ParameterUtil.Optional(nameof(usagecheck), usagecheck, "enable", "disable")
                    + ParameterUtil.Optional(nameof(revocationfreshnesstime), revocationfreshnesstime)
                    + ParameterUtil.Optional(nameof(urlretrievaltimeout), urlretrievaltimeout)
                    + ParameterUtil.Optional(nameof(sslctlidentifier), sslctlidentifier)
                    + ParameterUtil.Optional(nameof(sslctlstorename), sslctlstorename)
                    + ParameterUtil.Optional(nameof(dsmapperusage), dsmapperusage, "enable", "disable")
                    + ParameterUtil.Optional(nameof(clientcertnegotiation), clientcertnegotiation, "enable", "disable")
                    + ParameterUtil.Optional(nameof(reject), reject, "enable", "disable")
                    + ParameterUtil.Optional(nameof(disablehttp2), disablehttp2, "enable", "disable")
                    + ParameterUtil.Optional(nameof(disablequic), disablequic, "enable", "disable")
                    + ParameterUtil.Optional(nameof(disabletls13), disabletls13, "enable", "disable")
                    + ParameterUtil.Optional(nameof(disableocspstapling), disableocspstapling, "enable", "disable"),
                    out outputs));
 }
Пример #30
0
 public bool SetProfileParameter(out string outputs,
                                 string name,
                                 string @interface = null,
                                 string SSIDname   = null,
                                 ProfileConnectionType profileConnectionType = null,
                                 bool?autoSwitch = null,
                                 ProfileConnectionMode profileConnectionMode = null,
                                 bool?nonBroadCast = null,
                                 ProfileRandomization profileRandomization   = null,
                                 ProfileAuthentication profileAuthentication = null,
                                 ProfileEncryption profileEncryption         = null,
                                 ProfileKeyType profileKeyType = null,
                                 int?keyIndex                    = null,
                                 string keyMaterial              = null,
                                 bool?PMKCacheMode               = null,
                                 int?PMKCacheSize                = null,
                                 int?PMKCacheTTL                 = null,
                                 bool?preAuthMode                = null,
                                 int?preAuthThrottle             = null,
                                 bool?FIPS                       = null,
                                 bool?useOneX                    = null,
                                 ProfileAuthMode profileAuthMode = null,
                                 ProfileSsoMode profileSsoMode   = null,
                                 int?maxDelay                    = null,
                                 bool?allowDialog                = null,
                                 bool?userVLAN                   = null,
                                 int?heldPeriod                  = null,
                                 int?AuthPeriod                  = null,
                                 int?StartPeriod                 = null,
                                 int?maxStart                    = null,
                                 int?maxAuthFailures             = null,
                                 bool?cacheUserData              = null,
                                 ProfileCost profileCost         = null)
 {
     return(Execute("set profileparameter"
                    + ParameterUtil.Required(nameof(name), name, true)
                    + ParameterUtil.Optional(nameof(@interface), @interface, true)
                    + ParameterUtil.Optional(nameof(SSIDname), SSIDname, true)
                    + ParameterUtil.Optional(nameof(profileConnectionType), profileConnectionType)
                    + ParameterUtil.Optional(nameof(autoSwitch), autoSwitch, "yes", "no")
                    + ParameterUtil.Optional(nameof(profileRandomization), profileRandomization)
                    + ParameterUtil.Optional(nameof(profileAuthentication), profileAuthentication)
                    + ParameterUtil.Optional(nameof(profileEncryption), profileEncryption)
                    + ParameterUtil.Optional(nameof(profileKeyType), profileKeyType)
                    + ParameterUtil.Optional(nameof(keyIndex), keyIndex)
                    + ParameterUtil.Optional(nameof(keyMaterial), keyMaterial, true)
                    + ParameterUtil.Optional(nameof(PMKCacheMode), PMKCacheMode, "yes", "no")
                    + ParameterUtil.Optional(nameof(PMKCacheSize), PMKCacheSize)
                    + ParameterUtil.Optional(nameof(PMKCacheTTL), PMKCacheTTL)
                    + ParameterUtil.Optional(nameof(preAuthMode), preAuthMode, "yes", "no")
                    + ParameterUtil.Optional(nameof(preAuthThrottle), preAuthThrottle)
                    + ParameterUtil.Optional(nameof(FIPS), FIPS, "yes", "no")
                    + ParameterUtil.Optional(nameof(useOneX), useOneX, "yes", "no")
                    + ParameterUtil.Optional(nameof(profileAuthMode), profileAuthMode)
                    + ParameterUtil.Optional(nameof(profileSsoMode), profileSsoMode)
                    + ParameterUtil.Optional(nameof(maxDelay), maxDelay)
                    + ParameterUtil.Optional(nameof(allowDialog), allowDialog, "yes", "no")
                    + ParameterUtil.Optional(nameof(userVLAN), userVLAN, "yes", "no")
                    + ParameterUtil.Optional(nameof(heldPeriod), heldPeriod)
                    + ParameterUtil.Optional(nameof(AuthPeriod), AuthPeriod)
                    + ParameterUtil.Optional(nameof(StartPeriod), StartPeriod)
                    + ParameterUtil.Optional(nameof(maxStart), maxStart)
                    + ParameterUtil.Optional(nameof(maxAuthFailures), maxAuthFailures)
                    + ParameterUtil.Optional(nameof(cacheUserData), cacheUserData, "yes", "no")
                    + ParameterUtil.Optional(nameof(profileCost), profileCost),
                    out outputs));
 }