SasIpRange Class
- java.
lang. Object - com.
azure. storage. common. sas. SasIpRange
- com.
public final class 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
Constructor | Description |
---|---|
SasIpRange() |
Constructs an Sas |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getIpMax()
Gets the maximum IP address of the range. |
String |
getIpMin()
Gets the minimum IP address of the range. |
static
Sas |
parse(String rangeStr)
Creates a |
Sas |
setIpMax(String ipMax)
Sets the maximum IP address of the range. |
Sas |
setIpMin(String ipMin)
Sets the minimum IP address of the range. |
String |
toString()
Output the single IP address or range of IP addresses for. |
Methods inherited from java.lang.Object
Constructor Details
SasIpRange
public SasIpRange()
Constructs an SasIpRange object.
Method Details
getIpMax
public String getIpMax()
Gets the maximum IP address of the range.
Returns:
getIpMin
public String getIpMin()
Gets the minimum IP address of the range.
Returns:
parse
public static SasIpRange parse(String rangeStr)
Creates a SasIpRange
from the specified string.
Parameters:
String
representation of the SasIpRange
.
Returns:
SasIpRange
generated from the String
.setIpMax
public SasIpRange setIpMax(String ipMax)
Sets the maximum IP address of the range.
Parameters:
Returns:
setIpMin
public SasIpRange 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 for.
Overrides:
SasIpRange.toString()Returns:
String
.