Methods
getChangeCount() → {number}
Get the change count, which is incremented each time this object is changed.
- Source:
Returns:
The change count.
- Type
- number
getFinalBlockId() → {Name.Component}
Get the final block ID.
- Source:
Returns:
The final block ID as a Name.Component. If the
Name.Component getValue().size() is 0, then the final block ID is not specified.
- Type
- Name.Component
getFinalBlockID()
- Deprecated:
- Use getFinalBlockId.
- Source:
getFinalBlockIDAsBuffer()
- Deprecated:
- Use getFinalBlockId. This method returns a Buffer which is the former behavior of getFinalBlockId, and should only be used while updating your code.
- Source:
getFreshnessPeriod() → {number}
Get the freshness period.
- Source:
Returns:
The freshness period in milliseconds, or null if not
specified.
- Type
- number
getType() → {number}
Get the content type.
- Source:
Returns:
The content type as an int from ContentType.
- Type
- number
setFields()
- Deprecated:
- This sets fields for NDNx signing. Use KeyChain.
- Source:
setFinalBlockID()
- Deprecated:
- Use setFinalBlockId.
- Source:
setFreshnessPeriod(freshnessPeriod)
Set the freshness period.
Parameters:
| Name | Type | Description |
|---|---|---|
freshnessPeriod |
type | The freshness period in milliseconds, or null for not specified. |
- Source:
setType(type)
Set the content type.
Parameters:
| Name | Type | Description |
|---|---|---|
type |
number | The content type as an int from ContentType. If null, this uses ContentType.BLOB. |
- Source:
to_ndnb(encoder, keyLocator)
Encode this MetaInfo in ndnb, using the given keyLocator instead of the
locator in this object.
Parameters:
| Name | Type | Description |
|---|---|---|
encoder |
BinaryXMLEncoder | The encoder. |
keyLocator |
KeyLocator | The key locator to use (from Data.getSignatureOrMetaInfoKeyLocator). |
- Source:
validate()
- Source: