com.cisco.provisioning.cpe.api
Class DUID

java.lang.Object
  extended by com.cisco.provisioning.cpe.api.Key
      extended by com.cisco.provisioning.cpe.api.DeviceID
          extended by com.cisco.provisioning.cpe.api.DUID
All Implemented Interfaces:
Serializable

public final class DUID
extends DeviceID

Creates a new DUID device identifier.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serialization version UID constant for this class
 
Constructor Summary
DUID(String deviceId)
          Use this constructor to create a new DUID device identifier.
 
Method Summary
 boolean equals(Object obj)
          Determines if this DUID object is equal to the specified object.
 KeyType getKeyType()
          Get the Key Type of this object.
 int hashCode()
          The hash code of this object.
 boolean validate()
          Validate the id string for correct format.
 
Methods inherited from class com.cisco.provisioning.cpe.api.DeviceID
getDeviceId, getInstance, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serialization version UID constant for this class

See Also:
Constant Field Values
Constructor Detail

DUID

public DUID(String deviceId)
Use this constructor to create a new DUID device identifier.
Please refer to RFC 3315 for more information about DUID.

This method will throw an APIArgumentException if the specified DUID String identifier is invalid or is specified as null.

Parameters:
deviceId - The string containing the DUID identifer. This value is required and cannot be specified as null. If it is specified as null the runtime exception APIArgumentException will be thrown.
Method Detail

equals

public boolean equals(Object obj)
Determines if this DUID object is equal to the specified object.

Overrides:
equals in class DeviceID
Returns:
true if the specified object is equal to this object. false if the objects are not equal.

getKeyType

public KeyType getKeyType()
Get the Key Type of this object.

Specified by:
getKeyType in class Key
Returns:
the key type of this object.

hashCode

public int hashCode()
The hash code of this object. See Object.hashCode for more information

Overrides:
hashCode in class DeviceID
Returns:
The hascode of this object

validate

public boolean validate()
Validate the id string for correct format.

Specified by:
validate in class DeviceID
Returns:
true if format is valid. false if format is invalid.