|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.krb5.internal.HostAddresses
public class HostAddresses
Implements the ASN.1 HostAddresses type.
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
| Constructor Summary | |
|---|---|
HostAddresses()
|
|
HostAddresses(sun.security.util.DerValue encoding)
Constructs a new HostAddresses object. |
|
HostAddresses(HostAddress[] new_addresses)
|
|
HostAddresses(InetAddress[] inetAddresses)
Creates a new HostAddresses instance from the supplied list of InetAddresses. |
|
HostAddresses(PrincipalName serverPrincipal)
|
|
| Method Summary | |
|---|---|
byte[] |
asn1Encode()
Encodes a HostAddresses object. |
Object |
clone()
|
boolean |
equals(Object obj)
|
InetAddress[] |
getInetAddresses()
|
static HostAddresses |
getLocalAddresses()
Returns all the IP addresses of the local host. |
int |
hashCode()
|
boolean |
inList(HostAddress addr)
|
static HostAddresses |
parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
Parse (unmarshal) a HostAddresses from a DER input stream. |
void |
writeAddrs(CCacheOutputStream cos)
Writes data field values in HostAddresses in FCC
format to a CCacheOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HostAddresses(HostAddress[] new_addresses)
throws IOException
IOException
public HostAddresses()
throws UnknownHostException
UnknownHostException
public HostAddresses(PrincipalName serverPrincipal)
throws UnknownHostException,
KrbException
UnknownHostException
KrbException
public HostAddresses(sun.security.util.DerValue encoding)
throws Asn1Exception,
IOException
HostAddresses object.
encoding - a single DER-encoded value.
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)
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic boolean inList(HostAddress addr)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
public byte[] asn1Encode()
throws Asn1Exception,
IOException
HostAddresses object.
HostAddresses object.
Asn1Exception - if an error occurs while decoding an
ASN1 encoded data.
IOException - if an I/O error occurs while reading
encoded data.
public static HostAddresses parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
throws Asn1Exception,
IOException
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.
data - the Der input stream value, which contains one or more
marshaled value.explicitTag - tag number.optional - indicates if this data field is optional.
HostAddresses.
Asn1Exception - if an Asn1Exception occurs.
IOException
public void writeAddrs(CCacheOutputStream cos)
throws IOException
HostAddresses in FCC
format to a CCacheOutputStream.
cos - a CCacheOutputStream to be written to.
IOException - if an I/O exception occurs.CCacheOutputStreampublic InetAddress[] getInetAddresses()
public static HostAddresses getLocalAddresses()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||