/// <summary> /// Create a new KeyLocator with default values. /// </summary> /// public KeyLocator() { this.type_ = net.named_data.jndn.KeyLocatorType.NONE; this.keyData_ = new Blob(); this.keyName_ = new ChangeCounter(new Name()); this.changeCount_ = 0; }
/// <summary> /// Create a new KeyLocator with a copy of the fields in keyLocator. /// </summary> /// /// <param name="keyLocator">The KeyLocator to copy.</param> public KeyLocator(KeyLocator keyLocator) { this.type_ = net.named_data.jndn.KeyLocatorType.NONE; this.keyData_ = new Blob(); this.keyName_ = new ChangeCounter(new Name()); this.changeCount_ = 0; type_ = keyLocator.type_; keyData_ = keyLocator.keyData_; keyName_.set(new Name(keyLocator.getKeyName())); }
public void setType(KeyLocatorType type) { type_ = type; ++changeCount_; }
/// <summary> /// Clear fields and reset to default values. /// </summary> /// public void clear() { type_ = net.named_data.jndn.KeyLocatorType.NONE; keyData_ = new Blob(); keyName_.set(new Name()); ++changeCount_; }