|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkrb5.lib.HostAddress
public class HostAddress
Class Description : Provides the host address information. A modified version of the code obtained from the Open Group Research Institute.
Field Summary | |
---|---|
byte[] |
address
Address |
int |
addrType
Address type |
Constructor Summary | |
---|---|
HostAddress()
Class constructor specifying the default address type to Krb5.ADDRTYPE_INET |
|
HostAddress(java.net.InetAddress inetAddress)
Class constructor specifying the InetAddress |
|
HostAddress(int new_addrType,
byte[] new_address)
Class constructor specifying the address type and the address |
Method Summary | |
---|---|
java.lang.Object |
clone()
This clone a copy of the object |
boolean |
equals(HostAddress h)
Compares host addresses |
static byte[] |
getLocalInetAddress()
Get the local inet address |
static void |
refreshLocalInetAddress()
Refresh the local inet address |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int addrType
public byte[] address
Constructor Detail |
---|
public HostAddress() throws java.net.UnknownHostException
java.net.UnknownHostException
public HostAddress(int new_addrType, byte[] new_address)
new_addrType
- intnew_address
- byte[]public HostAddress(java.net.InetAddress inetAddress)
inetAddress
- InetAddressMethod Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public boolean equals(HostAddress h)
h
- HostAddress
public static void refreshLocalInetAddress() throws java.net.UnknownHostException
java.net.UnknownHostException
public static byte[] getLocalInetAddress() throws java.net.UnknownHostException
java.net.UnknownHostException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |