| Modifier and Type | Method and Description |
|---|---|
Interest |
Interest.setChildSelector(int childSelector)
Set the child selector.
|
Interest |
Interest.setExclude(Exclude exclude)
Set this interest to use a copy of the given Exclude object.
|
Interest |
Interest.setInterestLifetimeMilliseconds(double interestLifetimeMilliseconds)
Set the interest lifetime.
|
Interest |
Interest.setKeyLocator(KeyLocator keyLocator)
Set this interest to use a copy of the given KeyLocator object.
|
Interest |
Interest.setLinkWireEncoding(Blob encoding)
Set the link wire encoding bytes, without decoding them.
|
Interest |
Interest.setLinkWireEncoding(Blob encoding,
WireFormat wireFormat)
Set the link wire encoding bytes, without decoding them.
|
Interest |
Interest.setMaxSuffixComponents(int maxSuffixComponents)
Set the max suffix components count.
|
Interest |
Interest.setMinSuffixComponents(int minSuffixComponents)
Set the min suffix components count.
|
Interest |
Interest.setMustBeFresh(boolean mustBeFresh)
Set the MustBeFresh flag.
|
Interest |
Interest.setName(Name name)
Set the interest name.
|
Interest |
Interest.setNonce(Blob nonce)
Deprecated.
You should let the wire encoder generate a random nonce
internally before sending the interest.
|
Interest |
Interest.setSelectedDelegationIndex(int selectedDelegationIndex)
Set the selected delegation index.
|
Interest |
Interest.unsetLink()
Clear the link wire encoding and link object so that getLink() returns null.
|
| Modifier and Type | Method and Description |
|---|---|
long |
Face.expressInterest(Interest interest,
OnData onData)
Send the Interest through the transport, read the entire response and call
onData(interest, data).
|
long |
Face.expressInterest(Interest interest,
OnData onData,
OnTimeout onTimeout)
Send the Interest through the transport, read the entire response and call
onData(interest, data).
|
long |
Face.expressInterest(Interest interest,
OnData onData,
OnTimeout onTimeout,
WireFormat wireFormat)
Send the Interest through the transport, read the entire response and call
onData(interest, data).
|
long |
ThreadPoolFace.expressInterest(Interest interest,
OnData onData,
OnTimeout onTimeout,
WireFormat wireFormat)
Submit a task to the thread pool to send the Interest through the
transport, read the entire response and call onData(interest, data).
|
long |
Face.expressInterest(Interest interest,
OnData onData,
WireFormat wireFormat)
Send the Interest through the transport, read the entire response and call
onData(interest, data).
|
void |
Node.expressInterest(long pendingInterestId,
Interest interest,
OnData onData,
OnTimeout onTimeout,
WireFormat wireFormat,
Face face)
Send the Interest through the transport, read the entire response and call
onData(interest, data).
|
long |
Face.expressInterest(Name name,
Interest interestTemplate,
OnData onData)
Encode name as an Interest.
|
long |
Face.expressInterest(Name name,
Interest interestTemplate,
OnData onData,
OnTimeout onTimeout)
Encode name as an Interest.
|
long |
Face.expressInterest(Name name,
Interest interestTemplate,
OnData onData,
OnTimeout onTimeout,
WireFormat wireFormat)
Encode name as an Interest.
|
long |
Face.expressInterest(Name name,
Interest interestTemplate,
OnData onData,
WireFormat wireFormat)
Encode name as an Interest.
|
void |
Face.makeCommandInterest(Interest interest)
Append a timestamp component and a random value component to interest's
name.
|
void |
Face.makeCommandInterest(Interest interest,
WireFormat wireFormat)
Append a timestamp component and a random value component to interest's
name.
|
void |
OnData.onData(Interest interest,
Data data)
When a matching data packet is received, onData is called.
|
void |
OnInterestCallback.onInterest(Name prefix,
Interest interest,
Face face,
long interestFilterId,
InterestFilter filter)
When an interest is received which matches the interest filter, onInterest
is called.
|
void |
OnInterest.onInterest(Name prefix,
Interest interest,
Transport transport,
long interestFilterId)
When an interest is received which matches the name prefix, onInterest is
called.
|
void |
OnTimeout.onTimeout(Interest interest)
If the interest times out according to the interest lifetime, onTimeout is
called.
|
| Constructor and Description |
|---|
Interest(Interest interest)
Create a new interest as a deep copy of the given interest.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WireFormat.decodeInterest(Interest interest,
ByteBuffer input)
Decode input as an interest and set the fields of the interest object.
|
void |
Tlv0_1_1WireFormat.decodeInterest(Interest interest,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as an interest in NDN-TLV and set the fields of the interest
object.
|
void |
WireFormat.decodeInterest(Interest interest,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as an interest and set the fields of the interest object.
|
Blob |
WireFormat.encodeInterest(Interest interest)
Encode interest and return the encoding.
|
Blob |
Tlv0_1_1WireFormat.encodeInterest(Interest interest,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Encode interest using NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeInterest(Interest interest,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Encode interest and return the encoding.
|
| Modifier and Type | Method and Description |
|---|---|
Interest |
PendingInterestTable.Entry.getInterest()
Get the interest given to the constructor (from Face.expressInterest).
|
| Modifier and Type | Method and Description |
|---|---|
PendingInterestTable.Entry |
PendingInterestTable.add(long pendingInterestId,
Interest interestCopy,
OnData onData,
OnTimeout onTimeout)
Add a new entry to the pending interest table.
|
void |
InterestFilterTable.getMatchedFilters(Interest interest,
ArrayList matchedFilters)
Find all entries from the interest filter table where the interest conforms
to the entry's filter, and add to the matchedFilters list.
|
| Constructor and Description |
|---|
PendingInterestTable.Entry(long pendingInterestId,
Interest interest,
OnData onData,
OnTimeout onTimeout)
Create a new Entry with the given fields.
|
| Modifier and Type | Field and Description |
|---|---|
Interest |
ValidationRequest.interest_ |
| Modifier and Type | Method and Description |
|---|---|
void |
OnVerifiedInterest.onVerifiedInterest(Interest interest)
When verifyInterest succeeds, onVerifiedInterest is called.
|
void |
OnVerifyInterestFailed.onVerifyInterestFailed(Interest interest)
When verifyInterest fails, onVerifyInterestFailed is called.
|
void |
KeyChain.sign(Interest interest)
Append a SignatureInfo to the Interest name, sign the name components with
the default identity and append a final name component with the signature
bits.
|
void |
KeyChain.sign(Interest interest,
Name certificateName)
Append a SignatureInfo to the Interest name, sign the name components and
append a final name component with the signature bits.
|
void |
KeyChain.sign(Interest interest,
Name certificateName,
WireFormat wireFormat)
Append a SignatureInfo to the Interest name, sign the name components and
append a final name component with the signature bits.
|
void |
KeyChain.sign(Interest interest,
WireFormat wireFormat)
Append a SignatureInfo to the Interest name, sign the name components with
the default identity and append a final name component with the signature
bits.
|
void |
KeyChain.signWithSha256(Interest interest)
Append a SignatureInfo for DigestSha256 to the Interest name, digest the
name components and append a final name component with the signature bits
(which is the digest).
|
void |
KeyChain.signWithSha256(Interest interest,
WireFormat wireFormat)
Append a SignatureInfo for DigestSha256 to the Interest name, digest the
name components and append a final name component with the signature bits
(which is the digest).
|
void |
KeyChain.verifyInterest(Interest interest,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed)
Check the signature on the signed interest and call either
onVerify.onVerifiedInterest or onVerifyFailed.onVerifyInterestFailed.
|
void |
KeyChain.verifyInterest(Interest interest,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
int stepCount) |
| Constructor and Description |
|---|
ValidationRequest(Interest interest,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed,
int retry,
int stepCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
IdentityManager.signInterestByCertificate(Interest interest,
Name certificateName,
WireFormat wireFormat)
Append a SignatureInfo to the Interest name, sign the name components and
append a final name component with the signature bits.
|
void |
IdentityManager.signInterestWithSha256(Interest interest,
WireFormat wireFormat)
Append a SignatureInfo for DigestSha256 to the Interest name, digest the
name components and append a final name component with the signature bits
(which is the digest).
|
| Modifier and Type | Method and Description |
|---|---|
ValidationRequest |
PolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed) |
ValidationRequest |
SelfVerifyPolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
WireFormat wireFormat)
Use wireFormat.decodeSignatureInfoAndValue to decode the last two name
components of the signed interest.
|
ValidationRequest |
ConfigPolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
WireFormat wireFormat)
Check whether the received signed interest complies with the verification
policy, and get the indication of the next verification step.
|
ValidationRequest |
NoVerifyPolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
WireFormat wireFormat)
Override to call onVerified.onVerifiedInterest(interest) and to indicate no
further verification step.
|
abstract ValidationRequest |
PolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
WireFormat wireFormat)
Check whether the received signed interest complies with the verification
policy, and get the indication of the next verification step.
|
boolean |
SelfVerifyPolicyManager.requireVerify(Interest interest)
Always return true to use the self-verification rule for the received interest.
|
boolean |
ConfigPolicyManager.requireVerify(Interest interest)
Check if this PolicyManager has a verification rule for the received signed
interest.
|
boolean |
NoVerifyPolicyManager.requireVerify(Interest interest)
Override to return false for no verification rule for the received interest.
|
abstract boolean |
PolicyManager.requireVerify(Interest interest)
Check if this PolicyManager has a verification rule for the received interest.
|
boolean |
SelfVerifyPolicyManager.skipVerifyAndTrust(Interest interest)
Never skip verification.
|
boolean |
ConfigPolicyManager.skipVerifyAndTrust(Interest interest)
Check if the received signed interest can escape from verification and be
trusted as valid.
|
boolean |
NoVerifyPolicyManager.skipVerifyAndTrust(Interest interest)
Override to always skip verification and trust as valid.
|
abstract boolean |
PolicyManager.skipVerifyAndTrust(Interest interest)
Check if the received signed interest can escape from verification and be
trusted as valid.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChronoSync2013.onData(Interest interest,
Data data) |
void |
ChronoSync2013.onInterest(Name prefix,
Interest interest,
Face face,
long interestFilterId,
InterestFilter filter)
Process the sync interest from the applicationBroadcastPrefix.
|
void |
ChronoSync2013.onTimeout(Interest interest) |
| Modifier and Type | Method and Description |
|---|---|
static void |
SegmentFetcher.fetch(Face face,
Interest baseInterest,
SegmentFetcher.VerifySegment verifySegment,
SegmentFetcher.OnComplete onComplete,
SegmentFetcher.OnError onError)
Initiate segment fetching.
|
void |
CommandInterestGenerator.generate(Interest interest,
KeyChain keyChain,
Name certificateName)
Append a timestamp component and a random value component to interest's
name.
|
void |
CommandInterestGenerator.generate(Interest interest,
KeyChain keyChain,
Name certificateName,
WireFormat wireFormat)
Append a timestamp component and a random value component to interest's
name.
|
void |
SegmentFetcher.onData(Interest originalInterest,
Data data) |
void |
MemoryContentCache.onInterest(Name prefix,
Interest interest,
Face face,
long interestFilterId,
InterestFilter filter) |
void |
SegmentFetcher.onTimeout(Interest interest) |
void |
MemoryContentCache.storePendingInterest(Interest interest,
Face face)
Store an interest from an OnInterest callback in the internal pending
interest table (normally because there is no Data packet available yet to
satisfy the interest).
|
Copyright © 2016. All rights reserved.