Package com.azure.data.tables.sas
Class TableSasIpRange
java.lang.Object
com.azure.data.tables.sas.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
-
Method Summary
Modifier and TypeMethodDescriptiongetIpMax()
getIpMin()
static TableSasIpRange
Creates aTableSasIpRange
from the specified string.Sets the maximum IP address of the range.Sets the minimum IP address of the range.toString()
Output the single IP address or range of IP addresses formatted as aString
.
-
Constructor Details
-
TableSasIpRange
public TableSasIpRange()
-
-
Method Details
-
parse
Creates aTableSasIpRange
from the specified string.- Parameters:
rangeStr
- TheString
representation of theTableSasIpRange
.- Returns:
- The
TableSasIpRange
generated from theString
.
-
getIpMin
- Returns:
- The minimum IP address of the range.
-
setIpMin
Sets the minimum IP address of the range.- Parameters:
ipMin
- IP address to set as the minimum.- Returns:
- The updated
TableSasIpRange
object.
-
getIpMax
- Returns:
- The maximum IP address of the range.
-
setIpMax
Sets the maximum IP address of the range.- Parameters:
ipMax
- IP address to set as the maximum.- Returns:
- The updated
TableSasIpRange
object.
-
toString
Output the single IP address or range of IP addresses formatted as aString
. IfminIpRange
is set tonull
, an empty string is returned from this method. Otherwise, ifmaxIpRange
is set tonull
, then this method returns the value ofminIpRange
.
-