| Modifier and Type | Method and Description |
|---|---|
Interest |
Interest.appendParametersDigestToName()
Append the digest of the application parameters to the Name as a
ParametersSha256DigestComponent.
|
protected static Interest |
Face.getInterestCopy(Name name,
Interest interestTemplate)
Do the work of expressInterest to make an Interest based on name and
interestTemplate.
|
Interest |
Interest.setApplicationParameters(Blob applicationParameters)
Set the application parameters to the given value.
|
Interest |
Interest.setCanBePrefix(boolean canBePrefix)
Set the CanBePrefix flag.
|
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.setForwardingHint(DelegationSet forwardingHint)
Set this interest to use a copy of the given DelegationSet object as the
forwarding hint.
|
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)
Deprecated.
Use setForwardingHint.
|
Interest |
Interest.setLinkWireEncoding(Blob encoding,
WireFormat wireFormat)
Deprecated.
Use setForwardingHint.
|
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.setParameters(Blob applicationParameters)
Deprecated.
Use setApplicationParameters.
|
Interest |
Interest.setSelectedDelegationIndex(int selectedDelegationIndex)
Deprecated.
Use setForwardingHint.
|
Interest |
Interest.unsetLink()
Deprecated.
Use setForwardingHint.
|
| 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 as described below.
|
long |
Face.expressInterest(Interest interest,
OnData onData,
OnTimeout onTimeout)
Send the Interest through the transport, read the entire response and call
onData or onTimeout as described below.
|
long |
Face.expressInterest(Interest interest,
OnData onData,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack)
Send the Interest through the transport, read the entire response and call
onData, onTimeout or onNetworkNack as described below.
|
long |
ThreadPoolFace.expressInterest(Interest interest,
OnData onData,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack,
WireFormat wireFormat)
Override to submit a task to use the thread pool given to the constructor.
|
long |
Face.expressInterest(Interest interest,
OnData onData,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack,
WireFormat wireFormat)
Send the Interest through the transport, read the entire response and call
onData, onTimeout or onNetworkNack as described below.
|
long |
Face.expressInterest(Interest interest,
OnData onData,
OnTimeout onTimeout,
WireFormat wireFormat)
Send the Interest through the transport, read the entire response and call
onData or onTimeout as described below.
|
long |
Face.expressInterest(Interest interest,
OnData onData,
WireFormat wireFormat)
Send the Interest through the transport, read the entire response and call
onData as described below.
|
void |
Node.expressInterest(long pendingInterestId,
Interest interestCopy,
OnData onData,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack,
WireFormat wireFormat,
Face face)
Send the Interest through the transport, read the entire response and call
onData, onTimeout or onNetworkNack as described below.
|
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,
OnNetworkNack onNetworkNack)
Encode name as an Interest.
|
long |
ThreadPoolFace.expressInterest(Name name,
Interest interestTemplate,
OnData onData,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack,
WireFormat wireFormat)
Override to submit a task to use the thread pool given to the constructor.
|
long |
Face.expressInterest(Name name,
Interest interestTemplate,
OnData onData,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack,
WireFormat wireFormat)
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.
|
protected static Interest |
Face.getInterestCopy(Name name,
Interest interestTemplate)
Do the work of expressInterest to make an Interest based on name and
interestTemplate.
|
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 |
OnNetworkNack.onNetworkNack(Interest interest,
NetworkNack networkNack)
When a network Nack packet is received, onNetworkNack is called.
|
void |
OnTimeout.onTimeout(Interest interest)
If the interest times out according to the interest lifetime, onTimeout is
called.
|
void |
Node.putNack(Interest interest,
NetworkNack networkNack)
The OnInterest callback can call this to put a Nack for the received Interest.
|
void |
Face.putNack(Interest interest,
NetworkNack networkNack)
The OnInterest callback can call this to put a Nack for the received Interest.
|
| 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 |
WireFormat.decodeInterest(Interest interest,
ByteBuffer input,
boolean copy)
Decode input as an interest 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.
|
void |
Tlv0_2WireFormat.decodeInterest(Interest interest,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset,
boolean copy)
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,
boolean copy)
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_2WireFormat.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,
OnNetworkNack onNetworkNack)
Add a new entry to the pending interest table.
|
void |
PendingInterestTable.extractEntriesForNackInterest(Interest interest,
ArrayList<PendingInterestTable.Entry> entries)
Find all entries from the pending interest table where the OnNetworkNack
callback is not null and the entry's interest is the same as the given
interest, remove the entries from the table, set each entry's isRemoved
flag, and add to the entries list.
|
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 |
|---|
Entry(long pendingInterestId,
Interest interest,
OnData onData,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack)
Create a new Entry with the given fields.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
InMemoryStorageRetaining.find(Interest interest)
Find the best match Data for an Interest.
|
| Modifier and Type | Field and Description |
|---|---|
Interest |
ValidationRequest.interest_ |
| Modifier and Type | Method and Description |
|---|---|
Interest |
CommandInterestSigner.makeCommandInterest(Name name)
Call the main makeCommandInterest where the signing params is the default
SigningInfo() and wireFormat is WireFormat.getDefaultWireFormat() .
|
Interest |
CommandInterestSigner.makeCommandInterest(Name name,
SigningInfo params)
Call the main makeCommandInterest where wireFormat is
WireFormat.getDefaultWireFormat() .
|
Interest |
CommandInterestSigner.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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OnInterestValidationFailed.onInterestValidationFailed(Interest interest,
String reason)
When verifyInterest fails, onInterestValidationFailed is called.
|
void |
OnVerifiedInterest.onVerifiedInterest(Interest interest)
When verifyInterest succeeds, onVerifiedInterest is called.
|
void |
OnVerifyInterestFailed.onVerifyInterestFailed(Interest interest)
When verifyInterest fails, onVerifyInterestFailed is called.
|
void |
CommandInterestPreparer.prepareCommandInterestName(Interest interest)
Append a timestamp component and a random nonce component to interest's
name.
|
void |
CommandInterestPreparer.prepareCommandInterestName(Interest interest,
WireFormat wireFormat)
Append a timestamp component and a random nonce component to interest's
name.
|
void |
KeyChain.sign(Interest interest)
Sign the Interest with the default key of the default identity.
|
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,
SigningInfo params)
Sign the Interest according to the supplied signing parameters.
|
void |
KeyChain.sign(Interest interest,
SigningInfo params,
WireFormat wireFormat)
Sign the Interest according to the supplied signing parameters.
|
void |
KeyChain.sign(Interest interest,
WireFormat wireFormat)
Sign the Interest with the default key of the default identity.
|
static void |
KeyChain.signWithHmacWithSha256(Interest interest,
Blob key,
Name keyName)
Append a SignatureInfo to the Interest name, compute an HmacWithSha256
signature for the name components and append a final name component with
the signature bits.
|
static void |
KeyChain.signWithHmacWithSha256(Interest interest,
Blob key,
Name keyName,
WireFormat wireFormat)
Append a SignatureInfo to the Interest name, compute an HmacWithSha256
signature for the name components 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,
OnInterestValidationFailed onValidationFailed)
Check the signature on the signed interest and call either
onVerify.onVerifiedInterest or
onValidationFailed.onInterestValidationFailed.
|
void |
KeyChain.verifyInterest(Interest interest,
OnVerifiedInterest onVerified,
OnInterestValidationFailed onValidationFailed,
int stepCount) |
void |
KeyChain.verifyInterest(Interest interest,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed)
Deprecated.
Use verifyInterest with OnInterestValidationFailed.
|
static boolean |
VerificationHelpers.verifyInterestDigest(Interest interest,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the digest algorithm, where the last two
name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestDigest(Interest interest,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the digest algorithm, where the last two
name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
Blob publicKeyDer)
Verify the Interest packet using the public key and digest algorithm SHA256,
where the last two name components are the SignatureInfo and signature
bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
CertificateV2 certificate)
Verify the Interest packet using the public key and digest algorithm SHA256
in the certificate, where the last two name components are the
SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the public key in the certificate, where
the last two name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the public key in the certificate, where
the last two name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
PublicKey publicKey)
Verify the Interest packet using the public key and digest algorithm SHA256,
where the last two name components are the SignatureInfo and signature
bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
KeyChain.verifyInterestWithHmacWithSha256(Interest interest,
Blob key)
Compute a new HmacWithSha256 for all but the final name component and
verify it against the signature value in the final name component.
|
static boolean |
KeyChain.verifyInterestWithHmacWithSha256(Interest interest,
Blob key,
WireFormat wireFormat)
Compute a new HmacWithSha256 for all but the final name component and
verify it against the signature value in the final name component.
|
| Constructor and Description |
|---|
ValidationRequest(Interest interest,
OnVerified onVerified,
OnDataValidationFailed onValidationFailed,
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,
OnInterestValidationFailed onValidationFailed) |
ValidationRequest |
SelfVerifyPolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnInterestValidationFailed onValidationFailed,
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,
OnInterestValidationFailed onValidationFailed,
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,
OnInterestValidationFailed onValidationFailed,
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,
OnInterestValidationFailed onValidationFailed,
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 | Field and Description |
|---|---|
Interest |
CertificateRequest.interest_
The Interest for the requested Data packet or Certificate.
|
| Modifier and Type | Method and Description |
|---|---|
Interest |
InterestValidationState.getOriginalInterest()
Get the original Interest packet being validated which was given to the
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ValidationPolicyFromPib.checkPolicy(Interest interest,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
void |
ValidationPolicyCommandInterest.checkPolicy(Interest interest,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
void |
ValidationPolicyConfig.checkPolicy(Interest interest,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
void |
ValidationPolicySimpleHierarchy.checkPolicy(Interest interest,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
void |
ValidationPolicyAcceptAll.checkPolicy(Interest interest,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
abstract void |
ValidationPolicy.checkPolicy(Interest interest,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation)
Check the Interest against the policy.
|
void |
InterestValidationFailureCallback.failureCallback(Interest interest,
ValidationError error) |
CertificateV2 |
TrustAnchorContainer.find(Interest interest)
Find a certificate for the given interest.
|
CertificateV2 |
CertificateCacheV2.find(Interest interest)
Find the certificate by the given interest.
|
CertificateV2 |
CertificateStorage.findTrustedCertificate(Interest interestForCertificate)
Find a trusted certificate in the trust anchor container or in the
verified cache.
|
static Name |
ValidationPolicy.getKeyLocatorName(Interest interest,
ValidationState state)
Extract the KeyLocator Name from a signed Interest.
|
void |
InterestValidationSuccessCallback.successCallback(Interest interest) |
void |
Validator.validate(Interest interest,
InterestValidationSuccessCallback successCallback,
InterestValidationFailureCallback failureCallback)
Asynchronously validate the Interest.
|
| Constructor and Description |
|---|
CertificateRequest(Interest interest)
Create a CertificateRequest for the Interest and 3 retries left.
|
InterestValidationState(Interest interest,
InterestValidationSuccessCallback successCallback,
InterestValidationFailureCallback failureCallback)
Create an InterestValidationState for the Data packet.
|
| 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,
KeyChain validatorKeyChain,
SegmentFetcher.OnComplete onComplete,
SegmentFetcher.OnError onError)
Initiate segment fetching.
|
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 |
ExponentialReExpress.onTimeout(Interest interest) |
void |
SegmentFetcher.onTimeout(Interest interest) |
void |
SegmentFetcher.onVerified(Data data,
Interest originalInterest) |
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 © 2019. All rights reserved.