public class HostAddress extends KrbSequenceType
HostAddress ::= SEQUENCE {
addr-type [0] Int32,
address [1] OCTET STRING
}
| Modifier and Type | Class and Description |
|---|---|
protected static class |
HostAddress.HostAddressField
The HostAddress fields
|
Asn1Type.EncodingType| Constructor and Description |
|---|
HostAddress()
Creates a new (empty) instance of HostAddress
|
HostAddress(InetAddress inetAddress)
Creates a new instance of a HostAddress using an
InetAddress |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
boolean |
equalsWith(InetAddress address)
Compare a given
InetAddress with the current HostAddress |
byte[] |
getAddress() |
HostAddrType |
getAddrType() |
int |
hashCode() |
void |
setAddress(byte[] address)
Sets the address
|
void |
setAddrType(HostAddrType addrType)
Sets the AddressType
|
getFieldAsInt, getFieldAsTime, setField, setFieldAsString, setFieldAsTimecreateCollectiondecodeBody, dumpWith, encodeBody, encodingBodyLength, getFieldAs, getFieldAsAny, getFieldAsInteger, getFieldAsObjId, getFieldAsOctets, getFieldAsString, setAnyFieldValueType, setFieldAs, setFieldAsAny, setFieldAsInt, setFieldAsInt, setFieldAsObjId, setFieldAsOctetsgetValue, setValue, toStringdecode, decode, decode, encode, encode, encodingHeaderLength, encodingLength, getBodyLength, getHeaderLength, isBER, isCER, isDefinitiveLength, isDER, isImplicit, isPrimitive, taggedDecode, taggedDecode, taggedDecode, taggedEncode, taggedEncode, taggedEncodingLength, useBER, useCER, useDefinitiveLength, useDER, useImplicit, usePrimitiveisAppSpecific, isCollection, isContextSpecific, isEOC, isNull, isSimple, isTagSpecific, isUniversal, simpleInfo, tag, tagFlags, tagNopublic HostAddress()
public HostAddress(InetAddress inetAddress)
InetAddressinetAddress - The InetAddress to usepublic HostAddrType getAddrType()
public void setAddrType(HostAddrType addrType)
addrType - The HostAddrType to setpublic byte[] getAddress()
public void setAddress(byte[] address)
address - The address to use, as a byte[]public boolean equalsWith(InetAddress address)
InetAddress with the current HostAddressaddress - The InetAddress we want to compare with the HostAddresspublic boolean equals(Object other)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.