Skip navigation links

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

E12907-03


oracle.irm.engine.core.device
Interface NetworkAdapter


public interface NetworkAdapter

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

Creation

Instances of Network Adapter objects can be created using the following factory style method(s).

NetworkAdapter object = createNetworkAdapter(
    macAddress,
    ipAddresses);

Collections

Collections for NetworkAdapter objects can be created using the following factory method. This method creates the most appropriate collection implementation class for storing NetworkAdapter elements.

 Collection<NetworkAdapter> object = createNetworkAdapters();

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>


Method Summary
 String[] getIpAddresses()
          IP Address(es).
 String getMacAddress()
          MAC address.

 

Method Detail

getMacAddress

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. This method will never return null.

getIpAddresses

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.

State

The array returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. This method will never return null.

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.