|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.server.kerberos.shared.messages.value.HostAddresses
public class HostAddresses
Store a list of addresses. The ASN.1 grammar is : -- NOTE: HostAddresses is always used as an OPTIONAL field and -- should not be empty. HostAddresses -- NOTE: subtly different from rfc1510, -- but has a value mapping and encodes the same ::= SEQUENCE OF HostAddress
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
parent |
Constructor Summary | |
---|---|
HostAddresses()
Creates a new instance of HostAddresses. |
|
HostAddresses(HostAddress[] addresses)
Creates a new instance of HostAddresses. |
Method Summary | |
---|---|
void |
addHostAddress(HostAddress hostAddress)
|
int |
computeLength()
Compute the hostAddresses length HostAddresses : 0x30 L1 hostAddresses sequence of HostAddresses | +--> 0x30 L2[1] Hostaddress[1] | +--> 0x30 L2[2] Hostaddress[2] | ... |
boolean |
contains(HostAddress address)
Returns true if this HostAddresses contains a specified HostAddress . |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the HostAddress message to a PDU. |
boolean |
equals(HostAddresses that)
Returns true if two HostAddresses are equal. |
HostAddress[] |
getAddresses()
Returns the contained HostAddress s as an array. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HostAddresses()
public HostAddresses(HostAddress[] addresses)
addresses
- The associated addressesMethod Detail |
---|
public void addHostAddress(HostAddress hostAddress)
public boolean contains(HostAddress address)
HostAddresses
contains a specified HostAddress
.
address
-
HostAddresses
contains a specified HostAddress
.public boolean equals(HostAddresses that)
HostAddresses
are equal.
that
-
HostAddresses
are equal.public HostAddress[] getAddresses()
HostAddress
s as an array.
HostAddress
s.public int computeLength()
computeLength
in interface org.apache.directory.shared.asn1.Asn1Object
computeLength
in class org.apache.directory.shared.asn1.AbstractAsn1Object
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws org.apache.directory.shared.asn1.codec.EncoderException
encode
in interface org.apache.directory.shared.asn1.Asn1Object
encode
in class org.apache.directory.shared.asn1.AbstractAsn1Object
buffer
- The buffer where to put the PDU. It should have been allocated
before, with the right size.
org.apache.directory.shared.asn1.codec.EncoderException
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |