| Package | Description |
|---|---|
| net.named_data.jndn.security | |
| net.named_data.jndn.security.pib | |
| net.named_data.jndn.security.pib.detail |
| 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.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.
|
void |
KeyChain.setDefaultCertificate(PibKey key,
CertificateV2 certificate)
Set the certificate as the default certificate of the key.
|
void |
KeyChain.setDefaultIdentity(PibIdentity identity)
Set the identity as the default identity.
|
void |
KeyChain.setDefaultKey(PibIdentity identity,
PibKey key)
Set the key as the default key of 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 | Method and Description |
|---|---|
PibKey |
PibKeyContainer.add(ByteBuffer key,
Name keyName)
Add a key with name keyName into the container.
|
PibIdentity |
PibIdentityContainer.add(Name identityName)
Add an identity with name identityName into the container.
|
PibIdentity |
Pib.addIdentity_(Name identityName)
Add an identity with name identityName.
|
PibKey |
PibIdentity.addKey_(ByteBuffer key,
Name keyName)
Add the key.
|
PibKey |
PibKeyContainer.get(Name keyName)
Get the key with name keyName from the container.
|
PibIdentity |
PibIdentityContainer.get(Name identityName)
Get the identity with name identityName from the container.
|
CertificateV2 |
PibCertificateContainer.get(Name certificateName)
Get the certificate with certificateName from the container.
|
CertificateV2 |
PibSqlite3.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
PibMemory.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
PibKey.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
abstract CertificateV2 |
PibImpl.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
AndroidSqlite3Pib.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
PibKey.getDefaultCertificate()
Get the default certificate for this Key.
|
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 |
AndroidSqlite3Pib.getDefaultCertificateOfKey(Name keyName)
Get the default certificate for the key with eyName.
|
Name |
PibSqlite3.getDefaultIdentity()
Get the default identity.
|
Name |
PibMemory.getDefaultIdentity()
Get the default identity.
|
abstract Name |
PibImpl.getDefaultIdentity()
Get the default identity.
|
PibIdentity |
Pib.getDefaultIdentity()
Get the default identity.
|
Name |
AndroidSqlite3Pib.getDefaultIdentity()
Get the default identity.
|
PibKey |
PibIdentity.getDefaultKey()
Get the default key of this Identity.
|
Name |
PibSqlite3.getDefaultKeyOfIdentity(Name identityName)
Get the name of the default key for the identity with name identityName.
|
Name |
PibMemory.getDefaultKeyOfIdentity(Name identityName)
Get the name of the default key for the identity with name identityName.
|
abstract Name |
PibImpl.getDefaultKeyOfIdentity(Name identityName)
Get the name of the default key for the identity with name identityName.
|
Name |
AndroidSqlite3Pib.getDefaultKeyOfIdentity(Name identityName)
Get the name of the default key for the identity with name identityName.
|
PibIdentity |
Pib.getIdentity(Name identityName)
Get the identity with name identityName.
|
PibKey |
PibIdentity.getKey(Name keyName)
Get the 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 |
AndroidSqlite3Pib.getKeyBits(Name keyName)
Get the key bits of a key with name keyName.
|
String |
Pib.getTpmLocator()
Get the TPM Locator.
|
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.
|
void |
PibSqlite3.setDefaultCertificateOfKey(Name keyName,
Name certificateName)
Set the cert with name certificateName as the default for the key with
keyName.
|
void |
PibMemory.setDefaultCertificateOfKey(Name keyName,
Name certificateName)
Set the cert with name certificateName as the default for the key with
keyName.
|
abstract void |
PibImpl.setDefaultCertificateOfKey(Name keyName,
Name certificateName)
Set the cert with name certificateName as the default for the key with
keyName.
|
void |
AndroidSqlite3Pib.setDefaultCertificateOfKey(Name keyName,
Name certificateName)
Set the cert with name certificateName as the default for the key with
keyName.
|
PibIdentity |
Pib.setDefaultIdentity_(Name identityName)
Set the identity with name identityName as the default identity.
|
PibKey |
PibIdentity.setDefaultKey_(ByteBuffer key,
Name keyName)
Add a key with name keyName and set it as the default key of the identity.
|
PibKey |
PibIdentity.setDefaultKey_(Name keyName)
Set the key with name keyName as the default key of the identity.
|
void |
PibSqlite3.setDefaultKeyOfIdentity(Name identityName,
Name keyName)
Set the key with keyName as the default key for the identity with name
identityName.
|
void |
PibMemory.setDefaultKeyOfIdentity(Name identityName,
Name keyName)
Set the key with keyName as the default key for the identity with name
identityName.
|
abstract void |
PibImpl.setDefaultKeyOfIdentity(Name identityName,
Name keyName)
Set the key with keyName as the default key for the identity with name
identityName.
|
void |
AndroidSqlite3Pib.setDefaultKeyOfIdentity(Name identityName,
Name keyName)
Set the key with keyName as the default key for the identity with name
identityName.
|
| Modifier and Type | Method and Description |
|---|---|
PibKey |
PibIdentityImpl.addKey(ByteBuffer key,
Name keyName)
Add the key.
|
CertificateV2 |
PibKeyImpl.getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
CertificateV2 |
PibKeyImpl.getDefaultCertificate()
Get the default certificate for this Key.
|
PibKey |
PibIdentityImpl.getDefaultKey()
Get the default key of this Identity.
|
PibKey |
PibIdentityImpl.getKey(Name keyName)
Get the key with name keyName.
|
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.
|
PibKey |
PibIdentityImpl.setDefaultKey(ByteBuffer key,
Name keyName)
Add a key with name keyName and set it as the default key of the identity.
|
PibKey |
PibIdentityImpl.setDefaultKey(Name keyName)
Set the key with name keyName as the default key of the identity.
|
| Constructor and Description |
|---|
PibIdentityImpl(Name identityName,
PibImpl pibImpl,
boolean needInit)
Create a PibIdentityImpl with identityName.
|
PibKeyImpl(Name keyName,
PibImpl pibImpl)
Create a PibKeyImpl with keyName.
|
Copyright © 2018. All rights reserved.