Changing ccn to ndn
Change-Id: Iba4ec8e48dd5345903cc3518aaf98d4d37d89ff1
diff --git a/js/PublisherID.js b/js/PublisherID.js
index fb83879..a757d91 100644
--- a/js/PublisherID.js
+++ b/js/PublisherID.js
@@ -8,19 +8,19 @@
* @constructor
*/
var PublisherType = function PublisherType(tag){
- this.KEY =(CCNProtocolDTags.PublisherPublicKeyDigest);
- this.CERTIFICATE= (CCNProtocolDTags.PublisherCertificateDigest);
- this.ISSUER_KEY= (CCNProtocolDTags.PublisherIssuerKeyDigest);
- this.ISSUER_CERTIFICATE =(CCNProtocolDTags.PublisherIssuerCertificateDigest);
+ this.KEY =(NDNProtocolDTags.PublisherPublicKeyDigest);
+ this.CERTIFICATE= (NDNProtocolDTags.PublisherCertificateDigest);
+ this.ISSUER_KEY= (NDNProtocolDTags.PublisherIssuerKeyDigest);
+ this.ISSUER_CERTIFICATE =(NDNProtocolDTags.PublisherIssuerCertificateDigest);
this.Tag = tag;
};
var isTypeTagVal = function(tagVal) {
- if ((tagVal == CCNProtocolDTags.PublisherPublicKeyDigest) ||
- (tagVal == CCNProtocolDTags.PublisherCertificateDigest) ||
- (tagVal == CCNProtocolDTags.PublisherIssuerKeyDigest) ||
- (tagVal == CCNProtocolDTags.PublisherIssuerCertificateDigest)) {
+ if ((tagVal == NDNProtocolDTags.PublisherPublicKeyDigest) ||
+ (tagVal == NDNProtocolDTags.PublisherCertificateDigest) ||
+ (tagVal == NDNProtocolDTags.PublisherIssuerKeyDigest) ||
+ (tagVal == NDNProtocolDTags.PublisherIssuerCertificateDigest)) {
return true;
}
return false;
@@ -46,7 +46,7 @@
};
-PublisherID.prototype.from_ccnb = function(decoder) {
+PublisherID.prototype.from_ndnb = function(decoder) {
// We have a choice here of one of 4 binary element types.
var nextTag = decoder.peekStartElementAsLong();
@@ -66,7 +66,7 @@
}
};
-PublisherID.prototype.to_ccnb = function(encoder) {
+PublisherID.prototype.to_ndnb = function(encoder) {
if (!this.validate()) {
throw new Error("Cannot encode " + this.getClass().getName() + ": field values missing.");
}