HostAddress ::= SEQUENCE {
addr-type [0] Int32,
address [1] OCTET STRING
}
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
Modifier and Type | Field and Description |
---|---|
pack-priv byte[] | |
pack-priv int | |
private static final boolean | |
private volatile int | |
private static InetAddress |
Access | Constructor and Description |
---|---|
private | |
public | |
public | HostAddress(int
the value of the address type which matches the defined
address family constants in the Berkeley Standard
Distributions of Unix. new_addrType, byte[] network address. new_address)Creates a HostAddress from the specified address and address type. |
public | |
public | HostAddress(DerValue
a single DER-encoded value. encoding)Constructs a host address from a single DER-encoded value. |
Modifier and Type | Method and Description |
---|---|
public byte[] | |
public Object | |
public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
private int | |
public InetAddress | Returns: the IP address for this specified host.Gets the InetAddress of this HostAddress. |
private static synchronized InetAddress | |
public int | |
public static HostAddress | Returns: an instance of HostAddress.the Der input stream value, which contains one or more marshaled value. data, byte tag number. explicitTag, boolean indicates if this data field is optional optional)Parses (unmarshal) a host address from a DER input stream. |
public String |
address | back to summary |
---|---|
pack-priv byte[] address |
addrType | back to summary |
---|---|
pack-priv int addrType |
DEBUG | back to summary |
---|---|
private static final boolean DEBUG |
hashCode | back to summary |
---|---|
private volatile int hashCode |
localInetAddress | back to summary |
---|---|
private static InetAddress localInetAddress |
HostAddress | back to summary |
---|---|
private HostAddress(int dummy) |
HostAddress | back to summary |
---|---|
public HostAddress() throws UnknownHostException |
HostAddress | back to summary |
---|---|
public HostAddress(int new_addrType, byte[] new_address) throws KrbApErrException, UnknownHostException Creates a HostAddress from the specified address and address type. Warning called by nativeccache.c.
|
HostAddress | back to summary |
---|---|
public HostAddress(InetAddress inetAddress) |
HostAddress | back to summary |
---|---|
public HostAddress(DerValue encoding) throws Asn1Exception, IOException Constructs a host address from a single DER-encoded value.
|
asn1Encode | back to summary |
---|---|
public byte[] asn1Encode() throws Asn1Exception, IOException Encodes a HostAddress object.
|
clone | back to summary |
---|---|
public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true , but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true , this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
|
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
getAddrType | back to summary |
---|---|
private int getAddrType(InetAddress inetAddress) |
getInetAddress | back to summary |
---|---|
public InetAddress getInetAddress() throws UnknownHostException Gets the InetAddress of this HostAddress.
|
getLocalInetAddress | back to summary |
---|---|
private static synchronized InetAddress getLocalInetAddress() throws UnknownHostException |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
parse | back to summary |
---|---|
public static HostAddress parse(DerInputStream data, byte explicitTag, boolean optional) throws Asn1Exception, IOException Parses (unmarshal) a host address from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |