Modifier and Type | Method and Description |
---|---|
void |
Face.makeCommandInterest(Interest interest)
Append a timestamp component and a random value component to interest's
name.
|
void |
Face.makeCommandInterest(Interest interest,
WireFormat wireFormat)
Append a timestamp component and a random value component to interest's
name.
|
void |
Node.registerPrefix(long registeredPrefixId,
Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
ForwardingFlags flags,
WireFormat wireFormat,
KeyChain commandKeyChain,
Name commandCertificateName,
Face face)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags,
WireFormat wireFormat)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
ForwardingFlags flags)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
ForwardingFlags flags,
WireFormat wireFormat)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
WireFormat wireFormat)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterFailed onRegisterFailed,
WireFormat wireFormat)
Register prefix with the connected NDN hub and call onInterest when a
matching interest is received.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterSuccess onRegisterSuccess,
OnRegisterFailed onRegisterFailed)
Deprecated.
Use
registerPrefix(prefix, onInterest, onRegisterFailed, onRegisterSuccess)
where the onRegisterSuccess parameter comes after onRegisterFailed.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterSuccess onRegisterSuccess,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags)
Deprecated.
Use
registerPrefix(prefix, onInterest, onRegisterFailed, onRegisterSuccess, flags)
where the onRegisterSuccess parameter comes after onRegisterFailed.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterSuccess onRegisterSuccess,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags,
WireFormat wireFormat)
Deprecated.
Use
registerPrefix(prefix, onInterest, onRegisterFailed, onRegisterSuccess, flags, wireFormat)
where the onRegisterSuccess parameter comes after onRegisterFailed.
|
long |
Face.registerPrefix(Name prefix,
OnInterestCallback onInterest,
OnRegisterSuccess onRegisterSuccess,
OnRegisterFailed onRegisterFailed,
WireFormat wireFormat)
Deprecated.
Use
registerPrefix(prefix, onInterest, onRegisterFailed, onRegisterSuccess, wireFormat)
where the onRegisterSuccess parameter comes after onRegisterFailed.
|
long |
Face.registerPrefix(Name prefix,
OnInterest onInterest,
OnRegisterFailed onRegisterFailed)
Deprecated.
Use registerPrefix where onInterest is an OnInterestCallback
(which is passed this Face for calling putData) instead of the deprecated
OnInterest (which is passed a Transport object).
|
long |
Face.registerPrefix(Name prefix,
OnInterest onInterest,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags)
Deprecated.
Use registerPrefix where onInterest is an OnInterestCallback
(which is passed this Face for calling putData) instead of the deprecated
OnInterest (which is passed a Transport object).
|
long |
Face.registerPrefix(Name prefix,
OnInterest onInterest,
OnRegisterFailed onRegisterFailed,
ForwardingFlags flags,
WireFormat wireFormat)
Deprecated.
Use registerPrefix where onInterest is an OnInterestCallback
(which is passed this Face for calling putData) instead of the deprecated
OnInterest (which is passed a Transport object).
|
long |
Face.registerPrefix(Name prefix,
OnInterest onInterest,
OnRegisterFailed onRegisterFailed,
WireFormat wireFormat)
Deprecated.
Use registerPrefix where onInterest is an OnInterestCallback
(which is passed this Face for calling putData) instead of the deprecated
OnInterest (which is passed a Transport object).
|
Modifier and Type | Method and Description |
---|---|
Name |
Producer.createContentKey(double timeSlot,
Producer.OnEncryptedKeys onEncryptedKeys)
Call the main createContentKey method where onError is defaultOnError.
|
Name |
Producer.createContentKey(double timeSlot,
Producer.OnEncryptedKeys onEncryptedKeys,
EncryptError.OnError onError)
Create the content key corresponding to the timeSlot.
|
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) |
List |
GroupManager.getGroupKey(double timeSlot)
Create a group key for the interval into which timeSlot falls.
|
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.
|
Constructor and Description |
---|
GroupManager(Name prefix,
Name dataType,
GroupManagerDb database,
int keySize,
int freshnessHours,
KeyChain keyChain)
Create a group manager with the given values.
|
Modifier and Type | Class and Description |
---|---|
class |
UnrecognizedDigestAlgorithmException |
class |
UnrecognizedKeyFormatException |
Modifier and Type | Method and Description |
---|---|
Name |
KeyChain.createIdentity(Name identityName)
Deprecated.
Use createIdentityAndCertificate which returns the
certificate name instead of the key name.
|
Name |
KeyChain.createIdentity(Name identityName,
KeyParams params)
Deprecated.
Use createIdentityAndCertificate which returns the
certificate name instead of the key name.
|
Name |
KeyChain.createIdentityAndCertificate(Name identityName)
Create an identity by creating a pair of Key-Signing-Key (KSK) for this
identity and a self-signed certificate of the KSK.
|
Name |
KeyChain.createIdentityAndCertificate(Name identityName,
KeyParams params)
Create an identity by creating a pair of Key-Signing-Key (KSK) for this
identity and a self-signed certificate of the KSK.
|
Blob |
KeyChain.createSigningRequest(Name keyName)
Create a public key signing request.
|
void |
KeyChain.deleteIdentity(Name identityName)
Delete the identity from the public and private key storage.
|
Name |
KeyChain.generateEcdsaKeyPair(Name identityName)
Generate a pair of ECDSA keys for the specified identity for a
Data-Signing-Key and default keySize 256.
|
Name |
KeyChain.generateEcdsaKeyPair(Name identityName,
boolean isKsk)
Generate a pair of ECDSA keys for the specified identity and default keySize
256.
|
Name |
KeyChain.generateEcdsaKeyPair(Name identityName,
boolean isKsk,
int keySize)
Generate a pair of ECDSA keys for the specified identity.
|
Name |
KeyChain.generateEcdsaKeyPairAsDefault(Name identityName)
Generate a pair of ECDSA keys for the specified identity and set it as
default key for the identity for a Data-Signing-Key and using the default
keySize 256.
|
Name |
KeyChain.generateEcdsaKeyPairAsDefault(Name identityName,
boolean isKsk)
Generate a pair of ECDSA keys for the specified identity and set it as
default key for the identity, using the default keySize 256.
|
Name |
KeyChain.generateEcdsaKeyPairAsDefault(Name identityName,
boolean isKsk,
int keySize)
Generate a pair of ECDSA keys for the specified identity and set it as
default key for the identity.
|
Name |
KeyChain.generateRSAKeyPair(Name identityName)
Generate a pair of RSA keys for the specified identity for a
Data-Signing-Key and default keySize 2048.
|
Name |
KeyChain.generateRSAKeyPair(Name identityName,
boolean isKsk)
Generate a pair of RSA keys for the specified identity and default keySize
2048.
|
Name |
KeyChain.generateRSAKeyPair(Name identityName,
boolean isKsk,
int keySize)
Generate a pair of RSA keys for the specified identity.
|
Name |
KeyChain.generateRSAKeyPairAsDefault(Name identityName)
Generate a pair of RSA keys for the specified identity and set it as
default key for the identity for a Data-Signing-Key and using the default
keySize 2048.
|
Name |
KeyChain.generateRSAKeyPairAsDefault(Name identityName,
boolean isKsk)
Generate a pair of RSA keys for the specified identity and set it as
default key for the identity, using the default keySize 2048.
|
Name |
KeyChain.generateRSAKeyPairAsDefault(Name identityName,
boolean isKsk,
int keySize)
Generate a pair of RSA keys for the specified identity and set it as
default key for the identity.
|
IdentityCertificate |
KeyChain.getCertificate(Name certificateName)
Get a certificate with the specified name.
|
Name |
KeyChain.getDefaultCertificateName()
Get the default certificate name of the default identity.
|
Name |
KeyChain.getDefaultIdentity()
Get the default identity.
|
IdentityCertificate |
KeyChain.getIdentityCertificate(Name certificateName)
Deprecated.
Use getCertificate.
|
void |
KeyChain.installIdentityCertificate(IdentityCertificate certificate)
Install an identity certificate into the public key identity storage.
|
void |
KeyChain.setDefaultCertificateForKey(IdentityCertificate certificate)
Set the certificate as the default for its corresponding key.
|
void |
KeyChain.setDefaultKeyForIdentity(Name keyName)
Set a key as the default key of an identity.
|
void |
KeyChain.setDefaultKeyForIdentity(Name keyName,
Name identityNameCheck)
Set a key as the default key of an identity.
|
Signature |
KeyChain.sign(ByteBuffer buffer,
Name certificateName)
Sign the byte buffer using a certificate name and return a Signature object.
|
void |
KeyChain.sign(Data data)
Wire encode the Data object, sign it with the default identity and set its
signature.
|
void |
KeyChain.sign(Data data,
Name certificateName)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.sign(Data data,
Name certificateName,
WireFormat wireFormat)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.sign(Data data,
WireFormat wireFormat)
Wire encode the Data object, sign it with the default identity and set its
signature.
|
void |
KeyChain.sign(Interest interest)
Append a SignatureInfo to the Interest name, sign the name components with
the default identity and append a final name component with the signature
bits.
|
void |
KeyChain.sign(Interest interest,
Name certificateName)
Append a SignatureInfo to the Interest name, sign the name components and
append a final name component with the signature bits.
|
void |
KeyChain.sign(Interest interest,
Name certificateName,
WireFormat wireFormat)
Append a SignatureInfo to the Interest name, sign the name components and
append a final name component with the signature bits.
|
void |
KeyChain.sign(Interest interest,
WireFormat wireFormat)
Append a SignatureInfo to the Interest name, sign the name components with
the default identity and append a final name component with the signature
bits.
|
Signature |
KeyChain.signByIdentity(ByteBuffer buffer,
Name identityName)
Sign the byte buffer using an identity name and return a Signature object.
|
void |
KeyChain.signByIdentity(Data data)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.signByIdentity(Data data,
Name identityName)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.signByIdentity(Data data,
Name identityName,
WireFormat wireFormat)
Wire encode the Data object, sign it and set its signature.
|
void |
KeyChain.signWithSha256(Data data)
Wire encode the Data object, digest it and set its SignatureInfo to
a DigestSha256.
|
void |
KeyChain.signWithSha256(Data data,
WireFormat wireFormat)
Wire encode the Data object, digest it and set its SignatureInfo to
a DigestSha256.
|
void |
KeyChain.signWithSha256(Interest interest)
Append a SignatureInfo for DigestSha256 to the Interest name, digest the
name components and append a final name component with the signature bits
(which is the digest).
|
void |
KeyChain.signWithSha256(Interest interest,
WireFormat wireFormat)
Append a SignatureInfo for DigestSha256 to the Interest name, digest the
name components and append a final name component with the signature bits
(which is the digest).
|
void |
KeyChain.verifyData(Data data,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Check the signature on the Data object and call either onVerify.onVerify or
onVerifyFailed.onVerifyFailed.
|
void |
KeyChain.verifyData(Data data,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed,
int stepCount) |
void |
KeyChain.verifyInterest(Interest interest,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed)
Check the signature on the signed interest and call either
onVerify.onVerifiedInterest or onVerifyFailed.onVerifyInterestFailed.
|
void |
KeyChain.verifyInterest(Interest interest,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
int stepCount) |
Constructor and Description |
---|
KeyChain()
Create a new KeyChain with the the default IdentityManager and a
NoVerifyPolicyManager.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
IdentityStorage.activateKey(Name keyName)
Activate a key.
|
void |
Sqlite3IdentityStorageBase.activateKey(Name keyName)
Activate a key.
|
void |
BasicIdentityStorage.addCertificate(IdentityCertificate certificate)
Add a certificate to the identity storage.
|
abstract void |
IdentityStorage.addCertificate(IdentityCertificate certificate)
Add a certificate to the identity storage.
|
void |
AndroidSqlite3IdentityStorage.addCertificate(IdentityCertificate certificate)
Add a certificate to the identity storage.
|
void |
MemoryIdentityStorage.addCertificate(IdentityCertificate certificate)
Add a certificate to the identity storage.
|
void |
IdentityManager.addCertificate(IdentityCertificate certificate)
Add a certificate into the public key identity storage.
|
void |
IdentityManager.addCertificateAsDefault(IdentityCertificate certificate)
Add a certificate into the public key identity storage and set the
certificate as the default of its corresponding key.
|
void |
IdentityManager.addCertificateAsIdentityDefault(IdentityCertificate certificate)
Add a certificate into the public key identity storage and set the
certificate as the default for its corresponding identity.
|
void |
BasicIdentityStorage.addIdentity(Name identityName)
Add a new identity.
|
abstract void |
IdentityStorage.addIdentity(Name identityName)
Add a new identity.
|
void |
AndroidSqlite3IdentityStorage.addIdentity(Name identityName)
Add a new identity.
|
void |
MemoryIdentityStorage.addIdentity(Name identityName)
Add a new identity.
|
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.
|
protected void |
Sqlite3IdentityStorageBase.checkSetDefaultKeyNameForIdentity(Name keyName,
Name identityNameCheck)
Throw an exception if it is an error for setDefaultKeyNameForIdentity to
set it.
|
Name |
IdentityManager.createIdentity(Name identityName,
KeyParams params)
Deprecated.
Use createIdentityAndCertificate which returns the
certificate name instead of the key name. You can use
IdentityCertificate.certificateNameToPublicKeyName to convert the
certificate name to the key name.
|
Name |
IdentityManager.createIdentityAndCertificate(Name identityName,
KeyParams params)
Create an identity by creating a pair of Key-Signing-Key (KSK) for this
identity and a self-signed certificate of the KSK.
|
Name |
IdentityManager.createIdentityCertificate(Name certificatePrefix,
Name signerCertificateName,
double notBefore,
double notAfter)
Create an identity certificate for a public key managed by this IdentityManager.
|
IdentityCertificate |
IdentityManager.createIdentityCertificate(Name certificatePrefix,
PublicKey publicKey,
Name signerCertificateName,
double notBefore,
double notAfter)
Create an identity certificate for a public key supplied by the caller.
|
abstract void |
IdentityStorage.deactivateKey(Name keyName)
Deactivate a key.
|
void |
Sqlite3IdentityStorageBase.deactivateKey(Name keyName)
Deactivate a key.
|
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.
|
void |
BasicIdentityStorage.deleteCertificateInfo(Name certificateName)
Delete a certificate.
|
abstract void |
IdentityStorage.deleteCertificateInfo(Name certificateName)
Delete a certificate.
|
void |
AndroidSqlite3IdentityStorage.deleteCertificateInfo(Name certificateName)
Delete a certificate.
|
void |
MemoryIdentityStorage.deleteCertificateInfo(Name certificateName)
Delete a certificate.
|
void |
IdentityManager.deleteIdentity(Name identityName)
Delete the identity from the public and private key storage.
|
void |
BasicIdentityStorage.deleteIdentityInfo(Name identityName)
Delete an identity and related public keys and certificates.
|
abstract void |
IdentityStorage.deleteIdentityInfo(Name identity)
Delete an identity and related public keys and certificates.
|
void |
AndroidSqlite3IdentityStorage.deleteIdentityInfo(Name identityName)
Delete an identity and related public keys and certificates.
|
void |
MemoryIdentityStorage.deleteIdentityInfo(Name identity)
Delete an identity and related public keys and certificates.
|
void |
FilePrivateKeyStorage.deleteKey(Name keyName)
Delete a key by name; checks all KeyClass types
|
void |
FilePrivateKeyStorage.deleteKeyPair(Name keyName)
Delete a pair of asymmetric keys.
|
abstract void |
PrivateKeyStorage.deleteKeyPair(Name keyName)
Delete a pair of asymmetric keys.
|
void |
MemoryPrivateKeyStorage.deleteKeyPair(Name keyName)
Delete a pair of asymmetric keys.
|
void |
BasicIdentityStorage.deletePublicKeyInfo(Name keyName)
Delete a public key and related certificates.
|
abstract void |
IdentityStorage.deletePublicKeyInfo(Name keyName)
Delete a public key and related certificates.
|
void |
AndroidSqlite3IdentityStorage.deletePublicKeyInfo(Name keyName)
Delete a public key and related certificates.
|
void |
MemoryIdentityStorage.deletePublicKeyInfo(Name keyName)
Delete a public key and related certificates.
|
boolean |
BasicIdentityStorage.doesCertificateExist(Name certificateName)
Check if the specified certificate already exists.
|
abstract boolean |
IdentityStorage.doesCertificateExist(Name certificateName)
Check if the specified certificate already exists.
|
boolean |
AndroidSqlite3IdentityStorage.doesCertificateExist(Name certificateName)
Check if the specified certificate already exists.
|
boolean |
BasicIdentityStorage.doesIdentityExist(Name identityName)
Check if the specified identity already exists.
|
abstract boolean |
IdentityStorage.doesIdentityExist(Name identityName)
Check if the specified identity already exists.
|
boolean |
AndroidSqlite3IdentityStorage.doesIdentityExist(Name identityName)
Check if the specified identity already exists.
|
boolean |
BasicIdentityStorage.doesKeyExist(Name keyName)
Check if the specified key already exists.
|
abstract boolean |
IdentityStorage.doesKeyExist(Name keyName)
Check if the specified key already exists.
|
boolean |
AndroidSqlite3IdentityStorage.doesKeyExist(Name keyName)
Check if the specified key already exists.
|
boolean |
MemoryIdentityStorage.doesKeyExist(Name keyName)
Check if the specified key already exists.
|
boolean |
FilePrivateKeyStorage.doesKeyExist(Name keyName,
KeyClass keyClass)
Check if a particular key exists.
|
abstract boolean |
PrivateKeyStorage.doesKeyExist(Name keyName,
KeyClass keyClass)
Check if a particular key exists.
|
boolean |
MemoryPrivateKeyStorage.doesKeyExist(Name keyName,
KeyClass keyClass)
Check if a particular key exists.
|
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.
|
Name |
IdentityManager.generateEcdsaKeyPair(Name identityName)
Generate a pair of ECDSA keys for the specified identity for a
Data-Signing-Key and default keySize 256.
|
Name |
IdentityManager.generateEcdsaKeyPair(Name identityName,
boolean isKsk)
Generate a pair of ECDSA keys for the specified identity and default keySize
256.
|
Name |
IdentityManager.generateEcdsaKeyPair(Name identityName,
boolean isKsk,
int keySize)
Generate a pair of ECDSA keys for the specified identity.
|
Name |
IdentityManager.generateEcdsaKeyPairAsDefault(Name identityName)
Generate a pair of ECDSA keys for the specified identity and set it as
default key for the identity for a Data-Signing-Key and using the default
keySize 256.
|
Name |
IdentityManager.generateEcdsaKeyPairAsDefault(Name identityName,
boolean isKsk)
Generate a pair of ECDSA keys for the specified identity and set it as
default key for the identity, using the default keySize 256.
|
Name |
IdentityManager.generateEcdsaKeyPairAsDefault(Name identityName,
boolean isKsk,
int keySize)
Generate a pair of ECDSA keys for the specified identity and set it as
default key for the identity.
|
void |
FilePrivateKeyStorage.generateKey(Name keyName,
KeyParams params)
Generate a symmetric key.
|
abstract void |
PrivateKeyStorage.generateKey(Name keyName,
KeyParams params)
Generate a symmetric key.
|
void |
MemoryPrivateKeyStorage.generateKey(Name keyName,
KeyParams params)
Generate a symmetric key.
|
void |
FilePrivateKeyStorage.generateKeyPair(Name keyName,
KeyParams params)
Generate a pair of asymmetric keys.
|
abstract void |
PrivateKeyStorage.generateKeyPair(Name keyName,
KeyParams params)
Generate a pair of asymmetric keys.
|
void |
MemoryPrivateKeyStorage.generateKeyPair(Name keyName,
KeyParams params)
Generate a pair of asymmetric keys.
|
Name |
IdentityManager.generateRSAKeyPair(Name identityName)
Generate a pair of RSA keys for the specified identity for a
Data-Signing-Key and default keySize 2048.
|
Name |
IdentityManager.generateRSAKeyPair(Name identityName,
boolean isKsk)
Generate a pair of RSA keys for the specified identity and default keySize
2048.
|
Name |
IdentityManager.generateRSAKeyPair(Name identityName,
boolean isKsk,
int keySize)
Generate a pair of RSA keys for the specified identity.
|
Name |
IdentityManager.generateRSAKeyPairAsDefault(Name identityName)
Generate a pair of RSA keys for the specified identity and set it as
default key for the identity for a Data-Signing-Key and using the default
keySize 2048.
|
Name |
IdentityManager.generateRSAKeyPairAsDefault(Name identityName,
boolean isKsk)
Generate a pair of RSA keys for the specified identity and set it as
default key for the identity, using the default keySize 2048.
|
Name |
IdentityManager.generateRSAKeyPairAsDefault(Name identityName,
boolean isKsk,
int keySize)
Generate a pair of RSA keys for the specified identity and set it as
default key for the identity.
|
void |
BasicIdentityStorage.getAllCertificateNamesOfKey(Name keyName,
ArrayList nameList,
boolean isDefault)
Append all the certificate names of a particular key name to the nameList.
|
abstract void |
IdentityStorage.getAllCertificateNamesOfKey(Name keyName,
ArrayList nameList,
boolean isDefault)
Append all the certificate names of a particular key name to the nameList.
|
void |
AndroidSqlite3IdentityStorage.getAllCertificateNamesOfKey(Name keyName,
ArrayList nameList,
boolean isDefault)
Append all the certificate names of a particular key name to the nameList.
|
void |
MemoryIdentityStorage.getAllCertificateNamesOfKey(Name keyName,
ArrayList nameList,
boolean isDefault)
Append all the certificate names of a particular key name to the nameList.
|
void |
IdentityManager.getAllCertificateNamesOfKey(Name keyName,
ArrayList nameList,
boolean isDefault)
Append all the certificate names of a particular key name to the nameList.
|
void |
BasicIdentityStorage.getAllIdentities(ArrayList nameList,
boolean isDefault)
Append all the identity names to the nameList.
|
abstract void |
IdentityStorage.getAllIdentities(ArrayList nameList,
boolean isDefault)
Append all the identity names to the nameList.
|
void |
AndroidSqlite3IdentityStorage.getAllIdentities(ArrayList nameList,
boolean isDefault)
Append all the identity names to the nameList.
|
void |
IdentityManager.getAllIdentities(ArrayList nameList,
boolean isDefault)
Append all the identity names to the nameList.
|
void |
BasicIdentityStorage.getAllKeyNamesOfIdentity(Name identityName,
ArrayList nameList,
boolean isDefault)
Append all the key names of a particular identity to the nameList.
|
abstract void |
IdentityStorage.getAllKeyNamesOfIdentity(Name identityName,
ArrayList nameList,
boolean isDefault)
Append all the key names of a particular identity to the nameList.
|
void |
AndroidSqlite3IdentityStorage.getAllKeyNamesOfIdentity(Name identityName,
ArrayList nameList,
boolean isDefault)
Append all the key names of a particular identity to the nameList.
|
void |
IdentityManager.getAllKeyNamesOfIdentity(Name identityName,
ArrayList nameList,
boolean isDefault)
Append all the key names of a particular identity to the nameList.
|
IdentityCertificate |
BasicIdentityStorage.getCertificate(Name certificateName)
Get a certificate from the identity storage.
|
abstract IdentityCertificate |
IdentityStorage.getCertificate(Name certificateName)
Get a certificate from the identity storage.
|
IdentityCertificate |
AndroidSqlite3IdentityStorage.getCertificate(Name certificateName)
Get a certificate from the identity storage.
|
IdentityCertificate |
MemoryIdentityStorage.getCertificate(Name certificateName)
Get a certificate from the identity storage.
|
IdentityCertificate |
IdentityManager.getCertificate(Name certificateName)
Get a certificate with the specified name.
|
IdentityCertificate |
IdentityStorage.getDefaultCertificate()
Get the certificate of the default identity.
|
IdentityCertificate |
IdentityManager.getDefaultCertificate()
Get the certificate of the default identity.
|
Name |
IdentityManager.getDefaultCertificateName()
Get the default certificate name of the default identity, which will be
used when signing is based on identity and the identity is not specified.
|
Name |
IdentityStorage.getDefaultCertificateNameForIdentity(Name identityName)
Get the default certificate name for the specified identity.
|
Name |
IdentityManager.getDefaultCertificateNameForIdentity(Name identityName)
Get the default certificate name for the specified identity, which will be
used when signing is performed based on identity.
|
Name |
BasicIdentityStorage.getDefaultCertificateNameForKey(Name keyName)
Get the default certificate name for the specified key.
|
abstract Name |
IdentityStorage.getDefaultCertificateNameForKey(Name keyName)
Get the default certificate name for the specified key.
|
Name |
AndroidSqlite3IdentityStorage.getDefaultCertificateNameForKey(Name keyName)
Get the default certificate name for the specified key.
|
Name |
MemoryIdentityStorage.getDefaultCertificateNameForKey(Name keyName)
Get the default certificate name for the specified key.
|
Name |
BasicIdentityStorage.getDefaultIdentity()
Get the default identity.
|
abstract Name |
IdentityStorage.getDefaultIdentity()
Get the default identity.
|
Name |
AndroidSqlite3IdentityStorage.getDefaultIdentity()
Get the default identity.
|
Name |
MemoryIdentityStorage.getDefaultIdentity()
Get the default identity.
|
Name |
IdentityManager.getDefaultIdentity()
Get the default identity.
|
Name |
IdentityManager.getDefaultKeyNameForIdentity()
Get the default key for an identity, inferred from the keyName.
|
Name |
BasicIdentityStorage.getDefaultKeyNameForIdentity(Name identityName)
Get the default key name for the specified identity.
|
abstract Name |
IdentityStorage.getDefaultKeyNameForIdentity(Name identityName)
Get the default key name for the specified identity.
|
Name |
AndroidSqlite3IdentityStorage.getDefaultKeyNameForIdentity(Name identityName)
Get the default key name for the specified identity.
|
Name |
MemoryIdentityStorage.getDefaultKeyNameForIdentity(Name identityName)
Get the default key name for the specified identity.
|
Name |
IdentityManager.getDefaultKeyNameForIdentity(Name identityName)
Get the default key for an identity.
|
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.
|
Name |
IdentityStorage.getNewKeyName(Name identityName,
boolean useKsk)
Generate a name for a new key belonging to the identity.
|
PublicKey |
FilePrivateKeyStorage.getPublicKey(Name keyName)
Get the public key
|
abstract PublicKey |
PrivateKeyStorage.getPublicKey(Name keyName)
Get the public key
|
PublicKey |
MemoryPrivateKeyStorage.getPublicKey(Name keyName)
Get the public key
|
PublicKey |
IdentityManager.getPublicKey(Name keyName)
Get the public key with the specified name.
|
IdentityCertificate |
IdentityManager.prepareUnsignedIdentityCertificate(Name keyName,
Name signingIdentity,
double notBefore,
double notAfter,
List subjectDescription)
Use the keyName to get the public key from the identity storage and
prepare an unsigned identity certificate.
|
IdentityCertificate |
IdentityManager.prepareUnsignedIdentityCertificate(Name keyName,
Name signingIdentity,
double notBefore,
double notAfter,
List subjectDescription,
Name certPrefix)
Use the keyName to get the public key from the identity storage and
prepare an unsigned identity certificate.
|
IdentityCertificate |
IdentityManager.prepareUnsignedIdentityCertificate(Name keyName,
PublicKey publicKey,
Name signingIdentity,
double notBefore,
double notAfter,
List subjectDescription)
Prepare an unsigned identity certificate.
|
IdentityCertificate |
IdentityManager.prepareUnsignedIdentityCertificate(Name keyName,
PublicKey publicKey,
Name signingIdentity,
double notBefore,
double notAfter,
List subjectDescription,
Name certPrefix)
Prepare an unsigned identity certificate.
|
abstract boolean |
IdentityStorage.revokeIdentity()
Revoke the identity.
|
IdentityCertificate |
IdentityManager.selfSign(Name keyName)
Generate a self-signed certificate for a public key.
|
void |
IdentityManager.setDefaultCertificateForKey(IdentityCertificate certificate)
Set the certificate as the default for its corresponding key.
|
void |
BasicIdentityStorage.setDefaultCertificateNameForKey(Name keyName,
Name certificateName)
Set the default key name for the specified identity.
|
abstract void |
IdentityStorage.setDefaultCertificateNameForKey(Name keyName,
Name certificateName)
Set the default key name for the specified identity.
|
void |
AndroidSqlite3IdentityStorage.setDefaultCertificateNameForKey(Name keyName,
Name certificateName)
Set the default key name for the specified identity.
|
void |
BasicIdentityStorage.setDefaultIdentity(Name identityName)
Set the default identity.
|
abstract void |
IdentityStorage.setDefaultIdentity(Name identityName)
Set the default identity.
|
void |
AndroidSqlite3IdentityStorage.setDefaultIdentity(Name identityName)
Set the default identity.
|
void |
IdentityManager.setDefaultIdentity(Name identityName)
Set the default identity.
|
void |
IdentityManager.setDefaultKeyForIdentity(Name keyName)
Set a key as the default key of an identity.
|
void |
IdentityManager.setDefaultKeyForIdentity(Name keyName,
Name identityNameCheck)
Set a key as the default key of an identity.
|
void |
IdentityStorage.setDefaultKeyNameForIdentity(Name keyName)
Set the default key name for the specified identity.
|
void |
BasicIdentityStorage.setDefaultKeyNameForIdentity(Name keyName,
Name identityNameCheck)
Set a key as the default key of an identity.
|
abstract void |
IdentityStorage.setDefaultKeyNameForIdentity(Name keyName,
Name identityNameCheck)
Set a key as the default key of an identity.
|
void |
AndroidSqlite3IdentityStorage.setDefaultKeyNameForIdentity(Name keyName,
Name identityNameCheck)
Set a key as the default key of an identity.
|
void |
MemoryIdentityStorage.setDefaultKeyNameForIdentity(Name keyName,
Name identityNameCheck)
Set a key as the default key of an identity.
|
void |
MemoryPrivateKeyStorage.setKeyPairForKeyName(Name keyName,
ByteBuffer publicKeyDer,
ByteBuffer privateKeyDer)
Deprecated.
Use setKeyPairForKeyName(keyName, KeyType.RSA, publicKeyDer, privateKeyDer).
|
void |
MemoryPrivateKeyStorage.setKeyPairForKeyName(Name keyName,
KeyType keyType,
ByteBuffer publicKeyDer,
ByteBuffer privateKeyDer)
Set the public and private key for the keyName.
|
void |
MemoryPrivateKeyStorage.setPrivateKeyForKeyName(Name keyName,
KeyType keyType,
ByteBuffer privateKeyDer)
Set the private key for the keyName.
|
void |
MemoryPrivateKeyStorage.setPublicKeyForKeyName(Name keyName,
KeyType keyType,
ByteBuffer publicKeyDer)
Set the public key for the keyName.
|
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.
|
Signature |
IdentityManager.signByCertificate(ByteBuffer buffer,
Name certificateName)
Sign the byte array data based on the certificate name.
|
void |
IdentityManager.signByCertificate(Data data,
Name certificateName)
Sign data packet based on the certificate name.
|
void |
IdentityManager.signByCertificate(Data data,
Name certificateName,
WireFormat wireFormat)
Sign data packet based on the certificate name.
|
void |
IdentityManager.signInterestByCertificate(Interest interest,
Name certificateName,
WireFormat wireFormat)
Append a SignatureInfo to the Interest name, sign the name components and
append a final name component with the signature bits.
|
protected void |
BasicIdentityStorage.updateKeyStatus(Name keyName,
boolean isActive)
In table Key, set 'active' to isActive for the keyName.
|
protected void |
AndroidSqlite3IdentityStorage.updateKeyStatus(Name keyName,
boolean isActive)
In table Key, set 'active' to isActive for the keyName.
|
protected abstract void |
Sqlite3IdentityStorageBase.updateKeyStatus(Name keyName,
boolean isActive)
In table Key, set 'active' to isActive for the keyName.
|
Constructor and Description |
---|
BasicIdentityStorage()
Create a new BasicIdentityStorage to use the SQLite3 file in the
default location.
|
BasicIdentityStorage(String databaseFilePath)
Create a new BasicIdentityStorage to use the given SQLite3 file.
|
IdentityManager()
Create a new IdentityManager to use BasicIdentityStorage and
the default PrivateKeyStorage for your system, which is
OSXPrivateKeyStorage for OS X, otherwise FilePrivateKeyStorage.
|
IdentityManager(IdentityStorage identityStorage)
Create a new IdentityManager to use the given IdentityStorage and
the default PrivateKeyStorage for your system, which is
OSXPrivateKeyStorage for OS X, otherwise FilePrivateKeyStorage.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
ConfigPolicyManager.FriendAccess.checkSignatureMatch(ConfigPolicyManager policyManager,
Name signatureName,
Name objectName,
BoostInfoTree rule) |
ValidationRequest |
SelfVerifyPolicyManager.checkVerificationPolicy(Data data,
int stepCount,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Look in the IdentityStorage for the public key with the name in the
KeyLocator (if available) and use it to verify the data packet.
|
ValidationRequest |
ConfigPolicyManager.checkVerificationPolicy(Data data,
int stepCount,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Check whether the received data packet complies with the verification policy,
and get the indication of the next verification step.
|
abstract ValidationRequest |
PolicyManager.checkVerificationPolicy(Data data,
int stepCount,
OnVerified onVerified,
OnVerifyFailed onVerifyFailed)
Check whether the received data packet complies with the verification
policy, and get the indication of the next verification step.
|
ValidationRequest |
PolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed) |
ValidationRequest |
SelfVerifyPolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
WireFormat wireFormat)
Use wireFormat.decodeSignatureInfoAndValue to decode the last two name
components of the signed interest.
|
ValidationRequest |
ConfigPolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
WireFormat wireFormat)
Check whether the received signed interest complies with the verification
policy, and get the indication of the next verification step.
|
abstract ValidationRequest |
PolicyManager.checkVerificationPolicy(Interest interest,
int stepCount,
OnVerifiedInterest onVerified,
OnVerifyInterestFailed onVerifyFailed,
WireFormat wireFormat)
Check whether the received signed interest complies with the verification
policy, and get the indication of the next verification step.
|
void |
ConfigPolicyManager.load(String configFileName)
Call reset() and load the configuration rules from the file.
|
void |
ConfigPolicyManager.load(String input,
String inputName)
Call reset() and load the configuration rules from the input.
|
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.
|
Constructor and Description |
---|
ConfigPolicyManager(String configFileName) |
ConfigPolicyManager(String configFileName,
CertificateCache certificateCache) |
ConfigPolicyManager(String configFileName,
CertificateCache certificateCache,
int searchDepth) |
ConfigPolicyManager(String configFileName,
CertificateCache certificateCache,
int searchDepth,
double graceInterval) |
ConfigPolicyManager(String configFileName,
CertificateCache certificateCache,
int searchDepth,
double graceInterval,
double keyTimestampTtl) |
ConfigPolicyManager(String configFileName,
CertificateCache certificateCache,
int searchDepth,
double graceInterval,
double keyTimestampTtl,
int maxTrackedKeys)
Create a new ConfigPolicyManager which will act on the rules specified in
the configuration and download unknown certificates when necessary.
|
Modifier and Type | Method and Description |
---|---|
void |
ChronoSync2013.publishNextSequenceNo()
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 |
---|
ChronoSync2013(ChronoSync2013.OnReceivedSyncState onReceivedSyncState,
ChronoSync2013.OnInitialized onInitialized,
Name applicationDataPrefix,
Name applicationBroadcastPrefix,
long sessionNo,
Face face,
KeyChain keyChain,
Name certificateName,
double syncLifetime,
OnRegisterFailed onRegisterFailed)
Create a new ChronoSync2013 to communicate using the given face.
|
Modifier and Type | Method and Description |
---|---|
void |
CommandInterestGenerator.generate(Interest interest,
KeyChain keyChain,
Name certificateName)
Append a timestamp component and a random value component to interest's
name.
|
void |
CommandInterestGenerator.generate(Interest interest,
KeyChain keyChain,
Name certificateName,
WireFormat wireFormat)
Append a timestamp component and a random value component to interest's
name.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name matches the filter.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnInterestCallback onDataNotFound)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnInterestCallback onDataNotFound,
ForwardingFlags flags)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnInterestCallback onDataNotFound,
ForwardingFlags flags,
WireFormat wireFormat)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
OnInterestCallback onDataNotFound)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
OnInterestCallback onDataNotFound,
ForwardingFlags flags)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
void |
MemoryContentCache.registerPrefix(Name prefix,
OnRegisterFailed onRegisterFailed,
OnRegisterSuccess onRegisterSuccess,
OnInterestCallback onDataNotFound,
ForwardingFlags flags,
WireFormat wireFormat)
Call registerPrefix on the Face given to the constructor so that this
MemoryContentCache will answer interests whose name has the prefix.
|
Copyright © 2016. All rights reserved.