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