|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.sdk.policyapi.SmIPAddress
public final class SmIPAddress
Specifies the Internet Protocol (IP) address that must be in use for a rule or policy to fire.
| Field Summary | |
|---|---|
static int |
HOSTNAME
Constant to indicate that the type of IP address restriction is a hostname. |
static int |
IPADDRESS
Constant to indicate that the type of IP address restriction is a single host IP address. |
static int |
IPRANGE
Constant to indicate that the type of IP address restriction is a range of IP addresses. |
static int |
SUBNET
Constant to indicate that the type of IP address restriction is a subnet mask. |
static int |
SUBNETBITS
Constant to specify the subnet mask restriction. |
| Constructor Summary | |
|---|---|
SmIPAddress()
Constructs an IP address restriction object. |
|
SmIPAddress(int mode)
Constructs an IP address restriction object with the specified restriction type. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEndIPAddress()
Gets the ending IP address on which a restriction has been placed. |
java.lang.String |
getHostName()
Gets the host name of the machine that must be in use for the rule or policy to fire. |
java.lang.String |
getIPAddress()
Gets the IP address on which the restriction has been placed. |
int |
getIPMode()
Gets the type of IP address restriction. |
int |
getSubnetBits()
Gets the number of bits in the subnet on which the restriction is enforced. |
void |
setEndIPAddress(java.lang.String endAddress)
Sets the ending IP address on which the restriction is to be placed. |
void |
setHostname(java.lang.String hostname)
Specifies the host name of the machine that must be in use for the rule or policy to fire. |
void |
setIPAddress(java.lang.String address)
Sets the IP address on which the restriction is to be placed. |
void |
setIPMode(int mode)
Sets the type of IP address restriction. |
void |
setSubnetBits(int subnetBits)
Specifies the number of bits in the subnet on which the restriction is enforced. |
boolean |
validateIPAddress(java.lang.String address)
Validates the IP address on which the restriction is to be placed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IPADDRESS
public static final int IPRANGE
public static final int SUBNET
public static final int HOSTNAME
public static final int SUBNETBITS
| Constructor Detail |
|---|
public SmIPAddress()
public SmIPAddress(int mode)
throws SmApiException
mode - The type of IP address restriction.
SmApiException| Method Detail |
|---|
public void setIPMode(int mode)
throws SmApiException
mode - The type of IP address restriction.
SmApiException - Occurs when the IP address type is invalid.
SmApiResult will be set to
SmApiResult.POLICY_INVALID_ADDRESS_MODE.public int getIPMode()
public void setIPAddress(java.lang.String address)
throws SmApiException
IPRANGE.
address - The IP address.
SmApiException - Occurs when the IP address is invalid.
SmApiResult will be set to
SmApiResult.POLICY_INVALID_ADDRESS.public java.lang.String getIPAddress()
IPRANGE.
public void setEndIPAddress(java.lang.String endAddress)
throws SmApiException
IPRANGE.
endAddress - The ending IP address.
SmApiException - Occurs when the ending IP address is invalid.
SmApiResult will be set to
SmApiResult.POLICY_INVALID_ADDRESS.public java.lang.String getEndIPAddress()
IPRANGE.
public void setSubnetBits(int subnetBits)
Specifies the number of bits in the subnet on which the restriction is enforced.
The subnet mask value is a number of bits. To arrive at this value, count the bits in the binary value of the address. For example, suppose the subnet mask is255.255.255.128. The binary format is:
11111111 11111111 11111111 10000000
subnetBits - The number of bits in the subnet.public int getSubnetBits()
setSubnetBits()public void setHostname(java.lang.String hostname)
hostname - The host name of the machine.public java.lang.String getHostName()
public boolean validateIPAddress(java.lang.String address)
address - The IP address.
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||