| Package | Description |
|---|---|
| net.named_data.jndn.encrypt | |
| net.named_data.jndn.security |
| 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 | Class and Description |
|---|---|
static class |
KeyChain.InvalidSigningInfoError
A KeyChain.InvalidSigningInfoError extends KeyChain.Error to indicate
that the supplied SigningInfo is invalid.
|
static class |
KeyChain.LocatorMismatchError
A KeyChain.LocatorMismatchError extends KeyChain.Error to indicate that
the supplied TPM locator does not match the locator stored in the PIB.
|
| 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.
|
SafeBag |
KeyChain.exportSafeBag(CertificateV2 certificate)
Export a certificate and its corresponding private key in a SafeBag, with a
null password which exports an unencrypted PKCS #8 PrivateKeyInfo.
|
SafeBag |
KeyChain.exportSafeBag(CertificateV2 certificate,
ByteBuffer password)
Export a certificate and its corresponding private key in a SafeBag.
|
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 |
|---|
KeyChain()
Create a KeyChain with the default PIB and TPM, which are
platform-dependent and can be overridden system-wide or individually by the
user.
|
KeyChain(String pibLocator,
String tpmLocator)
Create a KeyChain to use the PIB and TPM defined by the given locators.
|
KeyChain(String pibLocator,
String tpmLocator,
boolean allowReset)
Create a KeyChain to use the PIB and TPM defined by the given locators.
|
Copyright © 2019. All rights reserved.