Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-02


oracle.irm.engine.types.core.device
Class Device

java.lang.Object
  extended by oracle.irm.engine.types.core.device.Device

All Implemented Interfaces:
Serializable

public class Device
extends Object
implements Serializable

Device type. A device represents a physical device, such as a desktop computer, mobile phone or laptop. When a License is delivered to a device is is said to be served to that device. Depending on the type of license, a record of the device is made when the license is served. This information is used to prevent password sharing by stopping a license being served to multiple devices. The properties of a device are provided to help track where licenses have been served. These properties include the device host Name and a list of device network Adapters.

XML Serialization

Device instances can be serialized as an XML document. This XML document can also be used to recreate a Device object. The following XML document shows an example Device in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<core:Device xmlns:core="http://xmlns.oracle.com/irm/core">
    <uuid>a7352732-dcd0-43af-93c5-0cbc7c1f203d</uuid>
    <name>device1</name>
    <adapters>
        <macAddress>01-23-45-67-89-ab</macAddress>
        <ipAddresses>192.168.0.1</ipAddresses>
        <ipAddresses>192.168.0.2</ipAddresses>
    </adapters>
</core:Device>

See Also:
Serialized Form

Constructor Summary
Device()
          No argument constructor.
Device(UUID uuid, String name, NetworkAdapter[] adapters)
          Constructor.

 

Method Summary
 NetworkAdapter[] getAdapters()
          The network adapters of the device.
 String getName()
          The name of the device.
 UUID getUuid()
          The globally unique device UUID.
 void setAdapters(NetworkAdapter[] value)
          The network adapters of the device.
 void setName(String value)
          The name of the device.
 void setUuid(UUID value)
          The globally unique device UUID.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Device

public Device()
No argument constructor.

Device

public Device(UUID uuid,
              String name,
              NetworkAdapter[] adapters)
Constructor.

Method Detail

getUuid

public UUID getUuid()
The globally unique device UUID. The device UUID is used to logically identify a place that can stores licenses. This may be a one to one mapping with a physical device (if it has one place to store licenses) or could be a per device, per account UUID (if the device is used by multiple accounts and licenses are stored in separate locations).
Returns:
the value of the property.

setUuid

public void setUuid(UUID value)
The globally unique device UUID. The device UUID is used to logically identify a place that can stores licenses. This may be a one to one mapping with a physical device (if it has one place to store licenses) or could be a per device, per account UUID (if the device is used by multiple accounts and licenses are stored in separate locations).
Parameters:
value - the new value for the property.

getName

public String getName()
The name of the device. This information can change over the life time of a device. This is typically the host name of the device.

Size

This property is limited to 255 characters in length.
Returns:
the value of the property.

setName

public void setName(String value)
The name of the device. This information can change over the life time of a device. This is typically the host name of the device.

Size

This property is limited to 255 characters in length.
Parameters:
value - the new value for the property.

getAdapters

public NetworkAdapter[] getAdapters()
The network adapters of the device. This list typically contains a list of network adapters available to the device. It does not indicate which adapter was used to communicate to the server, rather a list of all adapters that the device can use. This information is provided with the aim of helping identify the physical device.
Returns:
the value of the property.

setAdapters

public void setAdapters(NetworkAdapter[] value)
The network adapters of the device. This list typically contains a list of network adapters available to the device. It does not indicate which adapter was used to communicate to the server, rather a list of all adapters that the device can use. This information is provided with the aim of helping identify the physical device.
Parameters:
value - the new value for the property.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-02


Copyright © 2010, Oracle. All rights reserved.