net.named_data.jndn.util
public class CommandInterestGenerator extends Object
| Constructor and Description |
|---|
CommandInterestGenerator()
Create a new CommandInterestGenerator and initialize the timestamp to now.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generate(Interest interest,
KeyChain keyChain,
Name certificateName)
Append a timestamp component and a random value component to interest's
name.
|
void |
generate(Interest interest,
KeyChain keyChain,
Name certificateName,
WireFormat wireFormat)
Append a timestamp component and a random value component to interest's
name.
|
public CommandInterestGenerator()
public void generate(Interest interest, KeyChain keyChain, Name certificateName, WireFormat wireFormat) throws SecurityException
interest - The interest whose name is append with components.keyChain - The KeyChain for calling sign.certificateName - The certificate name of the key to use for signing.wireFormat - A WireFormat object used to encode the SignatureInfo and
to encode interest name for signing.SecurityExceptionpublic void generate(Interest interest, KeyChain keyChain, Name certificateName) throws SecurityException
interest - The interest whose name is append with components.keyChain - The KeyChain for calling sign.certificateName - The certificate name of the key to use for signing.SecurityExceptionCopyright © 2016. All rights reserved.