| 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.setLpPacket(LpPacket lpPacket)
An internal library method to set the LpPacket for an incoming packet.
|
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 |
|---|---|
boolean |
Interest.matchesData(Data data)
Check if the given Data packet can satisfy this Interest.
|
boolean |
Interest.matchesData(Data data,
WireFormat wireFormat)
Check if the given Data packet can satisfy this Interest.
|
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 |
Node.putData(Data data,
WireFormat wireFormat)
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.
|
| 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 |
WireFormat.decodeData(Data data,
ByteBuffer input,
boolean copy)
Decode input as a data packet 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 |
Tlv0_2WireFormat.decodeData(Data data,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset,
boolean copy)
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,
boolean copy)
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_2WireFormat.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 |
|---|---|
Data |
AccessManagerV2.addMember(CertificateV2 memberCertificate)
Authorize a member identified by memberCertificate to decrypt data under
the policy.
|
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 |
PendingInterestTable.extractEntriesForExpressedInterest(Data data,
ArrayList<PendingInterestTable.Entry> entries)
Find all entries from the pending interest table where data conforms to
the entry's interest selectors, remove the entries from the table, set each
entry's isRemoved flag, and add to the entries list.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
InMemoryStorageRetaining.find(Interest interest)
Find the best match Data for an Interest.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InMemoryStorageRetaining.insert(Data data)
Insert a Data packet.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
SafeBag.getCertificate()
Get the certificate data packet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OnDataValidationFailed.onDataValidationFailed(Data data,
String reason)
When verifyData fails, onDataValidationFailed is called.
|
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 key of 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,
SigningInfo params)
Wire encode the Data object, sign it according to the supplied signing
parameters, and set its signature.
|
void |
KeyChain.sign(Data data,
SigningInfo params,
WireFormat wireFormat)
Wire encode the Data object, sign it according to the supplied signing
parameters, and set its signature.
|
void |
KeyChain.sign(Data data,
WireFormat wireFormat)
Wire encode the Data object, sign it with the default key of 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,
OnDataValidationFailed onValidationFailed)
Check the signature on the Data object and call either onVerify.onVerify or
onValidationFailed.onDataValidationFailed.
|
void |
KeyChain.verifyData(Data data,
OnVerified onVerified,
OnDataValidationFailed onValidationFailed,
int stepCount) |
void |
KeyChain.verifyData(Data data,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Deprecated.
Use verifyData with OnDataValidationFailed.
|
static boolean |
VerificationHelpers.verifyDataDigest(Data data,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyDataDigest(Data data,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
Blob publicKeyDer)
Verify the Data packet using the public key and digest algorithm SHA256.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the public key.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the public key.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
CertificateV2 certificate)
Verify the Data packet using the public key in the certificate and digest
algorithm SHA256.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the public key in the certificate.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the public key in the certificate.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
PublicKey publicKey)
Verify the Data packet using the public key and digest algorithm SHA256.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the public key.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the public key.
|
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.
|
| Constructor and Description |
|---|
SafeBag(Data certificate,
Blob privateKeyBag)
Create a SafeBag with the given certificate and private key.
|
| 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,
OnDataValidationFailed onValidationFailed)
Look in the IdentityStorage or PibImpl 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,
OnDataValidationFailed onValidationFailed)
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,
OnDataValidationFailed onValidationFailed)
Override to call onVerified.onVerified(data) and to indicate no further
verification step.
|
abstract ValidationRequest |
PolicyManager.checkVerificationPolicy(Data data,
int stepCount,
OnVerified onVerified,
OnDataValidationFailed onValidationFailed)
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 | Class and Description |
|---|---|
class |
CertificateV2
CertificateV2 represents a certificate following the certificate format
naming convention.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
DataValidationState.getOriginalData()
Get the original Data packet being validated which was given to the
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ValidationPolicyFromPib.checkPolicy(Data data,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
void |
ValidationPolicyCommandInterest.checkPolicy(Data data,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
void |
ValidationPolicyConfig.checkPolicy(Data data,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
void |
ValidationPolicySimpleHierarchy.checkPolicy(Data data,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
void |
ValidationPolicyAcceptAll.checkPolicy(Data data,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation) |
abstract void |
ValidationPolicy.checkPolicy(Data data,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation)
Check the Data packet against the policy.
|
void |
DataValidationFailureCallback.failureCallback(Data data,
ValidationError error) |
static Name |
ValidationPolicy.getKeyLocatorName(Data data,
ValidationState state)
Extract the KeyLocator Name from a Data packet.
|
void |
DataValidationSuccessCallback.successCallback(Data data) |
void |
Validator.validate(Data data,
DataValidationSuccessCallback successCallback,
DataValidationFailureCallback failureCallback)
Asynchronously validate the Data packet.
|
| Constructor and Description |
|---|
CertificateV2(Data data)
Create a CertificateV2 from the content in the Data packet.
|
DataValidationState(Data data,
DataValidationSuccessCallback successCallback,
DataValidationFailureCallback failureCallback)
Create a DataValidationState for the Data packet.
|
| 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) |
void |
SegmentFetcher.onDataValidationFailed(Data data,
String reason) |
void |
SegmentFetcher.onVerified(Data data,
Interest originalInterest) |
boolean |
SegmentFetcher.VerifySegment.verifySegment(Data data) |
Copyright © 2019. All rights reserved.