| Modifier and Type | Method and Description |
|---|---|
Data |
Data.setContent(Blob content) |
Data |
Data.setMetaInfo(MetaInfo metaInfo)
Set metaInfo to a copy of the given MetaInfo.
|
Data |
Data.setName(Name name)
Set name to a copy of the given Name.
|
Data |
Data.setSignature(Signature signature)
Set the signature to a copy of the given signature.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OnData.onData(Interest interest,
Data data)
When a matching data packet is received, onData is called.
|
void |
Face.putData(Data data)
The OnInterestCallback calls this to put a Data packet which satisfies an
Interest.
|
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.
|
| Constructor and Description |
|---|
Data(Data data)
Create a deep copy of the given data object, including a clone of the
signature object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WireFormat.decodeData(Data data,
ByteBuffer input)
Decode input as a data packet and set the fields in the data object.
|
void |
Tlv0_1_1WireFormat.decodeData(Data data,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as a data packet in NDN-TLV and set the fields in the data
object.
|
void |
WireFormat.decodeData(Data data,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as a data packet and set the fields in the data object.
|
void |
BinaryXmlWireFormat.decodeData(Data data,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as a data packet in binary XML and set the fields in the data object.
|
Blob |
WireFormat.encodeData(Data data)
Encode data and return the encoding.
|
Blob |
Tlv0_1_1WireFormat.encodeData(Data data,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Encode data in NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeData(Data data,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Encode data and return the encoding.
|
Blob |
BinaryXmlWireFormat.encodeData(Data data,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Encode data and return the encoding.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OnVerified.onVerified(Data data)
When verifyData succeeds, onVerified is called.
|
void |
OnVerifyFailed.onVerifyFailed(Data data)
When verifyData fails, onVerifyFailed is called.
|
void |
KeyChain.sign(Data data,
Name certificateName)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.sign(Data data,
Name certificateName,
WireFormat wireFormat)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.signByIdentity(Data data)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.signByIdentity(Data data,
Name identityName)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.signByIdentity(Data data,
Name identityName,
WireFormat wireFormat)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.signWithSha256(Data data)
Wire encode the Data object, digest it and set its SignatureInfo to
a DigestSha256.
|
void |
KeyChain.signWithSha256(Data data,
WireFormat wireFormat)
Wire encode the Data object, digest it and set its SignatureInfo to
a DigestSha256.
|
void |
KeyChain.verifyData(Data data,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Check the signature on the Data object and call either onVerify.onVerify or
onVerifyFailed.onVerifyFailed.
|
void |
KeyChain.verifyData(Data data,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed,
int stepCount) |
| Modifier and Type | Class and Description |
|---|---|
class |
Certificate |
class |
IdentityCertificate |
| Modifier and Type | Method and Description |
|---|---|
Data |
IdentityCertificate.setName(Name name)
Override the base class method to check that the name is a valid identity certificate name.
|
| Constructor and Description |
|---|
Certificate(Data data)
Create a Certificate from the content in the data packet.
|
IdentityCertificate(Data data)
Create an IdentityCertificate from the content in the data packet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IdentityManager.signByCertificate(Data data,
Name certificateName)
Sign data packet based on the certificate name.
|
void |
IdentityManager.signByCertificate(Data data,
Name certificateName,
WireFormat wireFormat)
Sign data packet based on the certificate name.
|
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(Data data,
int stepCount,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Use the public key DER in the data packet's KeyLocator (if available) or
look in the IdentityStorage for the public key with the name in the
KeyLocator (if available) and use it to verify the data packet.
|
ValidationRequest |
ConfigPolicyManager.checkVerificationPolicy(Data data,
int stepCount,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Check whether the received data packet complies with the verification policy,
and get the indication of the next verification step.
|
ValidationRequest |
NoVerifyPolicyManager.checkVerificationPolicy(Data data,
int stepCount,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Override to call onVerified.onVerified(data) and to indicate no further
verification step.
|
abstract ValidationRequest |
PolicyManager.checkVerificationPolicy(Data data,
int stepCount,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Check whether the received data packet complies with the verification
policy, and get the indication of the next verification step.
|
boolean |
SelfVerifyPolicyManager.requireVerify(Data data)
Always return true to use the self-verification rule for the received data.
|
boolean |
ConfigPolicyManager.requireVerify(Data data)
Check if this PolicyManager has a verification rule for the received data.
|
boolean |
NoVerifyPolicyManager.requireVerify(Data data)
Override to return false for no verification rule for the received data.
|
abstract boolean |
PolicyManager.requireVerify(Data data)
Check if this PolicyManager has a verification rule for the received data.
|
boolean |
SelfVerifyPolicyManager.skipVerifyAndTrust(Data data)
Never skip verification.
|
boolean |
ConfigPolicyManager.skipVerifyAndTrust(Data data)
Check if the received data packet can escape from verification and be
trusted as valid.
|
boolean |
NoVerifyPolicyManager.skipVerifyAndTrust(Data data)
Override to always skip verification and trust as valid.
|
abstract boolean |
PolicyManager.skipVerifyAndTrust(Data data)
Check if the received data packet can escape from verification and be
trusted as valid.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChronoSync2013.onData(Interest interest,
Data data) |
| Modifier and Type | Method and Description |
|---|---|
void |
MemoryContentCache.add(Data data)
Add the Data packet to the cache so that it is available to use to
answer interests.
|
void |
SegmentFetcher.onData(Interest originalInterest,
Data data) |
boolean |
SegmentFetcher.VerifySegment.verifySegment(Data data) |
Copyright © 2015. All rights reserved.