public abstract class PibImpl extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PibImpl.Error
A PibImpl.Error extends Exception and represents a non-semantic error in
PIB implementation processing.
|
| Constructor and Description |
|---|
PibImpl() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addCertificate(CertificateV2 certificate)
Add the certificate.
|
abstract void |
addIdentity(Name identityName)
Add the identity.
|
abstract void |
addKey(Name identityName,
Name keyName,
ByteBuffer key)
Add the key.
|
abstract void |
clearIdentities()
Erase all certificates, keys, and identities.
|
abstract CertificateV2 |
getCertificate(Name certificateName)
Get the certificate with name certificateName.
|
abstract HashSet<Name> |
getCertificatesOfKey(Name keyName)
Get a list of certificate names of the key with id keyName.
|
abstract CertificateV2 |
getDefaultCertificateOfKey(Name keyName)
Get the default certificate for the key with eyName.
|
abstract Name |
getDefaultIdentity()
Get the default identity.
|
abstract Name |
getDefaultKeyOfIdentity(Name identityName)
Get the name of the default key for the identity with name identityName.
|
abstract HashSet<Name> |
getIdentities()
Get the names of all the identities.
|
abstract Blob |
getKeyBits(Name keyName)
Get the key bits of a key with name keyName.
|
abstract HashSet<Name> |
getKeysOfIdentity(Name identityName)
Get all the key names of the identity with the name identityName.
|
abstract String |
getTpmLocator()
Get the TPM Locator.
|
abstract boolean |
hasCertificate(Name certificateName)
Check for the existence of a certificate with name certificateName.
|
abstract boolean |
hasIdentity(Name identityName)
Check for the existence of an identity.
|
abstract boolean |
hasKey(Name keyName)
Check for the existence of a key with keyName.
|
abstract void |
removeCertificate(Name certificateName)
Remove the certificate with name certificateName.
|
abstract void |
removeIdentity(Name identityName)
Remove the identity and its related keys and certificates.
|
abstract void |
removeKey(Name keyName)
Remove the key with keyName and its related certificates.
|
abstract void |
setDefaultCertificateOfKey(Name keyName,
Name certificateName)
Set the cert with name certificateName as the default for the key with
keyName.
|
abstract void |
setDefaultIdentity(Name identityName)
Set the identity with the identityName as the default identity.
|
abstract void |
setDefaultKeyOfIdentity(Name identityName,
Name keyName)
Set the key with keyName as the default key for the identity with name
identityName.
|
abstract void |
setTpmLocator(String tpmLocator)
Set the corresponding TPM information to tpmLocator.
|
public abstract void setTpmLocator(String tpmLocator) throws PibImpl.Error
tpmLocator - The TPM locator string.PibImpl.Error - for a non-semantic (database access) error.public abstract String getTpmLocator() throws PibImpl.Error
PibImpl.Error - for a non-semantic (database access) error.public abstract boolean hasIdentity(Name identityName) throws PibImpl.Error
identityName - The name of the identity.PibImpl.Error - for a non-semantic (database access) error.public abstract void addIdentity(Name identityName) throws PibImpl.Error
identityName - The name of the identity to add. This copies the name.PibImpl.Error - for a non-semantic (database access) error.public abstract void removeIdentity(Name identityName) throws PibImpl.Error
identityName - The name of the identity to remove.PibImpl.Error - for a non-semantic (database access) error.public abstract void clearIdentities()
throws PibImpl.Error
PibImpl.Error - for a non-semantic (database access) error.public abstract HashSet<Name> getIdentities() throws PibImpl.Error
PibImpl.Error - for a non-semantic (database access) error.public abstract void setDefaultIdentity(Name identityName) throws PibImpl.Error
identityName - The name for the default identity. This copies the name.PibImpl.Error - for a non-semantic (database access) error.public abstract Name getDefaultIdentity() throws Pib.Error, PibImpl.Error
Pib.Error - for no default identity.PibImpl.Error - for a non-semantic (database access) error.public abstract boolean hasKey(Name keyName) throws PibImpl.Error
keyName - The name of the key.PibImpl.Error - for a non-semantic (database access) error.public abstract void addKey(Name identityName, Name keyName, ByteBuffer key) throws PibImpl.Error
identityName - The name of the identity that the key belongs to. This
copies the name.keyName - The name of the key. This copies the name.key - The public key bits. This copies the array.PibImpl.Error - for a non-semantic (database access) error.public abstract void removeKey(Name keyName) throws PibImpl.Error
keyName - The name of the key.PibImpl.Error - for a non-semantic (database access) error.public abstract Blob getKeyBits(Name keyName) throws Pib.Error, PibImpl.Error
keyName - The name of the key.Pib.Error - if the key does not exist.PibImpl.Error - for a non-semantic (database access) error.public abstract HashSet<Name> getKeysOfIdentity(Name identityName) throws PibImpl.Error
identityName - The name of the identity.PibImpl.Error - for a non-semantic (database access) error.public abstract void setDefaultKeyOfIdentity(Name identityName, Name keyName) throws Pib.Error, PibImpl.Error
identityName - The name of the identity. This copies the name.keyName - The name of the key. This copies the name.Pib.Error - if the key does not exist.PibImpl.Error - for a non-semantic (database access) error.public abstract Name getDefaultKeyOfIdentity(Name identityName) throws Pib.Error, PibImpl.Error
identityName - The name of the identity.Pib.Error - if there is no default key or if the identity does not
exist.PibImpl.Error - for a non-semantic (database access) error.public abstract boolean hasCertificate(Name certificateName) throws PibImpl.Error
certificateName - The name of the certificate.PibImpl.Error - for a non-semantic (database access) error.public abstract void addCertificate(CertificateV2 certificate) throws PibImpl.Error
certificate - The certificate to add. This copies the object.PibImpl.Error - for a non-semantic (database access) error.public abstract void removeCertificate(Name certificateName) throws PibImpl.Error
certificateName - The name of the certificate.PibImpl.Error - for a non-semantic (database access) error.public abstract CertificateV2 getCertificate(Name certificateName) throws Pib.Error, PibImpl.Error
certificateName - The name of the certificate.Pib.Error - if the certificate does not exist.PibImpl.Error - for a non-semantic (database access) error.public abstract HashSet<Name> getCertificatesOfKey(Name keyName) throws PibImpl.Error
keyName - The name of the key.PibImpl.Error - for a non-semantic (database access) error.public abstract void setDefaultCertificateOfKey(Name keyName, Name certificateName) throws Pib.Error, PibImpl.Error
keyName - The name of the key.certificateName - The name of the certificate. This copies the name.Pib.Error - if the certificate with name certificateName does not
exist.PibImpl.Error - for a non-semantic (database access) error.public abstract CertificateV2 getDefaultCertificateOfKey(Name keyName) throws Pib.Error, PibImpl.Error
keyName - The name of the key.Pib.Error - if the default certificate does not exist.PibImpl.Error - for a non-semantic (database access) error.Copyright © 2019. All rights reserved.