com.starbase.starteam
Class IPRange

java.lang.Object
  |
  +--com.starbase.starteam.IPRange

public class IPRange
extends java.lang.Object

This class represents a range of TCP/IP addresses and the required level of encryption for clients to connect to the StarTeam server.


Constructor Summary
IPRange(IPRange source)
          construct a new IPRange from the source
IPRange(java.lang.String min, java.lang.String max, EncryptionAlgorithm required)
          Creates a new IP range/required encryption level.
 
Method Summary
 IPRange copy()
          return a copy of this IPRange instance
 boolean equals(java.lang.Object source)
          returns true if this object instance is equal to the source
 EncryptionAlgorithm getAlgorithm()
          Returns the minimum required level of encryption for this range.
 java.lang.String getMaxIP()
          Returns the maximum IP address for this range.
 java.lang.String getMinIP()
          Returns the minimum IP address for this range.
 int hashCode()
          returns a unique hash for all instances of this type
 boolean isEqualTo(IPRange source)
          returns true if this object instance is equal to the source
 void setAlgorithm(EncryptionAlgorithm algorithm)
          Sets the minimum required level of encryption for this range.
 void setMaxIP(java.lang.String ip)
          Sets the maximum IP address for this range.
 void setMinIP(java.lang.String ip)
          Sets the minimum IP address for this range.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IPRange

public IPRange(java.lang.String min,
               java.lang.String max,
               EncryptionAlgorithm required)
Creates a new IP range/required encryption level. A client whose IP address falls in the specified range will be required to connect with the specified encryption level. The default catch all range is specified with a min and max IP address of "0.0.0.0".

Parameters:
min - the start of the IP range in the form "0.0.0.0"
max - the end of the IP range in the form "0.0.0.0"
required - the minimum required encrytpion level for the specified range

IPRange

public IPRange(IPRange source)
construct a new IPRange from the source

Parameters:
source - IPRange the IPRange to copy
Method Detail

copy

public IPRange copy()
return a copy of this IPRange instance

Returns:
IPRange a copy of this IPRange instance

getMinIP

public java.lang.String getMinIP()
Returns the minimum IP address for this range. The form will be "0.0.0.0".

Returns:
the minimum IP address for this range. The form will be "0.0.0.0".

setMinIP

public void setMinIP(java.lang.String ip)
Sets the minimum IP address for this range. The range must a string of the form "0.0.0.0"

Parameters:
ip - the IP address for the minimum of this range.

getMaxIP

public java.lang.String getMaxIP()
Returns the maximum IP address for this range. The form will be "0.0.0.0".

Returns:
the maximum IP address for this range. The form will be "0.0.0.0".

setMaxIP

public void setMaxIP(java.lang.String ip)
Sets the maximum IP address for this range. The range must a string of the form "0.0.0.0"

Parameters:
ip - the IP address for the maximum of this range.

getAlgorithm

public EncryptionAlgorithm getAlgorithm()
Returns the minimum required level of encryption for this range.

Returns:
the minimum required level of encryption for this range.

setAlgorithm

public void setAlgorithm(EncryptionAlgorithm algorithm)
Sets the minimum required level of encryption for this range.

Parameters:
algorithm - the minimum required encryption algorithm

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object source)
returns true if this object instance is equal to the source

Overrides:
equals in class java.lang.Object
Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

isEqualTo

public boolean isEqualTo(IPRange source)
returns true if this object instance is equal to the source

Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

hashCode

public int hashCode()
returns a unique hash for all instances of this type

Overrides:
hashCode in class java.lang.Object
Returns:
int a unique hash for all instances of this type


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.