Modifier and Type | Method and Description |
---|---|
static Blob |
Name.fromEscapedString(String escapedString)
Make a Blob value by decoding the escapedString according to the NDN URI
Scheme.
|
static Blob |
Name.fromEscapedString(String escapedString,
int beginOffset,
int endOffset)
Make a Blob value by decoding the escapedString between beginOffset and
endOffset according to the NDN URI Scheme.
|
Blob |
Data.getContent() |
Blob |
KeyLocator.getKeyData() |
Blob |
Interest.getLinkWireEncoding()
Get the wire encoding of the link object.
|
Blob |
Interest.getLinkWireEncoding(WireFormat wireFormat)
Get the wire encoding of the link object.
|
Blob |
Interest.getNonce()
Return the nonce value from the incoming interest.
|
Blob |
Sha256WithEcdsaSignature.getSignature()
Get the signature bytes.
|
Blob |
Sha256WithRsaSignature.getSignature()
Get the signature bytes.
|
Blob |
HmacWithSha256Signature.getSignature()
Get the signature bytes.
|
abstract Blob |
Signature.getSignature()
Get the signature bytes.
|
Blob |
GenericSignature.getSignature()
Get the signature bytes.
|
Blob |
DigestSha256Signature.getSignature()
Get the signature bytes.
|
Blob |
GenericSignature.getSignatureInfoEncoding()
Get the bytes of the entire signature info encoding (including the type
code).
|
Blob |
Name.Component.getValue()
Get the component value.
|
Blob |
ControlResponse.wireEncode()
Encode this ControlResponse for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
ControlParameters.wireEncode()
Encode this ControlParameters for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
DelegationSet.wireEncode()
Encode this DelegationSet for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
Name.wireEncode()
Encode this Name for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
ControlResponse.wireEncode(WireFormat wireFormat)
Encode this ControlResponse for a particular wire format.
|
Blob |
ControlParameters.wireEncode(WireFormat wireFormat)
Encode this ControlParameters for a particular wire format.
|
Blob |
DelegationSet.wireEncode(WireFormat wireFormat)
Encode this DelegationSet for a particular wire format.
|
Blob |
Name.wireEncode(WireFormat wireFormat)
Encode this Name for a particular wire format.
|
Modifier and Type | Method and Description |
---|---|
Name |
Name.append(Blob value)
Append a new component, using the existing Blob value.
|
void |
Face.send(Blob encoding)
Send the encoded packet out through the face.
|
Data |
Data.setContent(Blob content) |
void |
KeyLocator.setKeyData(Blob keyData) |
Interest |
Interest.setLinkWireEncoding(Blob encoding)
Set the link wire encoding bytes, without decoding them.
|
Interest |
Interest.setLinkWireEncoding(Blob encoding,
WireFormat wireFormat)
Set the link wire encoding bytes, without decoding them.
|
Interest |
Interest.setNonce(Blob nonce)
Deprecated.
You should let the wire encoder generate a random nonce
internally before sending the interest.
|
void |
Sha256WithEcdsaSignature.setSignature(Blob signature)
Set the signature bytes to the given value.
|
void |
Sha256WithRsaSignature.setSignature(Blob signature)
Set the signature bytes to the given value.
|
void |
HmacWithSha256Signature.setSignature(Blob signature)
Set the signature bytes to the given value.
|
abstract void |
Signature.setSignature(Blob signature)
Set the signature bytes to the given value.
|
void |
GenericSignature.setSignature(Blob signature)
Set the signature bytes to the given value.
|
void |
DigestSha256Signature.setSignature(Blob signature)
Set the signature bytes to the given value.
|
void |
GenericSignature.setSignatureInfoEncoding(Blob signatureInfoEncoding)
Set the bytes of the entire signature info encoding (including the type
code).
|
void |
GenericSignature.setSignatureInfoEncoding(Blob signatureInfoEncoding,
int typeCode)
Set the bytes of the entire signature info encoding (including the type
code).
|
void |
ControlResponse.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this ControlResponse.
|
void |
ControlParameters.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this ControlParameters.
|
void |
Interest.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Interest.
|
void |
Data.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Data.
|
void |
DelegationSet.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this DelegationSet.
|
void |
Name.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Name.
|
void |
ControlResponse.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlResponse.
|
void |
ControlParameters.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlParameters.
|
void |
Link.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then populate the list of
delegations from the content.
|
void |
Interest.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Interest.
|
void |
Data.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Data.
|
void |
DelegationSet.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this DelegationSet.
|
void |
Name.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Name.
|
Constructor and Description |
---|
Name.Component(Blob value)
Create a new Name.Component, using the existing the Blob value.
|
Modifier and Type | Method and Description |
---|---|
static Blob |
ProtobufTlv.encode(com.google.protobuf.Message message)
Encode the Protobuf message object as NDN-TLV.
|
Blob |
Tlv0_1_1WireFormat.encodeControlParameters(ControlParameters controlParameters)
Encode controlParameters in NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeControlParameters(ControlParameters controlParameters)
Encode controlParameters and return the encoding.
|
Blob |
Tlv0_1_1WireFormat.encodeControlResponse(ControlResponse controlResponse)
Encode controlResponse in NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeControlResponse(ControlResponse controlResponse)
Encode controlResponse and return the encoding.
|
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.
|
Blob |
Tlv0_1_1WireFormat.encodeDelegationSet(DelegationSet delegationSet)
Encode delegationSet as a sequence of NDN-TLV Delegation, and return the
encoding.
|
Blob |
WireFormat.encodeDelegationSet(DelegationSet delegationSet)
Encode delegationSet and return the encoding.
|
Blob |
Tlv0_1_1WireFormat.encodeEncryptedContent(EncryptedContent encryptedContent)
Encode the EncryptedContent in NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeEncryptedContent(EncryptedContent encryptedContent)
Encode the EncryptedContent and return the encoding.
|
Blob |
WireFormat.encodeInterest(Interest interest)
Encode interest and return the encoding.
|
Blob |
Tlv0_1_1WireFormat.encodeInterest(Interest interest,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Encode interest using NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeInterest(Interest interest,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Encode interest and return the encoding.
|
Blob |
Tlv0_1_1WireFormat.encodeName(Name name)
Encode name in NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeName(Name name)
Encode name and return the encoding.
|
Blob |
Tlv0_1_1WireFormat.encodeSignatureInfo(Signature signature)
Encode signature as a SignatureInfo in NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeSignatureInfo(Signature signature)
Encode signature as a SignatureInfo and return the encoding.
|
Blob |
Tlv0_1_1WireFormat.encodeSignatureValue(Signature signature)
Encode the signatureValue in the Signature object as a SignatureValue (the
signature bits) in NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeSignatureValue(Signature signature)
Encode the signatureValue in the Signature object as a SignatureValue (the
signature bits) and return the encoding.
|
Modifier and Type | Method and Description |
---|---|
static void |
ProtobufTlv.decode(com.google.protobuf.Message.Builder message,
Blob input) |
Modifier and Type | Method and Description |
---|---|
Blob |
DerNode.encode()
Get the raw data encoding for this node.
|
Blob |
DerNode.DerStructure.encode()
Override the base encode to return raw data encoding for this node and
its children
|
Blob |
DerNode.getPayload()
Get a copy of the payload bytes.
|
Modifier and Type | Method and Description |
---|---|
Blob |
Sqlite3ProducerDb.getContentKey(double timeSlot)
Get the content key for the hour covering timeSlot.
|
Blob |
AndroidSqlite3ProducerDb.getContentKey(double timeSlot)
Get the content key for the hour covering timeSlot.
|
abstract Blob |
ProducerDb.getContentKey(double timeSlot)
Get the content key for the hour covering timeSlot.
|
Blob |
EncryptedContent.getInitialVector()
Get the initial vector.
|
Blob |
Sqlite3ConsumerDb.getKey(Name keyName)
Get the key with keyName from the database.
|
abstract Blob |
ConsumerDb.getKey(Name keyName)
Get the key with keyName from the database.
|
Blob |
AndroidSqlite3ConsumerDb.getKey(Name keyName)
Get the key with keyName from the database.
|
Blob |
EncryptKey.getKeyBits()
Get the key value.
|
Blob |
DecryptKey.getKeyBits()
Get the key value.
|
Blob |
EncryptedContent.getPayload()
Get the payload.
|
Blob |
Schedule.wireEncode()
Encode this Schedule.
|
Blob |
EncryptedContent.wireEncode()
Encode this EncryptedContent for the default wire format.
|
Blob |
EncryptedContent.wireEncode(WireFormat wireFormat)
Encode this EncryptedContent to a wire encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
Sqlite3ProducerDb.addContentKey(double timeSlot,
Blob key)
Add key as the content key for the hour covering timeSlot.
|
void |
AndroidSqlite3ProducerDb.addContentKey(double timeSlot,
Blob key)
Add key as the content key for the hour covering timeSlot.
|
abstract void |
ProducerDb.addContentKey(double timeSlot,
Blob key)
Add key as the content key for the hour covering timeSlot.
|
void |
Consumer.addDecryptionKey(Name keyName,
Blob keyBlob)
Add a new decryption key with keyName and keyBlob to the database.
|
void |
Sqlite3ConsumerDb.addKey(Name keyName,
Blob keyBlob)
Add the key with keyName and keyBlob to the database.
|
abstract void |
ConsumerDb.addKey(Name keyName,
Blob keyBlob)
Add the key with keyName and keyBlob to the database.
|
void |
AndroidSqlite3ConsumerDb.addKey(Name keyName,
Blob keyBlob)
Add the key with keyName and keyBlob to the database.
|
abstract void |
GroupManagerDb.addMember(String scheduleName,
Name keyName,
Blob key)
Add a new member with the given key named keyName into a schedule named
scheduleName.
|
void |
AndroidSqlite3GroupManagerDb.addMember(String scheduleName,
Name keyName,
Blob key)
Add a new member with the given key named keyName into a schedule named
scheduleName.
|
void |
Sqlite3GroupManagerDb.addMember(String scheduleName,
Name keyName,
Blob key)
Add a new member with the given key named keyName into a schedule named
scheduleName.
|
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) |
abstract void |
Consumer.FriendAccess.decrypt(Blob encryptedBlob,
Blob keyBits,
Consumer.OnPlainText onPlainText,
EncryptError.OnError onError) |
void |
Consumer.OnConsumeComplete.onConsumeComplete(Data data,
Blob result) |
void |
Consumer.OnPlainText.onPlainText(Blob plainText) |
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.
|
EncryptedContent |
EncryptedContent.setInitialVector(Blob initialVector)
Set the initial vector.
|
EncryptedContent |
EncryptedContent.setPayload(Blob payload)
Set the encrypted payload.
|
void |
Schedule.wireDecode(Blob input)
Decode the input and update this Schedule object.
|
void |
EncryptedContent.wireDecode(Blob input)
Decode the input the default wire format and update this EncryptedContent.
|
void |
EncryptedContent.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
EncryptedContent.
|
Constructor and Description |
---|
DecryptKey(Blob keyBits)
Create a DecryptKey with the given key value.
|
EncryptKey(Blob keyBits)
Create an EncryptKey with the given key value.
|
Modifier and Type | Method and Description |
---|---|
static Blob |
RsaAlgorithm.decrypt(Blob keyBits,
Blob encryptedData,
EncryptParams params)
Decrypt the encryptedData using the keyBits according the encrypt params.
|
static Blob |
AesAlgorithm.decrypt(Blob keyBits,
Blob encryptedData,
EncryptParams params)
Decrypt the encryptedData using the keyBits according the encrypt params.
|
static Blob |
RsaAlgorithm.encrypt(Blob keyBits,
Blob plainData,
EncryptParams params)
Encrypt the plainData using the keyBits according the encrypt params.
|
static Blob |
AesAlgorithm.encrypt(Blob keyBits,
Blob plainData,
EncryptParams params)
Encrypt the plainData using the keyBits according the encrypt params.
|
Blob |
EncryptParams.getInitialVector()
Get the initial vector.
|
Modifier and Type | Method and Description |
---|---|
static Blob |
RsaAlgorithm.decrypt(Blob keyBits,
Blob encryptedData,
EncryptParams params)
Decrypt the encryptedData using the keyBits according the encrypt params.
|
static Blob |
AesAlgorithm.decrypt(Blob keyBits,
Blob encryptedData,
EncryptParams params)
Decrypt the encryptedData using the keyBits according the encrypt params.
|
static EncryptKey |
RsaAlgorithm.deriveEncryptKey(Blob keyBits)
Derive a new encrypt key from the given decrypt key value.
|
static EncryptKey |
AesAlgorithm.deriveEncryptKey(Blob keyBits)
Derive a new encrypt key from the given decrypt key value.
|
static Blob |
RsaAlgorithm.encrypt(Blob keyBits,
Blob plainData,
EncryptParams params)
Encrypt the plainData using the keyBits according the encrypt params.
|
static Blob |
AesAlgorithm.encrypt(Blob keyBits,
Blob plainData,
EncryptParams params)
Encrypt the plainData using the keyBits according the encrypt params.
|
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.
|
EncryptParams |
EncryptParams.setInitialVector(Blob initialVector)
Set the initial vector.
|
Modifier and Type | Method and Description |
---|---|
Blob |
LpPacket.getFragmentWireEncoding()
Get the fragment wire encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
LpPacket.setFragmentWireEncoding(Blob fragmentWireEncoding)
Set the fragment wire encoding.
|
Modifier and Type | Method and Description |
---|---|
Blob |
KeyChain.createSigningRequest(Name keyName)
Create a public key signing request.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 | Field and Description |
---|---|
protected Blob |
CertificateExtension.extensionValue_ |
Modifier and Type | Method and Description |
---|---|
Blob |
PublicKey.getDigest() |
Blob |
PublicKey.getDigest(DigestAlgorithm digestAlgorithm) |
Blob |
PublicKey.getKeyDer() |
Blob |
CertificateExtension.getValue() |
Blob |
CertificateExtension.toDerBlob() |
Modifier and Type | Method and Description |
---|---|
void |
IdentityCertificate.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then update the public key name.
|
void |
Certificate.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then populate the certificate
fields.
|
Constructor and Description |
---|
CertificateExtension(OID oid,
boolean isCritical,
Blob value)
Create a new CertificateExtension.
|
CertificateExtension(String oid,
boolean isCritical,
Blob value)
Create a new CertificateExtension.
|
PublicKey(Blob keyDer)
Create a new PublicKey by decoding the keyDer.
|
Modifier and Type | Method and Description |
---|---|
Blob |
PrivateKeyStorage.decrypt(Name keyName,
ByteBuffer data)
Decrypt data using asymmetric encryption.
|
Blob |
FilePrivateKeyStorage.decrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Decrypt data.
|
abstract Blob |
PrivateKeyStorage.decrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Decrypt data.
|
Blob |
MemoryPrivateKeyStorage.decrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Decrypt data.
|
Blob |
PrivateKeyStorage.encrypt(Name keyName,
ByteBuffer data)
Encrypt data using asymmetric encryption.
|
Blob |
FilePrivateKeyStorage.encrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Encrypt data.
|
abstract Blob |
PrivateKeyStorage.encrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Encrypt data.
|
Blob |
MemoryPrivateKeyStorage.encrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Encrypt data.
|
Blob |
BasicIdentityStorage.getKey(Name keyName)
Get the public key DER blob from the identity storage.
|
abstract Blob |
IdentityStorage.getKey(Name keyName)
Get the public key DER blob from the identity storage.
|
Blob |
AndroidSqlite3IdentityStorage.getKey(Name keyName)
Get the public key DER blob from the identity storage.
|
Blob |
MemoryIdentityStorage.getKey(Name keyName)
Get the public key DER blob from the identity storage.
|
Blob |
PrivateKeyStorage.sign(ByteBuffer data,
Name keyName)
Fetch the private key for keyName and sign the data using
DigestAlgorithm.SHA256, returning a signature Blob.
|
Blob |
FilePrivateKeyStorage.sign(ByteBuffer data,
Name keyName,
DigestAlgorithm digestAlgorithm)
Fetch the private key for keyName and sign the data, returning a signature
Blob.
|
abstract Blob |
PrivateKeyStorage.sign(ByteBuffer data,
Name keyName,
DigestAlgorithm digestAlgorithm)
Fetch the private key for keyName and sign the data, returning a signature
Blob.
|
Blob |
MemoryPrivateKeyStorage.sign(ByteBuffer data,
Name keyName,
DigestAlgorithm digestAlgorithm)
Fetch the private key for keyName and sign the data, returning a signature
Blob.
|
Modifier and Type | Method and Description |
---|---|
void |
BasicIdentityStorage.addKey(Name keyName,
KeyType keyType,
Blob publicKeyDer)
Add a public key to the identity storage.
|
abstract void |
IdentityStorage.addKey(Name keyName,
KeyType keyType,
Blob publicKeyDer)
Add a public key to the identity storage.
|
void |
AndroidSqlite3IdentityStorage.addKey(Name keyName,
KeyType keyType,
Blob publicKeyDer)
Add a public key to the identity storage.
|
void |
MemoryIdentityStorage.addKey(Name keyName,
KeyType keyType,
Blob publicKeyDer)
Add a public key to the identity storage.
|
Modifier and Type | Method and Description |
---|---|
protected static boolean |
PolicyManager.verifyDigestSha256Signature(Blob signature,
SignedBlob signedBlob)
Verify the DigestSha256 signature on the SignedBlob by verifying that the
digest of SignedBlob equals the signature.
|
protected static boolean |
PolicyManager.verifySha256WithEcdsaSignature(Blob signature,
SignedBlob signedBlob,
Blob publicKeyDer)
Verify the ECDSA signature on the SignedBlob using the given public key.
|
protected static boolean |
PolicyManager.verifySha256WithRsaSignature(Blob signature,
SignedBlob signedBlob,
Blob publicKeyDer)
Verify the RSA signature on the SignedBlob using the given public key.
|
protected static boolean |
PolicyManager.verifySignature(Signature signature,
SignedBlob signedBlob,
Blob publicKeyDer)
Check the type of signature and use the publicKeyDer to verify the
signedBlob using the appropriate signature algorithm.
|
Modifier and Type | Class and Description |
---|---|
class |
SignedBlob
A SignedBlob extends Blob to keep the offsets of a signed portion (e.g., the
bytes of Data packet).
|
Modifier and Type | Method and Description |
---|---|
int |
Blob.compare(Blob other)
Compare this to the other Blob using byte-by-byte comparison from their
position to their limit.
|
boolean |
Blob.equals(Blob other) |
void |
SegmentFetcher.OnComplete.onComplete(Blob content) |
Constructor and Description |
---|
Blob(Blob blob)
Create a new Blob and take another pointer to the given blob's buffer.
|
SignedBlob(Blob blob,
int signedPortionBeginOffset,
int signedPortionEndOffset)
Create a new SignedBlob and take another pointer to the given blob's
buffer.
|
Copyright © 2016. All rights reserved.