| Package | Description |
|---|---|
| net.named_data.jndn.encrypt | |
| net.named_data.jndn.security | |
| net.named_data.jndn.security.tpm |
| Modifier and Type | Method and Description |
|---|---|
Data |
AccessManagerV2.addMember(CertificateV2 memberCertificate)
Authorize a member identified by memberCertificate to decrypt data under
the policy.
|
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)
Call the main getGroupKey where needRegenerate is default true.
|
List |
GroupManager.getGroupKey(double timeSlot,
boolean needRegenerate)
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 |
|---|
AccessManagerV2(PibIdentity identity,
Name dataset,
KeyChain keyChain,
Face face)
Create an AccessManagerV2 to serve the NAC public key for other data
producers to fetch, and to serve encrypted versions of the private keys
(as safe bags) for authorized consumers to fetch.
|
| Modifier and Type | Method and Description |
|---|---|
PibIdentity |
KeyChain.createIdentityV2(Name identityName)
Create a security V2 identity for identityName.
|
PibIdentity |
KeyChain.createIdentityV2(Name identityName,
KeyParams params)
Create a security V2 identity for identityName.
|
PibKey |
KeyChain.createKey(PibIdentity identity)
Create a key for the identity according to getDefaultKeyParams().
|
PibKey |
KeyChain.createKey(PibIdentity identity,
KeyParams params)
Create a key for the identity according to params.
|
void |
KeyChain.deleteIdentity(PibIdentity identity)
Delete the identity.
|
void |
KeyChain.deleteKey(PibIdentity identity,
PibKey key)
Delete the given key of the given identity.
|
void |
KeyChain.importSafeBag(SafeBag safeBag)
Import a certificate and its corresponding private key encapsulated in a
SafeBag, with a null password which imports an unencrypted PKCS #8
PrivateKeyInfo.
|
void |
KeyChain.importSafeBag(SafeBag safeBag,
ByteBuffer password)
Import a certificate and its corresponding private key encapsulated in a
SafeBag.
|
Interest |
CommandInterestSigner.makeCommandInterest(Name name)
Call the main makeCommandInterest where the signing params is the default
SigningInfo() and wireFormat is WireFormat.getDefaultWireFormat() .
|
Interest |
CommandInterestSigner.makeCommandInterest(Name name,
SigningInfo params)
Call the main makeCommandInterest where wireFormat is
WireFormat.getDefaultWireFormat() .
|
Interest |
CommandInterestSigner.makeCommandInterest(Name name,
SigningInfo params,
WireFormat wireFormat)
Append the timestamp and nonce name components to the supplied name, create
an Interest object and signs it with the KeyChain given to the constructor.
|
CertificateV2 |
KeyChain.selfSign(PibKey key)
Generate a self-signed certificate for the public key and add it to the
PIB.
|
CertificateV2 |
KeyChain.selfSign(PibKey key,
WireFormat wireFormat)
Generate a self-signed certificate for the public key and add it to the
PIB.
|
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.
|
void |
KeyChain.sign(Data data)
Wire encode the Data object, sign it with the default key of the default
identity, and set its signature.
|
void |
KeyChain.sign(Data data,
SigningInfo params)
Wire encode the Data object, sign it according to the supplied signing
parameters, and set its signature.
|
void |
KeyChain.sign(Data data,
SigningInfo params,
WireFormat wireFormat)
Wire encode the Data object, sign it according to the supplied signing
parameters, and set its signature.
|
void |
KeyChain.sign(Data data,
WireFormat wireFormat)
Wire encode the Data object, sign it with the default key of the default
identity, and set its signature.
|
void |
KeyChain.sign(Interest interest)
Sign the Interest with the default key of the default identity.
|
void |
KeyChain.sign(Interest interest,
SigningInfo params)
Sign the Interest according to the supplied signing parameters.
|
void |
KeyChain.sign(Interest interest,
SigningInfo params,
WireFormat wireFormat)
Sign the Interest according to the supplied signing parameters.
|
void |
KeyChain.sign(Interest interest,
WireFormat wireFormat)
Sign the Interest with the default key of the default identity.
|
| Constructor and Description |
|---|
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 | Class and Description |
|---|---|
static class |
TpmBackEndFile.Error
A TpmBackEndFile.Error extends TpmBackEnd.Error and represents a
non-semantic error in backend TPM file processing.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
Tpm.createKey_(Name identityName,
KeyParams params)
Create a key for the identityName according to params.
|
TpmKeyHandle |
TpmBackEnd.createKey(Name identityName,
KeyParams params)
Create a key for the identityName according to params.
|
Blob |
TpmKeyHandle.decrypt(ByteBuffer cipherText)
Return the plain text which is decrypted from cipherText using this key.
|
Blob |
Tpm.decrypt(ByteBuffer cipherText,
Name keyName)
Return the plain text which is decrypted from cipherText using the key
with name keyName.
|
void |
Tpm.deleteKey_(Name keyName)
Delete the key with name keyName.
|
void |
TpmBackEnd.deleteKey(Name keyName)
Delete the key with name keyName.
|
Blob |
TpmKeyHandle.derivePublicKey()
Get the encoded public key derived from this key.
|
protected TpmKeyHandle |
TpmBackEndFile.doCreateKey(Name identityName,
KeyParams params)
Create a key for identityName according to params.
|
protected TpmKeyHandle |
TpmBackEndMemory.doCreateKey(Name identityName,
KeyParams params)
Create a key for identityName according to params.
|
protected abstract TpmKeyHandle |
TpmBackEnd.doCreateKey(Name identityName,
KeyParams params)
Create a key for identityName according to params.
|
protected Blob |
TpmKeyHandleMemory.doDecrypt(ByteBuffer cipherText) |
protected abstract Blob |
TpmKeyHandle.doDecrypt(ByteBuffer cipherText) |
protected void |
TpmBackEndFile.doDeleteKey(Name keyName)
Delete the key with name keyName.
|
protected void |
TpmBackEndMemory.doDeleteKey(Name keyName)
Delete the key with name keyName.
|
protected abstract void |
TpmBackEnd.doDeleteKey(Name keyName)
Delete the key with name keyName.
|
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 TpmKeyHandle |
TpmBackEndFile.doGetKeyHandle(Name keyName)
Get the handle of the key with name keyName.
|
protected TpmKeyHandle |
TpmBackEndMemory.doGetKeyHandle(Name keyName)
Get the handle of the key with name keyName.
|
protected abstract TpmKeyHandle |
TpmBackEnd.doGetKeyHandle(Name keyName)
Get the handle of the key with name keyName.
|
protected boolean |
TpmBackEndFile.doHasKey(Name keyName)
Check if the key with name keyName exists in the TPM.
|
protected boolean |
TpmBackEndMemory.doHasKey(Name keyName)
Check if the key with name keyName exists in the TPM.
|
protected abstract boolean |
TpmBackEnd.doHasKey(Name keyName)
Check if the key with name keyName exists in the TPM.
|
protected void |
TpmBackEndFile.doImportKey(Name keyName,
ByteBuffer pkcs8,
ByteBuffer password)
Import an encoded private key with name keyName in PKCS #8 format, possibly
password-encrypted.
|
protected void |
TpmBackEndMemory.doImportKey(Name keyName,
ByteBuffer pkcs8,
ByteBuffer password)
Import an encoded private key with name keyName in PKCS #8 format, possibly
password-encrypted.
|
protected void |
TpmBackEnd.doImportKey(Name keyName,
ByteBuffer pkcs8,
ByteBuffer password)
Import an 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.
|
TpmKeyHandle |
TpmBackEnd.getKeyHandle(Name keyName)
Get the handle of the key with name keyName.
|
Blob |
Tpm.getPublicKey(Name keyName)
Get the public portion of an asymmetric key pair with name keyName.
|
boolean |
TpmBackEnd.hasKey(Name keyName)
Check if the key with name keyName exists in the TPM.
|
boolean |
Tpm.hasKey(Name keyName)
Check if the key with name keyName exists in the TPM.
|
void |
TpmBackEnd.importKey(Name keyName,
ByteBuffer pkcs8,
ByteBuffer password)
Import an encoded private key with name keyName in PKCS #8 format, possibly
password-encrypted.
|
void |
Tpm.importPrivateKey_(Name keyName,
ByteBuffer pkcs8,
ByteBuffer password)
Import an encoded private key with name keyName in PKCS #8 format, possibly
password-encrypted.
|
boolean |
TpmBackEnd.isTerminalMode()
Check if the TPM is in terminal mode.
|
boolean |
Tpm.isTerminalMode()
Check if the TPM is in terminal mode.
|
boolean |
TpmBackEnd.isTpmLocked()
Check if the TPM is locked.
|
boolean |
Tpm.isTpmLocked()
Check if the TPM is locked.
|
protected static void |
TpmBackEnd.setKeyName(TpmKeyHandle keyHandle,
Name identityName,
KeyParams params)
Set the key name in keyHandle according to identityName and params.
|
void |
TpmBackEnd.setTerminalMode(boolean isTerminal)
Set the terminal mode of the TPM.
|
void |
Tpm.setTerminalMode(boolean isTerminal)
Set the terminal mode of the TPM.
|
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.
|
boolean |
TpmBackEnd.unlockTpm(ByteBuffer password)
Unlock the TPM.
|
boolean |
Tpm.unlockTpm(ByteBuffer password)
Unlock the TPM.
|
Copyright © 2019. All rights reserved.