Skip navigation links

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

E12907-03


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

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

All Implemented Interfaces:
Serializable

public class NetworkAdapter
extends Object
implements Serializable

Network Adapter type. Represents information about a network card/adapter.

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<core:NetworkAdapter xmlns:core="http://xmlns.oracle.com/irm/core">
    <macAddress>01-23-45-67-89-ab</macAddress>
    <ipAddresses>192.168.0.1</ipAddresses>
    <ipAddresses>192.168.0.2</ipAddresses>
</core:NetworkAdapter>

See Also:
Serialized Form

Constructor Summary
NetworkAdapter()
          No argument constructor.
NetworkAdapter(String macAddress, String[] ipAddresses)
          Constructor.

 

Method Summary
 String[] getIpAddresses()
          IP Address(es).
 String getMacAddress()
          MAC address.
 void setIpAddresses(String[] value)
          IP Address(es).
 void setMacAddress(String value)
          MAC address.

 

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

 

Constructor Detail

NetworkAdapter

public NetworkAdapter()
No argument constructor.

NetworkAdapter

public NetworkAdapter(String macAddress,
                      String[] ipAddresses)
Constructor.

Method Detail

getMacAddress

public String getMacAddress()
MAC address. The media access control address in human readable form. e.g. 01-23-45-67-89-ab

Size

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

setMacAddress

public void setMacAddress(String value)
MAC address. The media access control address in human readable form. e.g. 01-23-45-67-89-ab

Size

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

getIpAddresses

public String[] getIpAddresses()
IP Address(es). The set of IP addresses in human readable form. e.g. 192.168.0.1 or 2001:0db8:0000:0000:0000:0000:1428:57ab in IPv6.
Returns:
the value of the property.

setIpAddresses

public void setIpAddresses(String[] value)
IP Address(es). The set of IP addresses in human readable form. e.g. 192.168.0.1 or 2001:0db8:0000:0000:0000:0000:1428:57ab in IPv6.
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-03


Copyright © 2011, Oracle. All rights reserved.