|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.krb5.internal.HostAddress
public class HostAddress
Implements the ASN.1 HostAddress type.
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
| Constructor Summary | |
|---|---|
HostAddress()
|
|
HostAddress(sun.security.util.DerValue encoding)
Constructs a host address from a single DER-encoded value. |
|
HostAddress(InetAddress inetAddress)
|
|
HostAddress(int new_addrType,
byte[] new_address)
Creates a HostAddress from the specified address and address type. |
|
| Method Summary | |
|---|---|
byte[] |
asn1Encode()
Encodes a HostAddress object. |
Object |
clone()
|
boolean |
equals(Object obj)
|
InetAddress |
getInetAddress()
Gets the InetAddress of this HostAddress. |
int |
hashCode()
|
static HostAddress |
parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
Parses (unmarshal) a host address from a DER input stream. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HostAddress()
throws UnknownHostException
UnknownHostException
public HostAddress(int new_addrType,
byte[] new_address)
throws KrbApErrException,
UnknownHostException
new_addrType - the value of the address type which matches the defined
address family constants in the Berkeley Standard
Distributions of Unix.new_address - network address.
KrbApErrException - if address type and address length do not match defined value.
UnknownHostExceptionpublic HostAddress(InetAddress inetAddress)
public HostAddress(sun.security.util.DerValue encoding)
throws Asn1Exception,
IOException
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.| Method Detail |
|---|
public Object clone()
clone in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
public InetAddress getInetAddress()
throws UnknownHostException
if - no IP address for the host could be found.
UnknownHostException
public byte[] asn1Encode()
throws Asn1Exception,
IOException
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
public static HostAddress parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
throws Asn1Exception,
IOException
data - the Der input stream value, which contains one or more marshaled value.explicitTag - tag number.optional - indicates if this data field is optional
Asn1Exception - on error.
IOException - if an I/O error occurs while reading encoded data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||