com.tivoli.pd.jadmin
Class PDPop.IPAuthInfo

java.lang.Object
  extended by com.tivoli.pd.jadmin.PDPop.IPAuthInfo
Enclosing class:
PDPop

public static class PDPop.IPAuthInfo
extends java.lang.Object

Class that represents information associated with the IP authentication policy.

Modes: Local,Remote


Field Summary
static long IPAUTH_LEVEL_FORBIDDEN_ALL_NETWORKS
          String constant representing the FORBIDDEN_ALL_NETWORKS IP authentication level policy.
 
Constructor Summary
PDPop.IPAuthInfo(PDContext context, java.lang.String ipAddr, java.lang.String netmask, long ipAuthLevel, PDMessages messages)
          Constructs a PDAuthLevelInfo object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether this PDPop.IPAuthInfo is equivalent to the input object.
 java.lang.String getIPAddr()
          Returns the IP address in this IPAuthInfo object as a String value.
 long getIPAuthLevel()
          Returns the IP authentication level in this IPAuthInfo object.
 java.lang.String getNetmask()
          Returns the netmask in this IPAuthInfo object as a String value.
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IPAUTH_LEVEL_FORBIDDEN_ALL_NETWORKS

public static final long IPAUTH_LEVEL_FORBIDDEN_ALL_NETWORKS
String constant representing the FORBIDDEN_ALL_NETWORKS IP authentication level policy.

See Also:
Constant Field Values
Constructor Detail

PDPop.IPAuthInfo

public PDPop.IPAuthInfo(PDContext context,
                        java.lang.String ipAddr,
                        java.lang.String netmask,
                        long ipAuthLevel,
                        PDMessages messages)
                 throws PDException
Constructs a PDAuthLevelInfo object.

Parameters:
ipAddr - the IP address (in "%d.%d.%d.%d" format or IPv6 format) associated with the credentials for which access to the protected object that this POP is attached to is being checked. A value of "0.0.0.0" is interpreted as setting this policy for any other network for which this policy is not set explicitly.
netmask - the "%d.%d.%d.%d" or IPv6 format netmask associated with the credentials for which access to the protected object that this POP is attached to is being checked. A value of "0.0.0.0" is interpreted as setting this policy for any other network for which this policy is not set explicitly.
ipAuthLevel - IP authentication level for the POP. Specifies the authentication level of the credentials for the specified IP address and netmask when trying to access the protected object to which this POP is attached. Use PDPOP_IPAUTH_LEVEL_FORBIDDEN_ALL_NETWORKS to forbid access from all networks. Refer to the IBM Security Access Manager for Web Administrator's Guide for more information about IP authentication POP policy.
Throws:
PDException
Method Detail

getIPAddr

public java.lang.String getIPAddr()
Returns the IP address in this IPAuthInfo object as a String value.


getNetmask

public java.lang.String getNetmask()
Returns the netmask in this IPAuthInfo object as a String value.


getIPAuthLevel

public long getIPAuthLevel()
Returns the IP authentication level in this IPAuthInfo object.


toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Determines whether this PDPop.IPAuthInfo is equivalent to the input object. Using the ipaddr and netmask variables from each object, InetAddress objects are created and used in comparison. The same address in IPv4 and IPv6 format would create two InetAddress that are not equal. ipAddr and netmask of zero is a special case. When both ipAddr and netmask are zero, it is the anyothernetwork. In this case, regardless of format, they both indicate the same thing. Therefore, a special case is made to make the two IPAuthInfo equal even if the format is different.

Overrides:
equals in class java.lang.Object