|
||||||||||
| 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.ETypeInfo
public class ETypeInfo
Store a list of ETYPE-INFO The ASN.1 grammar is :
ETYPE-INFO ::= SEQUENCE OF
| Constructor Summary | |
|---|---|
ETypeInfo()
Creates a new instance of ETypeInfo. |
|
ETypeInfo(ETypeInfoEntry[] etypeInfoEntries)
Creates a new instance of ETypeInfo. |
|
| Method Summary | |
|---|---|
void |
addETypeInfoEntry(ETypeInfoEntry etypeInfoEntry)
Adds an ETypeInfoEntry to the list |
int |
computeLength()
Compute the ETypeInfo length |
boolean |
contains(ETypeInfoEntry etypeInfoEntry)
Returns true if this ETypeInfoEntry contains a specified ETypeInfoEntry. |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ETypeInfo message to a PDU. |
boolean |
equals(ETypeInfo that)
Returns true if two ETypeInfo are equal. |
ETypeInfoEntry[] |
getETypeInfoEntries()
Returns the contained ETypeInfoEntrys 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 ETypeInfo()
public ETypeInfo(ETypeInfoEntry[] etypeInfoEntries)
etypeInfoEntries - The associated etypeInfoEntries| Method Detail |
|---|
public void addETypeInfoEntry(ETypeInfoEntry etypeInfoEntry)
ETypeInfoEntry to the list
etypeInfoEntry - The ETypeInfoEntry to addpublic boolean contains(ETypeInfoEntry etypeInfoEntry)
ETypeInfoEntry contains a specified ETypeInfoEntry.
address - The etypeInfoEntry we are looking for in the existing list
ETypeInfoEntry contains a specified ETypeInfoEntry.public int hashCode()
hashCode in class Objectpublic boolean equals(ETypeInfo that)
ETypeInfo are equal.
that - The ETypeInfo we want to compare with the current one
ETypeInfo are equal.public ETypeInfoEntry[] getETypeInfoEntries()
ETypeInfoEntrys as an array.
ETypeInfoEntrys.public int computeLength()
ETypeInfo :
0x30 L1 ETypeInfo sequence of ETypeInfoEntry
|
+--> 0x30 L2[1] ETypeInfoEntry[1]
|
+--> 0x30 L2[2] ETypeInfoEntry[2]
|
...
|
+--> 0x30 L2[n] ETypeInfoEntry[n]
where L1 = sum( L2[1], l2[2], ..., L2[n] )
public ByteBuffer encode(ByteBuffer buffer)
throws org.apache.directory.shared.asn1.EncoderException
ETypeInfo : 0x30 LL 0x30 LL ETypeInfoEntry[1] 0x30 LL ETypeInfoEntry[1] ... 0x30 LL ETypeInfoEntry[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 | |||||||||