| 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.
|
static Blob |
Name.fromHex(String hexString,
int beginOffset,
int endOffset)
Make a Blob value by decoding the hexString between beginOffset and
endOffset.
|
Blob |
Interest.getApplicationParameters()
Get the application parameters.
|
Blob |
Data.getContent() |
Blob |
KeyLocator.getKeyData() |
Blob |
Interest.getLinkWireEncoding()
Deprecated.
Use getForwardingHint.
|
Blob |
Interest.getLinkWireEncoding(WireFormat wireFormat)
Deprecated.
Use getForwardingHint.
|
Blob |
Interest.getNonce()
Return the nonce value from the incoming interest.
|
Blob |
Interest.getParameters()
Deprecated.
Use getApplicationParameters.
|
Blob |
Sha256WithRsaSignature.getSignature()
Get the signature bytes.
|
abstract Blob |
Signature.getSignature()
Get the signature bytes.
|
Blob |
HmacWithSha256Signature.getSignature()
Get the signature bytes.
|
Blob |
DigestSha256Signature.getSignature()
Get the signature bytes.
|
Blob |
Sha256WithEcdsaSignature.getSignature()
Get the signature bytes.
|
Blob |
GenericSignature.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 |
DelegationSet.wireEncode()
Encode this DelegationSet for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
ControlParameters.wireEncode()
Encode this ControlParameters for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
Name.wireEncode()
Encode this Name for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
ControlResponse.wireEncode()
Encode this ControlResponse for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
DelegationSet.wireEncode(WireFormat wireFormat)
Encode this DelegationSet for a particular wire format.
|
Blob |
ControlParameters.wireEncode(WireFormat wireFormat)
Encode this ControlParameters for a particular wire format.
|
Blob |
Name.wireEncode(WireFormat wireFormat)
Encode this Name for a particular wire format.
|
Blob |
ControlResponse.wireEncode(WireFormat wireFormat)
Encode this ControlResponse for a particular wire format.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
Name.append(Blob value)
Append a new GENERIC component, using the existing Blob value.
|
Name |
Name.append(Blob value,
ComponentType type)
Append a new component of the given type, using the existing Blob value.
|
Name |
Name.append(Blob value,
ComponentType type,
int otherTypeCode)
Append a new component of the given type, using the existing Blob value.
|
Name |
Name.appendImplicitSha256Digest(Blob digest)
Append a component of type ImplicitSha256DigestComponent, so that
isImplicitSha256Digest() is true.
|
Name |
Name.appendParametersSha256Digest(Blob digest)
Append a component of type ParametersSha256DigestComponent, so that
isParametersSha256Digest() is true.
|
static Name.Component |
Name.Component.fromImplicitSha256Digest(Blob digest)
Create a component of type ImplicitSha256DigestComponent, so that
isImplicitSha256Digest() is true.
|
static Name.Component |
Name.Component.fromParametersSha256Digest(Blob digest)
Create a component of type ParametersSha256DigestComponent, so that
isParametersSha256Digest() is true.
|
void |
Face.send(Blob encoding)
Send the encoded packet out through the face.
|
Interest |
Interest.setApplicationParameters(Blob applicationParameters)
Set the application parameters to the given value.
|
Data |
Data.setContent(Blob content) |
void |
KeyLocator.setKeyData(Blob keyData) |
Interest |
Interest.setLinkWireEncoding(Blob encoding)
Deprecated.
Use setForwardingHint.
|
Interest |
Interest.setLinkWireEncoding(Blob encoding,
WireFormat wireFormat)
Deprecated.
Use setForwardingHint.
|
Interest |
Interest.setNonce(Blob nonce)
Deprecated.
You should let the wire encoder generate a random nonce
internally before sending the interest.
|
Interest |
Interest.setParameters(Blob applicationParameters)
Deprecated.
Use setApplicationParameters.
|
void |
Sha256WithRsaSignature.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 |
HmacWithSha256Signature.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 |
Sha256WithEcdsaSignature.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 |
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 |
DelegationSet.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this DelegationSet.
|
void |
ControlParameters.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this ControlParameters.
|
void |
Name.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Name.
|
void |
ControlResponse.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this ControlResponse.
|
void |
Data.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Data.
|
void |
Interest.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Interest.
|
void |
DelegationSet.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this DelegationSet.
|
void |
ControlParameters.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlParameters.
|
void |
Name.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Name.
|
void |
ControlResponse.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlResponse.
|
void |
Data.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Data.
|
void |
Interest.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Interest.
|
void |
Link.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then populate the list of
delegations from the content.
|
| Constructor and Description |
|---|
Component(Blob value)
Create a new GENERIC Name.Component, using the existing the Blob value.
|
Component(Blob value,
ComponentType type)
Create a Name.Component of the given type, using the existing the Blob
value.
|
Component(Blob value,
ComponentType type,
int otherTypeCode)
Create a Name.Component of the given type, 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_2WireFormat.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_2WireFormat.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_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.
|
Blob |
Tlv0_2WireFormat.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_2WireFormat.encodeEncryptedContent(EncryptedContent encryptedContent)
Encode the EncryptedContent v1 in NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeEncryptedContent(EncryptedContent encryptedContent)
Encode the EncryptedContent v1 and return the encoding.
|
Blob |
Tlv0_2WireFormat.encodeEncryptedContentV2(EncryptedContent encryptedContent)
Encode the EncryptedContent v2 (used in Name-based Access Control v2) in
NDN-TLV and return the encoding.
|
Blob |
WireFormat.encodeEncryptedContentV2(EncryptedContent encryptedContent)
Encode the EncryptedContent v2 (used in Name-based Access Control v2) and
return the encoding.
|
Blob |
WireFormat.encodeInterest(Interest interest)
Encode interest and return the encoding.
|
Blob |
Tlv0_2WireFormat.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_2WireFormat.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_2WireFormat.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_2WireFormat.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.DerExplicitlyTagged.encode()
Override the base encode to return raw data encoding for the explicit tag
and encoded inner node.
|
Blob |
DerNode.getPayload()
Get a copy of the payload bytes.
|
| Modifier and Type | Field and Description |
|---|---|
Blob |
DecryptorV2.ContentKey.bits |
| Modifier and Type | Method and Description |
|---|---|
Blob |
AndroidSqlite3ProducerDb.getContentKey(double timeSlot)
Get the content key for the hour covering timeSlot.
|
Blob |
Sqlite3ProducerDb.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 |
DecryptKey.getKeyBits()
Get the key value.
|
Blob |
EncryptKey.getKeyBits()
Get the key value.
|
Blob |
EncryptedContent.getPayload()
Get the payload.
|
Blob |
EncryptedContent.getPayloadKey()
Get the encrypted payload key.
|
Blob |
Schedule.wireEncode()
Encode this Schedule.
|
Blob |
EncryptedContent.wireEncode()
Encode this to an EncryptedContent v1 for the default wire format.
|
Blob |
EncryptedContent.wireEncode(WireFormat wireFormat)
Encode this to an EncryptedContent v1 wire encoding.
|
Blob |
EncryptedContent.wireEncodeV2()
Encode this to an EncryptedContent v2 for the default wire format.
|
Blob |
EncryptedContent.wireEncodeV2(WireFormat wireFormat)
Encode this to an EncryptedContent v2 wire encoding.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AndroidSqlite3ProducerDb.addContentKey(double timeSlot,
Blob key)
Add key as the content key for the hour covering timeSlot.
|
void |
Sqlite3ProducerDb.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 |
Sqlite3GroupManagerDb.addEKey(Name eKeyName,
Blob publicKey,
Blob privateKey)
Add the EKey with name eKeyName to the database.
|
void |
AndroidSqlite3GroupManagerDb.addEKey(Name eKeyName,
Blob publicKey,
Blob privateKey)
Add the EKey with name eKeyName to the database.
|
abstract void |
GroupManagerDb.addEKey(Name eKeyName,
Blob publicKey,
Blob privateKey)
Add the EKey with name eKeyName 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.
|
void |
Sqlite3GroupManagerDb.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.
|
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.
|
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 |
Sqlite3GroupManagerDb.getEKey(Name eKeyName,
Blob[] publicKey,
Blob[] privateKey)
Get the group key pair with the name eKeyName from the database.
|
void |
Sqlite3GroupManagerDb.getEKey(Name eKeyName,
Blob[] publicKey,
Blob[] privateKey)
Get the group key pair with the name eKeyName from the database.
|
void |
AndroidSqlite3GroupManagerDb.getEKey(Name eKeyName,
Blob[] publicKey,
Blob[] privateKey)
Get the group key pair with the name eKeyName from the database.
|
void |
AndroidSqlite3GroupManagerDb.getEKey(Name eKeyName,
Blob[] publicKey,
Blob[] privateKey)
Get the group key pair with the name eKeyName from the database.
|
abstract void |
GroupManagerDb.getEKey(Name eKeyName,
Blob[] publicKey,
Blob[] privateKey)
Get the group key pair with the name eKeyName from the database.
|
abstract void |
GroupManagerDb.getEKey(Name eKeyName,
Blob[] publicKey,
Blob[] privateKey)
Get the group key pair with the name eKeyName from the database.
|
void |
Consumer.OnConsumeComplete.onConsumeComplete(Data data,
Blob result) |
void |
Consumer.OnPlainText.onPlainText(Blob plainText) |
void |
DecryptorV2.DecryptSuccessCallback.onSuccess(Blob plainData) |
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.
|
EncryptedContent |
EncryptedContent.setPayloadKey(Blob payloadKey)
Set the encrypted payload key.
|
void |
Schedule.wireDecode(Blob input)
Decode the input and update this Schedule object.
|
void |
EncryptedContent.wireDecode(Blob input)
Decode the input as an EncryptedContent v1 using the default wire format
and update this EncryptedContent.
|
void |
EncryptedContent.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input as an EncryptedContent v1 using a particular wire format
and update this EncryptedContent.
|
void |
EncryptedContent.wireDecodeV2(Blob input)
Decode the input as an EncryptedContent v2 using the default wire format
and update this EncryptedContent.
|
void |
EncryptedContent.wireDecodeV2(Blob input,
WireFormat wireFormat)
Decode the input as an EncryptedContent v2 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 |
AesAlgorithm.decrypt(Blob keyBits,
Blob encryptedData,
EncryptParams params)
Decrypt the encryptedData using the keyBits according the encrypt params.
|
static Blob |
RsaAlgorithm.decrypt(Blob keyBits,
Blob encryptedData,
EncryptParams params)
Decrypt the encryptedData 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 Blob |
RsaAlgorithm.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 |
AesAlgorithm.decrypt(Blob keyBits,
Blob encryptedData,
EncryptParams params)
Decrypt the encryptedData using the keyBits according the encrypt params.
|
static Blob |
RsaAlgorithm.decrypt(Blob keyBits,
Blob encryptedData,
EncryptParams params)
Decrypt the encryptedData using the keyBits according the encrypt params.
|
static EncryptKey |
AesAlgorithm.deriveEncryptKey(Blob keyBits)
Derive a new encrypt key from the given decrypt key value.
|
static EncryptKey |
RsaAlgorithm.deriveEncryptKey(Blob keyBits)
Derive a new encrypt key from the given decrypt key value.
|
static Blob |
AesAlgorithm.encrypt(Blob keyBits,
Blob plainData,
EncryptParams params)
Encrypt the plainData 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 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.
|
Blob |
SafeBag.getPrivateKeyBag()
Get the encoded private key.
|
Blob |
KeyChain.sign(ByteBuffer buffer)
Sign the byte buffer using the default key of the default identity.
|
Blob |
KeyChain.sign(ByteBuffer buffer,
SigningInfo params)
Sign the byte buffer according to the supplied signing parameters.
|
Blob |
SafeBag.wireEncode()
Encode this as an NDN-TLV SafeBag.
|
| 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 void |
KeyChain.signWithHmacWithSha256(Interest interest,
Blob key,
Name keyName)
Append a SignatureInfo to the Interest name, compute an HmacWithSha256
signature for the name components and append a final name component with
the signature bits.
|
static void |
KeyChain.signWithHmacWithSha256(Interest interest,
Blob key,
Name keyName,
WireFormat wireFormat)
Append a SignatureInfo to the Interest name, compute an HmacWithSha256
signature for the name components and append a final name component with
the signature bits.
|
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 |
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.
|
static boolean |
VerificationHelpers.verifyDigest(Blob buffer,
Blob digest,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the digest using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyDigest(ByteBuffer buffer,
Blob digest,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the digest using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
Blob publicKeyDer)
Verify the Interest packet using the public key and digest algorithm SHA256,
where the last two name components are the SignatureInfo and signature
bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
KeyChain.verifyInterestWithHmacWithSha256(Interest interest,
Blob key)
Compute a new HmacWithSha256 for all but the final name component and
verify it against the signature value in the final name component.
|
static boolean |
KeyChain.verifyInterestWithHmacWithSha256(Interest interest,
Blob key,
WireFormat wireFormat)
Compute a new HmacWithSha256 for all but the final name component and
verify it against the signature value in the final name component.
|
static boolean |
VerificationHelpers.verifySignature(Blob buffer,
Blob signature,
Blob publicKeyDer)
Verify the buffer against the signature using the encoded public key and
digest algorithm SHA256.
|
static boolean |
VerificationHelpers.verifySignature(Blob buffer,
Blob signature,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the encoded public key.
|
static boolean |
VerificationHelpers.verifySignature(Blob buffer,
Blob signature,
PublicKey publicKey)
Verify the buffer against the signature using the public key and
digest algorithm SHA256.
|
static boolean |
VerificationHelpers.verifySignature(Blob buffer,
Blob signature,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the public key.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
Blob signature,
Blob publicKeyDer)
Verify the buffer against the signature using the encoded public key and
digest algorithm SHA256.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
Blob signature,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the encoded public key.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
Blob signature,
PublicKey publicKey)
Verify the buffer against the signature using the public key and
digest algorithm SHA256.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
Blob signature,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the public key.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
byte[] signature,
Blob publicKeyDer)
Verify the buffer against the signature using the encoded public key and
digest algorithm SHA256.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
byte[] signature,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the encoded public key.
|
void |
SafeBag.wireDecode(Blob input)
Decode the input as an NDN-TLV SafeBag and update this object.
|
| Constructor and Description |
|---|
SafeBag(Blob input)
Create a SafeBag by decoding the input as an NDN-TLV SafeBag.
|
SafeBag(Data certificate,
Blob privateKeyBag)
Create a SafeBag with the given certificate and private key.
|
SafeBag(Name keyName,
Blob privateKeyBag,
Blob publicKeyEncoding)
Create a SafeBag with given private key and a new self-signed certificate
for the given public key, using DigestAlgorithm.SHA256 to sign it.
|
SafeBag(Name keyName,
Blob privateKeyBag,
Blob publicKeyEncoding,
ByteBuffer password)
Create a SafeBag with given private key and a new self-signed certificate
for the given public key, using DigestAlgorithm.SHA256 to sign it.
|
SafeBag(Name keyName,
Blob privateKeyBag,
Blob publicKeyEncoding,
ByteBuffer password,
DigestAlgorithm digestAlgorithm)
Create a SafeBag with given private key and a new self-signed certificate
for the given public key.
|
SafeBag(Name keyName,
Blob privateKeyBag,
Blob publicKeyEncoding,
ByteBuffer password,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Create a SafeBag with given private key and a new self-signed certificate
for the given public key.
|
| Modifier and Type | Field and Description |
|---|---|
protected Blob |
CertificateExtension.extensionValue_ |
| Modifier and Type | Method and Description |
|---|---|
Blob |
PublicKey.encrypt(Blob plainData,
EncryptAlgorithmType algorithmType)
Encrypt the plainData using the keyBits according the encrypt algorithm type.
|
Blob |
PublicKey.encrypt(byte[] plainData,
EncryptAlgorithmType algorithmType)
Encrypt the plainData using the keyBits according the encrypt algorithm type.
|
Blob |
PublicKey.getDigest() |
Blob |
PublicKey.getDigest(DigestAlgorithm digestAlgorithm) |
Blob |
PublicKey.getKeyDer() |
Blob |
Certificate.getPublicKeyDer()
Get the public key DER encoding.
|
Blob |
CertificateExtension.getValue() |
Blob |
CertificateExtension.toDerBlob() |
| Modifier and Type | Method and Description |
|---|---|
Blob |
PublicKey.encrypt(Blob plainData,
EncryptAlgorithmType algorithmType)
Encrypt the plainData using the keyBits according the encrypt algorithm type.
|
void |
Certificate.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then populate the certificate
fields.
|
void |
IdentityCertificate.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then update the public key name.
|
| 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.
|
abstract Blob |
PrivateKeyStorage.decrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Decrypt data.
|
Blob |
MemoryPrivateKeyStorage.decrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Decrypt data.
|
Blob |
FilePrivateKeyStorage.decrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Decrypt data.
|
Blob |
PrivateKeyStorage.encrypt(Name keyName,
ByteBuffer data)
Encrypt data using asymmetric encryption.
|
abstract Blob |
PrivateKeyStorage.encrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Encrypt data.
|
Blob |
MemoryPrivateKeyStorage.encrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Encrypt data.
|
Blob |
FilePrivateKeyStorage.encrypt(Name keyName,
ByteBuffer data,
boolean isSymmetric)
Encrypt data.
|
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 |
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 |
PrivateKeyStorage.sign(ByteBuffer data,
Name keyName)
Fetch the private key for keyName and sign the data using
DigestAlgorithm.SHA256, 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.
|
Blob |
FilePrivateKeyStorage.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 |
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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Blob |
AndroidSqlite3Pib.getKeyBits(Name keyName)
Get the key bits of a key with name keyName.
|
Blob |
PibSqlite3.getKeyBits(Name keyName)
Get the key bits of a key with name keyName.
|
Blob |
PibMemory.getKeyBits(Name keyName)
Get the key bits of a key with name keyName.
|
abstract Blob |
PibImpl.getKeyBits(Name keyName)
Get the key bits of a key with name keyName.
|
Blob |
PibKey.getPublicKey()
Get the public key encoding.
|
| Modifier and Type | Method and Description |
|---|---|
Blob |
PibKeyImpl.getPublicKey()
Get the public key encoding.
|
| Modifier and Type | Method and Description |
|---|---|
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 | Method and Description |
|---|---|
Blob |
TpmKeyHandle.decrypt(ByteBuffer cipherText)
Return the plain text which is decrypted from cipherText using this key.
|
Blob |
TpmPrivateKey.decrypt(ByteBuffer cipherText)
Call the main decrypt where algorithmType is RsaOaep.
|
Blob |
TpmPrivateKey.decrypt(ByteBuffer cipherText,
EncryptAlgorithmType algorithmType)
Decrypt the cipherText using this private key according the encryption
algorithmType.
|
Blob |
Tpm.decrypt(ByteBuffer cipherText,
Name keyName)
Return the plain text which is decrypted from cipherText using the key
with name keyName.
|
Blob |
TpmKeyHandle.derivePublicKey()
Get the encoded public key derived from this key.
|
Blob |
TpmPrivateKey.derivePublicKey()
Get the encoded public key for this private key.
|
protected Blob |
TpmKeyHandleMemory.doDecrypt(ByteBuffer cipherText) |
protected abstract Blob |
TpmKeyHandle.doDecrypt(ByteBuffer cipherText) |
protected Blob |
TpmKeyHandleMemory.doDerivePublicKey() |
protected abstract Blob |
TpmKeyHandle.doDerivePublicKey() |
protected Blob |
TpmBackEndFile.doExportKey(Name keyName,
ByteBuffer password)
Get the encoded private key with name keyName in PKCS #8 format, possibly
password-encrypted.
|
protected Blob |
TpmBackEndMemory.doExportKey(Name keyName,
ByteBuffer password)
Get the encoded private key with name keyName in PKCS #8 format, possibly
password-encrypted.
|
protected Blob |
TpmBackEnd.doExportKey(Name keyName,
ByteBuffer password)
Get the encoded private key with name keyName in PKCS #8 format, possibly
password-encrypted.
|
protected Blob |
TpmKeyHandleMemory.doSign(DigestAlgorithm digestAlgorithm,
ByteBuffer data) |
protected abstract Blob |
TpmKeyHandle.doSign(DigestAlgorithm digestAlgorithm,
ByteBuffer data) |
Blob |
TpmBackEnd.exportKey(Name keyName,
ByteBuffer password)
Get the encoded private key with name keyName in PKCS #8 format, possibly
password-encrypted.
|
Blob |
Tpm.exportPrivateKey_(Name keyName,
ByteBuffer password)
Get the encoded private key with name keyName in PKCS #8 format, possibly
encrypted.
|
Blob |
Tpm.getPublicKey(Name keyName)
Get the public portion of an asymmetric key pair with name keyName.
|
Blob |
TpmPrivateKey.sign(ByteBuffer data,
DigestAlgorithm digestAlgorithm)
Sign the data with this private key, returning a signature Blob.
|
Blob |
Tpm.sign(ByteBuffer data,
Name keyName,
DigestAlgorithm digestAlgorithm)
Compute a digital signature from the byte buffer using the key with name
keyName.
|
Blob |
TpmKeyHandle.sign(DigestAlgorithm digestAlgorithm,
ByteBuffer data)
Compute a digital signature from the byte buffer using this key with
digestAlgorithm.
|
Blob |
TpmPrivateKey.toEncryptedPkcs8(ByteBuffer password)
Get the encoded encrypted private key in PKCS #8.
|
Blob |
TpmPrivateKey.toPkcs1()
Get the encoded unencrypted private key in PKCS #1.
|
Blob |
TpmPrivateKey.toPkcs8()
Get the encoded unencrypted private key in PKCS #8.
|
| Modifier and Type | Method and Description |
|---|---|
Blob |
CertificateV2.getPublicKey()
Get the public key DER encoding.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CertificateV2.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then check the certificate
format.
|
| Modifier and Type | Method and Description |
|---|---|
Blob |
ChronoSync2013.SyncState.getApplicationInfo()
Get the application info which was included when the sender published
the next sequence number.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChronoSync2013.publishNextSequenceNo(Blob applicationInfo)
Increment the sequence number, create a sync message with the new
sequence number and publish a data packet where the name is
the applicationBroadcastPrefix + the root digest of the current digest
tree.
|
| Constructor and Description |
|---|
SyncState(String dataPrefixUri,
long sessionNo,
long sequenceNo,
Blob applicationInfo) |
| 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 © 2019. All rights reserved.