你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TableSasIpRange Class
- java.
lang. Object - com.
azure. data. tables. sas. TableSasIpRange
- com.
public final class TableSasIpRange
This type specifies a continuous range of IP addresses. It is used to limit permissions on SAS tokens. Null may be set if it is not desired to confine the sas permissions to an IP range.
Constructor Summary
Constructor | Description |
---|---|
TableSasIpRange() |
Creates an instance of TableSasIpRange. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getIpMax()
Returns the maximum IP address of the range. |
String |
getIpMin()
Returns the minimum IP address of the range. |
static
Table |
parse(String rangeStr)
Creates a TableSasIpRange from the specified string. |
Table |
setIpMax(String ipMax)
Sets the maximum IP address of the range. |
Table |
setIpMin(String ipMin)
Sets the minimum IP address of the range. |
String |
toString()
Output the single IP address or range of IP addresses formatted as a |
Methods inherited from java.lang.Object
Constructor Details
TableSasIpRange
public TableSasIpRange()
Creates an instance of TableSasIpRange.
Method Details
getIpMax
public String getIpMax()
Returns the maximum IP address of the range.
Returns:
getIpMin
public String getIpMin()
Returns the minimum IP address of the range.
Returns:
parse
public static TableSasIpRange parse(String rangeStr)
Creates a TableSasIpRange from the specified string.
Parameters:
Returns:
String
.setIpMax
public TableSasIpRange setIpMax(String ipMax)
Sets the maximum IP address of the range.
Parameters:
Returns:
setIpMin
public TableSasIpRange setIpMin(String ipMin)
Sets the minimum IP address of the range.
Parameters:
Returns:
toString
public String toString()
Output the single IP address or range of IP addresses formatted as a String
. If minIpRange
is set to null
, an empty string is returned from this method. Otherwise, if maxIpRange
is set to null
, then this method returns the value of minIpRange
.
Overrides:
TableSasIpRange.toString()Returns:
String
.