org.apache.directory.server.kerberos.shared.messages.value
Class HostAddress

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.messages.value.HostAddress

public class HostAddress
extends java.lang.Object

Provides host address information.

Version:
$Rev: 556080 $, $Date: 2007-07-13 13:57:32 -0400 (Fri, 13 Jul 2007) $
Author:
Apache Directory Project

Constructor Summary
HostAddress(HostAddressType addressType, byte[] address)
          Creates a new instance of HostAddress.
HostAddress(java.net.InetAddress internetAddress)
          Creates a new instance of HostAddress.
 
Method Summary
 boolean equals(HostAddress that)
          Returns whether one HostAddress is equal to another.
 byte[] getAddress()
          Get the bytes for this address.
 HostAddressType getAddressType()
          Returns the HostAddressType of this HostAddress.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostAddress

public HostAddress(HostAddressType addressType,
                   byte[] address)
Creates a new instance of HostAddress.

Parameters:
addressType -
address -

HostAddress

public HostAddress(java.net.InetAddress internetAddress)
Creates a new instance of HostAddress.

Parameters:
internetAddress -
Method Detail

equals

public boolean equals(HostAddress that)
Returns whether one HostAddress is equal to another.

Parameters:
that -
Returns:
true if the HostAddress's are equal.

getAddress

public byte[] getAddress()
Get the bytes for this address.

Returns:
The bytes of this address.

getAddressType

public HostAddressType getAddressType()
Returns the HostAddressType of this HostAddress.

Returns:
The HostAddressType.

toString

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


Copyright © 2003-2007 The Apache Software Foundation. All Rights Reserved.