public class CommandInterestSigner extends CommandInterestPreparer
| Modifier and Type | Field and Description |
|---|---|
static int |
MINIMUM_SIZE |
static int |
POS_NONCE |
static int |
POS_SIGNATURE_INFO |
static int |
POS_SIGNATURE_VALUE |
static int |
POS_TIMESTAMP |
| Constructor and Description |
|---|
CommandInterestSigner(KeyChain keyChain)
Create a CommandInterestSigner to use the keyChain to sign.
|
| Modifier and Type | Method and Description |
|---|---|
Interest |
makeCommandInterest(Name name)
Call the main makeCommandInterest where the signing params is the default
SigningInfo() and wireFormat is WireFormat.getDefaultWireFormat() .
|
Interest |
makeCommandInterest(Name name,
SigningInfo params)
Call the main makeCommandInterest where wireFormat is
WireFormat.getDefaultWireFormat() .
|
Interest |
makeCommandInterest(Name name,
SigningInfo params,
WireFormat wireFormat)
Append the timestamp and nonce name components to the supplied name, create
an Interest object and signs it with the KeyChain given to the constructor.
|
prepareCommandInterestName, prepareCommandInterestName, setNowOffsetMilliseconds_public static final int POS_SIGNATURE_VALUE
public static final int POS_SIGNATURE_INFO
public static final int POS_NONCE
public static final int POS_TIMESTAMP
public static final int MINIMUM_SIZE
public CommandInterestSigner(KeyChain keyChain)
keyChain - The KeyChain used to sign.public final Interest makeCommandInterest(Name name, SigningInfo params, WireFormat wireFormat) throws PibImpl.Error, KeyChain.Error, TpmBackEnd.Error
name - The Name for the Interest, which is copied.params - The signing parameters.wireFormat - A WireFormat object used to encode the SignatureInfo and
to encode interest name for signing.PibImpl.ErrorKeyChain.ErrorTpmBackEnd.Errorpublic final Interest makeCommandInterest(Name name, SigningInfo params) throws PibImpl.Error, KeyChain.Error, TpmBackEnd.Error
public final Interest makeCommandInterest(Name name) throws PibImpl.Error, KeyChain.Error, TpmBackEnd.Error
Copyright © 2019. All rights reserved.