|
||||||||||
| 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.shared.kerberos.components.ETypeInfo2
public class ETypeInfo2
Store a list of ETYPE-INFO2. The ASN.1 grammar is :
ETYPE-INFO2 ::= SEQUENCE SIZE (1..MAX) OF ETYPE-INFO2-ENTRY
| Constructor Summary | |
|---|---|
ETypeInfo2()
Creates a new instance of ETypeInfo2. |
|
ETypeInfo2(ETypeInfo2Entry[] etypeInfo2Entries)
Creates a new instance of ETypeInfo2. |
|
| Method Summary | |
|---|---|
void |
addETypeInfo2Entry(ETypeInfo2Entry etypeInfo2Entry)
Adds an ETypeInfo2Entry to the list |
int |
computeLength()
Compute the ETypeInfo2 length |
boolean |
contains(ETypeInfo2Entry etypeInfo2Entry)
Returns true if this ETypeInfo2Entry contains a specified ETypeInfo2Entry. |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ETypeInfo2 message to a PDU. |
boolean |
equals(ETypeInfo2 that)
Returns true if two ETypeInfo2 are equal. |
ETypeInfo2Entry[] |
getETypeInfo2Entries()
Returns the contained ETypeInfo2Entrys as an array. |
int |
hashCode()
|
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, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ETypeInfo2()
public ETypeInfo2(ETypeInfo2Entry[] etypeInfo2Entries)
etypeInfo2Entries - The associated etypeInfo2Entries| Method Detail |
|---|
public void addETypeInfo2Entry(ETypeInfo2Entry etypeInfo2Entry)
ETypeInfo2Entry to the list
etypeInfo2Entry - The ETypeInfo2Entry to addpublic boolean contains(ETypeInfo2Entry etypeInfo2Entry)
ETypeInfo2Entry contains a specified ETypeInfo2Entry.
address - The etypeInfo2Entry we are looking for in the existing list
ETypeInfo2Entry contains a specified ETypeInfo2Entry.public int hashCode()
hashCode in class Objectpublic boolean equals(ETypeInfo2 that)
ETypeInfo2 are equal.
that - The ETypeInfo2 we want to compare with the current one
ETypeInfo2 are equal.public ETypeInfo2Entry[] getETypeInfo2Entries()
ETypeInfo2Entrys as an array.
ETypeInfo2Entrys.public int computeLength()
ETypeInfo2 :
0x30 L1 ETypeInfo2 sequence of ETypeInfo2Entry
|
+--> 0x30 L2[1] ETypeInfo2Entry[1]
|
+--> 0x30 L2[2] ETypeInfo2Entry[2]
|
...
|
+--> 0x30 L2[n] ETypeInfo2Entry[n]
where L1 = sum( L2[1], l2[2], ..., L2[n] )
public ByteBuffer encode(ByteBuffer buffer)
throws org.apache.directory.shared.asn1.EncoderException
ETypeInfo2 : 0x30 LL 0x30 LL ETypeInfo2Entry[1] 0x30 LL ETypeInfo2Entry[1] ... 0x30 LL ETypeInfo2Entry[1]
encode in interface org.apache.directory.shared.asn1.Asn1Objectencode in class org.apache.directory.shared.asn1.AbstractAsn1Objectbuffer - The buffer where to put the PDU. It should have been allocated
before, with the right size.
org.apache.directory.shared.asn1.EncoderExceptionpublic String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||