Modifier and Type | Method and Description |
---|---|
Link |
Link.addDelegation(int preference,
Name name,
WireFormat wireFormat)
Add a new delegation to the list of delegations, sorted by
preference number then by name.
|
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 |
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,
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,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack,
WireFormat wireFormat)
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,
WireFormat wireFormat)
Encode name as an Interest.
|
long |
Face.expressInterest(Name name,
Interest interestTemplate,
OnData onData,
WireFormat wireFormat)
Encode name as an Interest.
|
long |
Face.expressInterest(Name name,
OnData onData,
OnTimeout onTimeout,
OnNetworkNack onNetworkNack,
WireFormat wireFormat)
Encode name as an Interest, using a default interest lifetime.
|
long |
Face.expressInterest(Name name,
OnData onData,
OnTimeout onTimeout,
WireFormat wireFormat)
Encode name as an Interest, using a default interest lifetime.
|
long |
Face.expressInterest(Name name,
OnData onData,
WireFormat wireFormat)
Encode name as an Interest, using a default interest lifetime.
|
Blob |
Interest.getLinkWireEncoding(WireFormat wireFormat)
Get the wire encoding of the link object.
|
void |
Face.makeCommandInterest(Interest interest,
WireFormat wireFormat)
Append a timestamp component and a random value component to interest's
name.
|
void |
Face.putData(Data data,
WireFormat wireFormat)
The OnInterestCallback calls this to put a Data packet which satisfies an
Interest.
|
void |
Node.putData(Data data,
WireFormat wireFormat)
The OnInterestCallback calls this to put a Data packet which
satisfies an Interest.
|
void |
Node.registerPrefix(long registeredPrefixId,
Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
ForwardingFlags flags,
WireFormat wireFormat,
KeyChain commandKeyChain,
Name commandCertificateName,
Face face)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags,
WireFormat wireFormat)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
ForwardingFlags flags,
WireFormat wireFormat)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
ThreadPoolFace.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
ForwardingFlags flags,
WireFormat wireFormat)
Submit a task to the thread pool to register prefix with the connected
forwarder and call onInterest when a matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
WireFormat wireFormat)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
WireFormat wireFormat)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterSuccess onRegisterSuccess,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags,
WireFormat wireFormat)
Deprecated.
Use
registerPrefix(prefix, onInterest, onRegisterFailed, onRegisterSuccess, flags, wireFormat)
where the onRegisterSuccess parameter comes after onRegisterFailed.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterSuccess onRegisterSuccess,
OnRegisterFailed onRegisterFailed,
WireFormat wireFormat)
Deprecated.
Use
registerPrefix(prefix, onInterest, onRegisterFailed, onRegisterSuccess, wireFormat)
where the onRegisterSuccess parameter comes after onRegisterFailed.
|
long |
Face.registerPrefix(Name prefix,
OnInterest onInterest,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags,
WireFormat wireFormat)
Deprecated.
Use registerPrefix where onInterest is an OnInterestCallback
(which is passed this Face for calling putData) instead of the deprecated
OnInterest (which is passed a Transport object).
|
long |
Face.registerPrefix(Name prefix,
OnInterest onInterest,
OnRegisterFailed onRegisterFailed,
WireFormat wireFormat)
Deprecated.
Use registerPrefix where onInterest is an OnInterestCallback
(which is passed this Face for calling putData) instead of the deprecated
OnInterest (which is passed a Transport object).
|
boolean |
Link.removeDelegation(Name name,
WireFormat wireFormat)
Remove every delegation with the given name.
|
Interest |
Interest.setLinkWireEncoding(Blob encoding,
WireFormat wireFormat)
Set the link wire encoding bytes, without decoding them.
|
void |
ControlResponse.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlResponse.
|
void |
ControlParameters.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlParameters.
|
void |
Link.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then populate the list of
delegations from the content.
|
void |
Interest.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Interest.
|
void |
Data.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Data.
|
void |
DelegationSet.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this DelegationSet.
|
void |
Name.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Name.
|
void |
ControlResponse.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlResponse.
|
void |
ControlParameters.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlParameters.
|
void |
Interest.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Interest.
|
void |
Data.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Data.
|
void |
DelegationSet.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
DelegationSet, using addUnsorted() to preserve the given order and
possible duplicates.
|
void |
Name.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Name.
|
Blob |
ControlResponse.wireEncode(WireFormat wireFormat)
Encode this ControlResponse for a particular wire format.
|
Blob |
ControlParameters.wireEncode(WireFormat wireFormat)
Encode this ControlParameters for a particular wire format.
|
SignedBlob |
Interest.wireEncode(WireFormat wireFormat)
Encode this Interest for a particular wire format.
|
SignedBlob |
Data.wireEncode(WireFormat wireFormat)
Encode this Data for a particular wire format.
|
Blob |
DelegationSet.wireEncode(WireFormat wireFormat)
Encode this DelegationSet for a particular wire format.
|
Blob |
Name.wireEncode(WireFormat wireFormat)
Encode this Name for a particular wire format.
|
Modifier and Type | Class and Description |
---|---|
class |
Tlv0_1_1WireFormat
A Tlv0_1_1WireFormat implements the WireFormat interface for encoding and
decoding with the NDN-TLV wire format, version 0.1.1.
|
class |
Tlv0_1WireFormat
A Tlv0_1WireFormat extends Tlv0_1_1WireFormat so that it is an alias in case
any applications use Tlv0_1WireFormat directly.
|
class |
TlvWireFormat
A TlvWireFormat extends WireFormat to override its methods to
implement encoding and decoding using the preferred implementation of
NDN-TLV.
|
Modifier and Type | Method and Description |
---|---|
static WireFormat |
WireFormat.getDefaultWireFormat()
Return the default WireFormat used by default encoding and decoding methods
which was set with setDefaultWireFormat.
|
Modifier and Type | Method and Description |
---|---|
static void |
WireFormat.setDefaultWireFormat(WireFormat wireFormat)
Set the static default WireFormat used by default encoding and decoding
methods.
|
Modifier and Type | Method and Description |
---|---|
void |
EncryptedContent.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
EncryptedContent.
|
void |
EncryptedContent.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
EncryptedContent.
|
Blob |
EncryptedContent.wireEncode(WireFormat wireFormat)
Encode this EncryptedContent to a wire encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
KeyChain.sign(Data data,
Name certificateName,
WireFormat wireFormat)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.sign(Data data,
WireFormat wireFormat)
Wire encode the Data object, sign it with the default identity and set its
signature.
|
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.signByIdentity(Data data,
Name identityName,
WireFormat wireFormat)
Wire encode the Data object, sign it and set its signature.
|
static void |
KeyChain.signWithHmacWithSha256(Data data,
Blob key,
WireFormat wireFormat)
Wire encode the data packet, compute an HmacWithSha256 and update the
signature value.
|
void |
KeyChain.signWithSha256(Data data,
WireFormat wireFormat)
Wire encode the Data object, digest it and set its SignatureInfo to
a DigestSha256.
|
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).
|
static boolean |
KeyChain.verifyDataWithHmacWithSha256(Data data,
Blob key,
WireFormat wireFormat)
Compute a new HmacWithSha256 for the data packet and verify it against the
signature value.
|
Modifier and Type | Method and Description |
---|---|
void |
IdentityCertificate.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then update the public key name.
|
void |
Certificate.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then populate the certificate
fields.
|
Modifier and Type | Method and Description |
---|---|
void |
IdentityManager.signByCertificate(Data data,
Name certificateName,
WireFormat wireFormat)
Sign data packet based on the certificate name.
|
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).
|
void |
IdentityManager.signWithSha256(Data data,
WireFormat wireFormat)
Wire encode the Data object, digest it and set its SignatureInfo to
a DigestSha256.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnInterestCallback onDataNotFound,
ForwardingFlags flags,
WireFormat wireFormat)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
OnInterestCallback onDataNotFound,
ForwardingFlags flags,
WireFormat wireFormat)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
Copyright © 2016. All rights reserved.