Class RemoteAuthenticationRule

    • Constructor Detail

      • RemoteAuthenticationRule

        public RemoteAuthenticationRule()
      • RemoteAuthenticationRule

        public 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.
    • Method Detail

      • getServer

        public String getServer()
        Get 远程鉴权Server。 默认值:和上层配置的"Server"一致;
        Returns:
        Server 远程鉴权Server。 默认值:和上层配置的"Server"一致;
      • setServer

        public void setServer​(String Server)
        Set 远程鉴权Server。 默认值:和上层配置的"Server"一致;
        Parameters:
        Server - 远程鉴权Server。 默认值:和上层配置的"Server"一致;
      • getAuthMethod

        public String getAuthMethod()
        Get 请求远程鉴权服务器的http方法;取值范围[get,post,head,all]; all: 表示"遵循终端用户请求方法" 默认值: all
        Returns:
        AuthMethod 请求远程鉴权服务器的http方法;取值范围[get,post,head,all]; all: 表示"遵循终端用户请求方法" 默认值: all
      • setAuthMethod

        public void setAuthMethod​(String AuthMethod)
        Set 请求远程鉴权服务器的http方法;取值范围[get,post,head,all]; all: 表示"遵循终端用户请求方法" 默认值: all
        Parameters:
        AuthMethod - 请求远程鉴权服务器的http方法;取值范围[get,post,head,all]; all: 表示"遵循终端用户请求方法" 默认值: all
      • getRuleType

        public String getRuleType()
        Get 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定目录生效 path:指定文件绝对路径生效 默认值:all
        Returns:
        RuleType 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定目录生效 path:指定文件绝对路径生效 默认值:all
      • setRuleType

        public void setRuleType​(String RuleType)
        Set 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定目录生效 path:指定文件绝对路径生效 默认值:all
        Parameters:
        RuleType - 规则类型: all:所有文件生效 file:指定文件后缀生效 directory:指定目录生效 path:指定文件绝对路径生效 默认值:all
      • getRulePaths

        public String[] getRulePaths()
        Get 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:*
        Returns:
        RulePaths 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:*
      • setRulePaths

        public void setRulePaths​(String[] RulePaths)
        Set 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:*
        Parameters:
        RulePaths - 对应类型下的匹配内容: all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:*
      • getAuthTimeout

        public Long getAuthTimeout()
        Get 请求远程鉴权服务器超时时间,单位毫秒; 取值范围:[1,30 000] 默认值:20000
        Returns:
        AuthTimeout 请求远程鉴权服务器超时时间,单位毫秒; 取值范围:[1,30 000] 默认值:20000
      • setAuthTimeout

        public void setAuthTimeout​(Long AuthTimeout)
        Set 请求远程鉴权服务器超时时间,单位毫秒; 取值范围:[1,30 000] 默认值:20000
        Parameters:
        AuthTimeout - 请求远程鉴权服务器超时时间,单位毫秒; 取值范围:[1,30 000] 默认值:20000
      • getAuthTimeoutAction

        public String getAuthTimeoutAction()
        Get 请求远程鉴权服务器超时后执行拦截或者放行; RETURN_200: 超时后放行; RETURN_403:超时拦截; 默认值:RETURN_200
        Returns:
        AuthTimeoutAction 请求远程鉴权服务器超时后执行拦截或者放行; RETURN_200: 超时后放行; RETURN_403:超时拦截; 默认值:RETURN_200
      • setAuthTimeoutAction

        public void setAuthTimeoutAction​(String AuthTimeoutAction)
        Set 请求远程鉴权服务器超时后执行拦截或者放行; RETURN_200: 超时后放行; RETURN_403:超时拦截; 默认值:RETURN_200
        Parameters:
        AuthTimeoutAction - 请求远程鉴权服务器超时后执行拦截或者放行; RETURN_200: 超时后放行; RETURN_403:超时拦截; 默认值:RETURN_200