public class RemoteAuthenticationRule extends AbstractModel
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 method used by the remote authentication server.
|
Long |
getAuthTimeout()
Get Timeout period of the remote authentication server.
|
String |
getAuthTimeoutAction()
Get Whether to deny or allow the request when the remote authentication server is timed out:
`RETURN_200`: the request is allowed when the remote authentication server is timed out.
|
String[] |
getRulePaths()
Get Content for each `RuleType`:
For `all`, enter a wildcard `*`.
|
String |
getRuleType()
Get Rule types:
`all`: apply to all files
`file`: apply to files with the specified suffixes
`directory`: apply to the specified directories
`path`: apply to the specified absolute paths
Default: `all`.
|
String |
getServer()
Get Remote authentication server
The server configured in `RemoteAutherntication` is used by default.
|
void |
setAuthMethod(String AuthMethod)
Set HTTP method used by the remote authentication server.
|
void |
setAuthTimeout(Long AuthTimeout)
Set Timeout period of the remote authentication server.
|
void |
setAuthTimeoutAction(String AuthTimeoutAction)
Set Whether to deny or allow the request when the remote authentication server is timed out:
`RETURN_200`: the request is allowed when the remote authentication server is timed out.
|
void |
setRulePaths(String[] RulePaths)
Set Content for each `RuleType`:
For `all`, enter a wildcard `*`.
|
void |
setRuleType(String RuleType)
Set Rule types:
`all`: apply to all files
`file`: apply to files with the specified suffixes
`directory`: apply to the specified directories
`path`: apply to the specified absolute paths
Default: `all`.
|
void |
setServer(String Server)
Set Remote authentication server
The server configured in `RemoteAutherntication` is used by default.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public RemoteAuthenticationRule()
public RemoteAuthenticationRule(RemoteAuthenticationRule source)
public String getServer()
public void setServer(String Server)
Server
- Remote authentication server
The server configured in `RemoteAutherntication` is used by default.public String getAuthMethod()
public void setAuthMethod(String AuthMethod)
AuthMethod
- HTTP method used by the remote authentication server. Valid values: `get`, `post`, `head`, and `all`.
`all`: the remote authentication server follows the client request method.
Default: `all`public String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Rule types:
`all`: apply to all files
`file`: apply to files with the specified suffixes
`directory`: apply to the specified directories
`path`: apply to the specified absolute paths
Default: `all`.public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths
- Content for each `RuleType`:
For `all`, enter a wildcard `*`.
For `file`, enter a suffix, e.g., `jpg` or `txt`.
For `directory`, enter a path, e.g., `/xxx/test/`.
For `path`, enter an absolute path, e.g., `/xxx/test.html`.
For `index`, enter a forward slash `/`.
Default: `*`public Long getAuthTimeout()
public void setAuthTimeout(Long AuthTimeout)
AuthTimeout
- Timeout period of the remote authentication server. Unit: ms.
Value range: [1, 30,000]
Default: 20000public String getAuthTimeoutAction()
public void setAuthTimeoutAction(String AuthTimeoutAction)
AuthTimeoutAction
- Whether to deny or allow the request when the remote authentication server is timed out:
`RETURN_200`: the request is allowed when the remote authentication server is timed out.
`RETURN_403`: the request is denied when the remote authentication server is timed out.
Default: `RETURN_200`Copyright © 2023. All rights reserved.