Package com.azure.storage.common.sas
Class SasIpRange
java.lang.Object
com.azure.storage.common.sas.SasIpRange
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 SasIpRange
Creates aSasIpRange
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 for.
-
Constructor Details
-
SasIpRange
public SasIpRange()Constructs an SasIpRange object.
-
-
Method Details
-
parse
Creates aSasIpRange
from the specified string.- Parameters:
rangeStr
- TheString
representation of theSasIpRange
.- Returns:
- The
SasIpRange
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 SasIpRange 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 SasIpRange object
-
toString
Output the single IP address or range of IP addresses for.
-