SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Constructor Summary | |
KeySequence(length)
Implements a key sequence as described by XEP-0124, section 15. |
Method Summary | |
|
_createNewSeed()
Return a seed to use for generating a new sequence of keys. |
|
_hash(value)
Used to hash the value of each key. |
|
_initKeys(length)
Initialize a list of keys to use for requests. |
String
|
getNextKey()
Get the next key in the sequence, or throw an error if there are none left (since keys are pre-generated). |
|
getSize()
Get the size of the key sequence. |
|
isFirstKey()
Returns true if this is the first key in a new sequence. |
|
isLastKey()
Returns true if this is the last key in the sequence. |
|
reset()
undocumented |
Constructor Detail |
KeySequence(length)
length
Method Detail |
_createNewSeed()
_hash(value)
value
_initKeys(length)
length
String getNextKey()
String
getSize()
isFirstKey()
isLastKey()
reset()