Modifier and Type | Class and Description |
---|---|
class |
Link
The Link class extends Data and represents a Link instance where the Data
content is an encoded delegation set.
|
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.
|
Link(Data data)
Create a Link, copying values from the other Data object.
|
Modifier and Type | Method and Description |
---|---|
Data |
SignatureHolder.setSignature(Signature Signature) |
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
abstract Data |
GroupManager.FriendAccess.createDKeyData(GroupManager groupManager,
String startTimeStamp,
String endTimeStamp,
Name keyName,
Blob privateKeyBlob,
Blob certificateKey) |
abstract Data |
GroupManager.FriendAccess.createEKeyData(GroupManager groupManager,
String startTimeStamp,
String endTimeStamp,
Blob publicKeyBlob) |
Modifier and Type | Method and Description |
---|---|
void |
GroupManager.addMember(String scheduleName,
Data memberCertificate)
Add a new member with the given memberCertificate into a schedule named
scheduleName.
|
void |
Consumer.OnConsumeComplete.onConsumeComplete(Data data,
Blob result) |
void |
Producer.produce(Data data,
double timeSlot,
Blob content)
Call the main produce method where onError is defaultOnError.
|
void |
Producer.produce(Data data,
double timeSlot,
Blob content,
EncryptError.OnError onError)
Encrypt the given content with the content key that covers timeSlot, and
update the data packet with the encrypted content and an appropriate data
name.
|
Modifier and Type | Method and Description |
---|---|
static void |
Encryptor.encryptData(Data data,
Blob payload,
Name keyName,
Blob key,
EncryptParams params)
Prepare an encrypted data packet by encrypting the payload using the key
according to the params.
|
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)
Wire encode the Data object, sign it with the default identity and set its
signature.
|
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.sign(Data data,
WireFormat wireFormat)
Wire encode the Data object, sign it with the default identity 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.
|
static void |
KeyChain.signWithHmacWithSha256(Data data,
Blob key)
Wire encode the data packet, compute an HmacWithSha256 and update the
signature value.
|
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)
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) |
static boolean |
KeyChain.verifyDataWithHmacWithSha256(Data data,
Blob key)
Compute a new HmacWithSha256 for the data packet and verify it against the
signature value.
|
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 | 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)
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 © 2016. All rights reserved.