Package com.azure.storage.common.sas
Class SasIpRange
- java.lang.Object
-
- com.azure.storage.common.sas.SasIpRange
-
public final class SasIpRange extends Object
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
Constructors Constructor Description SasIpRange()
Constructs an SasIpRange object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIpMax()
String
getIpMin()
static SasIpRange
parse(String rangeStr)
Creates aSasIpRange
from the specified string.SasIpRange
setIpMax(String ipMax)
Sets the maximum IP address of the range.SasIpRange
setIpMin(String ipMin)
Sets the minimum IP address of the range.String
toString()
Output the single IP address or range of IP addresses for.
-
-
-
Method Detail
-
parse
public static SasIpRange parse(String rangeStr)
Creates aSasIpRange
from the specified string.- Parameters:
rangeStr
- TheString
representation of theSasIpRange
.- Returns:
- The
SasIpRange
generated from theString
.
-
getIpMin
public String getIpMin()
- Returns:
- the minimum IP address of the range
-
setIpMin
public SasIpRange setIpMin(String ipMin)
Sets the minimum IP address of the range.- Parameters:
ipMin
- IP address to set as the minimum- Returns:
- the updated SasIpRange object
-
getIpMax
public String getIpMax()
- Returns:
- the maximum IP address of the range
-
setIpMax
public SasIpRange setIpMax(String ipMax)
Sets the maximum IP address of the range.- Parameters:
ipMax
- IP address to set as the maximum- Returns:
- the updated SasIpRange object
-
-