public class CommandInterestPreparer extends Object
| Constructor and Description |
|---|
CommandInterestPreparer()
Create a CommandInterestPreparer and initialize the timestamp to now.
|
| Modifier and Type | Method and Description |
|---|---|
void |
prepareCommandInterestName(Interest interest)
Append a timestamp component and a random nonce component to interest's
name.
|
void |
prepareCommandInterestName(Interest interest,
WireFormat wireFormat)
Append a timestamp component and a random nonce component to interest's
name.
|
void |
setNowOffsetMilliseconds_(double nowOffsetMilliseconds)
Set the offset for when prepareCommandInterestName() gets the current time,
which should only be used for testing.
|
public CommandInterestPreparer()
public void prepareCommandInterestName(Interest interest, WireFormat wireFormat)
interest - The interest whose name is append with components.wireFormat - A WireFormat object used to encode the SignatureInfo.public void prepareCommandInterestName(Interest interest)
interest - The interest whose name is append with components.public final void setNowOffsetMilliseconds_(double nowOffsetMilliseconds)
nowOffsetMilliseconds - The offset in milliseconds.Copyright © 2019. All rights reserved.