| Package | Description |
|---|---|
| net.named_data.jndn.encrypt | |
| net.named_data.jndn.security | |
| net.named_data.jndn.security.pib | |
| net.named_data.jndn.security.pib.detail | |
| net.named_data.jndn.security.v2 |
| Modifier and Type | Method and Description |
|---|---|
Data |
AccessManagerV2.addMember(CertificateV2 memberCertificate)
Authorize a member identified by memberCertificate to decrypt data under
the policy.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
KeyChain.addCertificate(PibKey key,
CertificateV2 certificate)
Add a certificate for the key.
|
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.setDefaultCertificate(PibKey key,
CertificateV2 certificate)
Set the certificate as the default certificate of the key.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
CertificateV2 certificate)
Verify the Data packet using the public key in the certificate and digest
algorithm SHA256.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the public key in the certificate.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the public key in the certificate.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
CertificateV2 certificate)
Verify the Interest packet using the public key and digest algorithm SHA256
in the certificate, where the last two name components are the
SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the public key in the certificate, where
the last two name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the public key in the certificate, where
the last two name components are the SignatureInfo and signature bytes.
|
| Modifier and Type | Method and Description |
|---|---|
CertificateV2 |
PibCertificateContainer.get(Name certificateName)
Get the certificate with certificateName from the container.
|
CertificateV2 |
PibKey.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
AndroidSqlite3Pib.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
PibSqlite3.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
PibMemory.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
abstract CertificateV2 |
PibImpl.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
PibKey.getDefaultCertificate()
Get the default certificate for this Key.
|
CertificateV2 |
AndroidSqlite3Pib.getDefaultCertificateOfKey(Name keyName)
Get the default certificate for the key with eyName.
|
CertificateV2 |
PibSqlite3.getDefaultCertificateOfKey(Name keyName)
Get the default certificate for the key with eyName.
|
CertificateV2 |
PibMemory.getDefaultCertificateOfKey(Name keyName)
Get the default certificate for the key with eyName.
|
abstract CertificateV2 |
PibImpl.getDefaultCertificateOfKey(Name keyName)
Get the default certificate for the key with eyName.
|
CertificateV2 |
PibKey.setDefaultCertificate_(CertificateV2 certificate)
Add the certificate and set it as the default certificate of the key.
|
CertificateV2 |
PibKey.setDefaultCertificate_(Name certificateName)
Set the existing certificate with name certificateName as the default
certificate.
|
| Modifier and Type | Method and Description |
|---|---|
HashMap<Name,CertificateV2> |
PibCertificateContainer.getCertificates_()
Get the certificates_ map, which should only be used for testing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PibCertificateContainer.add(CertificateV2 certificate)
Add certificate into the container.
|
void |
PibKey.addCertificate_(CertificateV2 certificate)
Add the certificate.
|
void |
AndroidSqlite3Pib.addCertificate(CertificateV2 certificate)
Add the certificate.
|
void |
PibSqlite3.addCertificate(CertificateV2 certificate)
Add the certificate.
|
void |
PibMemory.addCertificate(CertificateV2 certificate)
Add the certificate.
|
abstract void |
PibImpl.addCertificate(CertificateV2 certificate)
Add the certificate.
|
CertificateV2 |
PibKey.setDefaultCertificate_(CertificateV2 certificate)
Add the certificate and set it as the default certificate of the key.
|
| Modifier and Type | Method and Description |
|---|---|
CertificateV2 |
PibKeyImpl.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
PibKeyImpl.getDefaultCertificate()
Get the default certificate for this Key.
|
CertificateV2 |
PibKeyImpl.setDefaultCertificate(CertificateV2 certificate)
Add the certificate and set it as the default certificate of the key.
|
CertificateV2 |
PibKeyImpl.setDefaultCertificate(Name certificateName)
Set the existing certificate with name certificateName as the default
certificate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PibKeyImpl.addCertificate(CertificateV2 certificate)
Add the certificate.
|
CertificateV2 |
PibKeyImpl.setDefaultCertificate(CertificateV2 certificate)
Add the certificate and set it as the default certificate of the key.
|
| Modifier and Type | Method and Description |
|---|---|
CertificateV2 |
TrustAnchorContainer.find(Interest interest)
Find a certificate for the given interest.
|
CertificateV2 |
CertificateCacheV2.find(Interest interest)
Find the certificate by the given interest.
|
CertificateV2 |
TrustAnchorContainer.find(Name keyName)
Search for a certificate across all groups (longest prefix match).
|
CertificateV2 |
CertificateCacheV2.find(Name certificatePrefix)
Find the certificate by the given key name.
|
CertificateV2 |
CertificateStorage.findTrustedCertificate(Interest interestForCertificate)
Find a trusted certificate in the trust anchor container or in the
verified cache.
|
static CertificateV2 |
TrustAnchorGroup.readCertificate(String filePath)
Read a base-64-encoded certificate from a file.
|
CertificateV2 |
ValidationState.verifyCertificateChain_(CertificateV2 trustedCertificate)
Verify signatures of certificates in the certificate chain.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<CertificateV2> |
ValidationState.getCertificateChain_()
Get the internal certificateChain_.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
CertificateContainerInterface.add(CertificateV2 certificate)
Add the certificate to the container.
|
void |
StaticTrustAnchorGroup.add(CertificateV2 certificate)
Load the static anchor certificate.
|
void |
ValidationState.addCertificate(CertificateV2 certificate)
Add the certificate to the top of the certificate chain.
|
void |
CertificateStorage.cacheUnverifiedCertificate(CertificateV2 certificate)
Cache the unverified certificate for a period of time (5 minutes).
|
void |
CertificateStorage.cacheVerifiedCertificate(CertificateV2 certificate)
Cache the verified certificate a period of time (1 hour).
|
void |
ValidationPolicy.checkCertificatePolicy(CertificateV2 certificate,
ValidationState state,
ValidationPolicy.ValidationContinuation continueValidation)
Check the certificate against the policy.
|
void |
CertificateFetcher.ValidationContinuation.continueValidation(CertificateV2 certificate,
ValidationState state) |
void |
CertificateCacheV2.insert(CertificateV2 certificate)
Insert the certificate into the cache.
|
void |
TrustAnchorContainer.insert(String groupId,
CertificateV2 certificate)
Insert a static trust anchor.
|
void |
CertificateStorage.loadAnchor(String groupId,
CertificateV2 certificate)
Load a static trust anchor.
|
CertificateV2 |
ValidationState.verifyCertificateChain_(CertificateV2 trustedCertificate)
Verify signatures of certificates in the certificate chain.
|
void |
InterestValidationState.verifyOriginalPacket_(CertificateV2 trustedCertificate) |
abstract void |
ValidationState.verifyOriginalPacket_(CertificateV2 trustedCertificate)
Verify the signature of the original packet.
|
void |
DataValidationState.verifyOriginalPacket_(CertificateV2 trustedCertificate) |
Copyright © 2019. All rights reserved.