| java.lang.Object |
| ↳ |
sun.security.mule.krb5.internal.HostAddresses |
Class Overview
Implements the ASN.1 HostAddresses type.
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.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
static
boolean
DEBUG
Public Constructors
public
HostAddresses
(DerValue encoding)
Constructs a new HostAddresses object.
Parameters
| encoding
| A single DER-encoded value. |
Throws
| Asn1Exception
| if an error occurs while decoding an
ASN1 encoded data. |
| IOException
| if an I/O error occurs while reading
encoded data.
|
public
HostAddresses
(InetAddress[] inetAddresses)
Creates a new HostAddresses instance from the supplied list
of InetAddresses.
Public Methods
public
byte[]
asn1Encode
()
Encodes a HostAddresses object.
Returns
- byte array of encoded
HostAddresses object.
Throws
| Asn1Exception
| if an error occurs while decoding an
ASN1 encoded data. |
| IOException
| if an I/O error occurs while reading
encoded data.
|
public
boolean
equals
(Object obj)
public
InetAddress[]
getInetAddresses
()
public
static
HostAddresses
getLocalAddresses
()
Returns all the IP addresses of the local host.
public
static
HostAddresses
parse
(DerInputStream data, byte explicitTag, boolean optional)
Parse (unmarshal) a HostAddresses 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.
Parameters
| data
| The Der input stream value, which contains one or more
marshaled value. |
| explicitTag
| Tag number. |
| optional
| Indicates if this data field is optional. |
Returns
- an instance of
HostAddresses.
Writes data field values in HostAddresses in FCC
format to a CCacheOutputStream.
Parameters
| cos
| A CCacheOutputStream to be written to. |
Throws
| IOException
| if an I/O exception occurs. |