HostAddresses -- NOTE: subtly different from rfc1510,
-- but has a value mapping and encodes the same
::= SEQUENCE OF HostAddress
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 |
|---|---|
| private HostAddress[] | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private | |
| public | |
| public | |
| public | HostAddresses(InetAddress[] inetAddresses)
Creates a new HostAddresses instance from the supplied list of InetAddresses. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public Object | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public InetAddress[] | |
| public static HostAddresses | |
| public int | |
| public boolean | |
| public static HostAddresses | Returns: an instance ofHostAddresses.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)Parse (unmarshal) a |
| public String | |
| public void | writeAddrs(CCacheOutputStream
a cos)CCacheOutputStream to be written to.Writes data field values in |
| addresses | back to summary |
|---|---|
| private HostAddress[] addresses | |
| hashCode | back to summary |
|---|---|
| private volatile int hashCode | |
| HostAddresses | back to summary |
|---|---|
| public HostAddresses(HostAddress[] new_addresses) throws IOException | |
| HostAddresses | back to summary |
|---|---|
| public HostAddresses() throws UnknownHostException | |
| HostAddresses | back to summary |
|---|---|
| private HostAddresses(int dummy) | |
| HostAddresses | back to summary |
|---|---|
| public HostAddresses(PrincipalName serverPrincipal) throws UnknownHostException, KrbException | |
| HostAddresses | back to summary |
|---|---|
| public HostAddresses(DerValue encoding) throws Asn1Exception, IOException Constructs a new
| |
| HostAddresses | back to summary |
|---|---|
| public HostAddresses(InetAddress[] inetAddresses) Creates a new HostAddresses instance from the supplied list of InetAddresses. | |
| asn1Encode | back to summary |
|---|---|
| public byte[] asn1Encode() throws Asn1Exception, IOException Encodes a
| |
| 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.
| |
| getInetAddresses | back to summary |
|---|---|
| public InetAddress[] getInetAddresses() | |
| getLocalAddresses | back to summary |
|---|---|
| public static HostAddresses getLocalAddresses() throws IOException Returns all the IP addresses of the local host. | |
| 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
| |
| inList | back to summary |
|---|---|
| public boolean inList(HostAddress addr) | |
| parse | back to summary |
|---|---|
| public static HostAddresses parse(DerInputStream data, byte explicitTag, boolean optional) throws Asn1Exception, IOException Parse (unmarshal) a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| writeAddrs | back to summary |
|---|---|
| public void writeAddrs(CCacheOutputStream cos) throws IOException Writes data field values in
| |