public class RemoteAuthenticationRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| RemoteAuthenticationRule() | 
| RemoteAuthenticationRule(RemoteAuthenticationRule source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAuthMethod()Get 请求远程鉴权服务器的http方法;取值范围[get,post,head,all]; 
all: 表示"遵循终端用户请求方法"
默认值: all | 
| Long | getAuthTimeout()Get 请求远程鉴权服务器超时时间,单位毫秒;
取值范围:[1,30 000]
默认值:20000 | 
| String | getAuthTimeoutAction()Get 请求远程鉴权服务器超时后执行拦截或者放行;
RETURN_200: 超时后放行;
RETURN_403:超时拦截;
默认值:RETURN_200 | 
| String[] | getRulePaths()Get 对应类型下的匹配内容:
all 时填充 *
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
index 时填充 /
默认值:* | 
| String | getRuleType()Get 规则类型:
all:所有文件生效
file:指定文件后缀生效
directory:指定目录生效
path:指定文件绝对路径生效
默认值:all | 
| String | getServer()Get 远程鉴权Server。
默认值:和上层配置的"Server"一致; | 
| void | setAuthMethod(String AuthMethod)Set 请求远程鉴权服务器的http方法;取值范围[get,post,head,all]; 
all: 表示"遵循终端用户请求方法"
默认值: all | 
| void | setAuthTimeout(Long AuthTimeout)Set 请求远程鉴权服务器超时时间,单位毫秒;
取值范围:[1,30 000]
默认值:20000 | 
| void | setAuthTimeoutAction(String AuthTimeoutAction)Set 请求远程鉴权服务器超时后执行拦截或者放行;
RETURN_200: 超时后放行;
RETURN_403:超时拦截;
默认值:RETURN_200 | 
| void | setRulePaths(String[] RulePaths)Set 对应类型下的匹配内容:
all 时填充 *
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
index 时填充 /
默认值:* | 
| void | setRuleType(String RuleType)Set 规则类型:
all:所有文件生效
file:指定文件后缀生效
directory:指定目录生效
path:指定文件绝对路径生效
默认值:all | 
| void | setServer(String Server)Set 远程鉴权Server。
默认值:和上层配置的"Server"一致; | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic RemoteAuthenticationRule()
public RemoteAuthenticationRule(RemoteAuthenticationRule source)
public String getServer()
public void setServer(String Server)
Server - 远程鉴权Server。
默认值:和上层配置的"Server"一致;public String getAuthMethod()
public void setAuthMethod(String AuthMethod)
AuthMethod - 请求远程鉴权服务器的http方法;取值范围[get,post,head,all]; 
all: 表示"遵循终端用户请求方法"
默认值: allpublic String getRuleType()
public void setRuleType(String RuleType)
RuleType - 规则类型:
all:所有文件生效
file:指定文件后缀生效
directory:指定目录生效
path:指定文件绝对路径生效
默认值:allpublic String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - 对应类型下的匹配内容:
all 时填充 *
file 时填充后缀名,如 jpg、txt
directory 时填充路径,如 /xxx/test
path 时填充绝对路径,如 /xxx/test.html
index 时填充 /
默认值:*public Long getAuthTimeout()
public void setAuthTimeout(Long AuthTimeout)
AuthTimeout - 请求远程鉴权服务器超时时间,单位毫秒;
取值范围:[1,30 000]
默认值:20000public String getAuthTimeoutAction()
public void setAuthTimeoutAction(String AuthTimeoutAction)
AuthTimeoutAction - 请求远程鉴权服务器超时后执行拦截或者放行;
RETURN_200: 超时后放行;
RETURN_403:超时拦截;
默认值:RETURN_200Copyright © 2025. All rights reserved.