public class Pib extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Pib.Error
A Pib.Error extends Exception and represents a semantic error in PIB
processing.
|
| Constructor and Description |
|---|
Pib(String scheme,
String location,
PibImpl pibImpl) |
| Modifier and Type | Method and Description |
|---|---|
PibIdentity |
addIdentity_(Name identityName)
Add an identity with name identityName.
|
PibIdentity |
getDefaultIdentity()
Get the default identity.
|
PibIdentityContainer |
getIdentities_()
Get the PibIdentityContainer.
|
PibIdentity |
getIdentity(Name identityName)
Get the identity with name identityName.
|
String |
getPibLocator()
Get the PIB locator.
|
String |
getScheme()
Get the scheme of the PIB locator.
|
String |
getTpmLocator()
Get the TPM Locator.
|
void |
removeIdentity_(Name identityName)
Remove the identity with name identityName, and its related keys and
certificates.
|
void |
reset_()
Reset the content in the PIB, including a reset of the TPM locator.
|
PibIdentity |
setDefaultIdentity_(Name identityName)
Set the identity with name identityName as the default identity.
|
void |
setTpmLocator(String tpmLocator)
Set the corresponding TPM information to tpmLocator.
|
public Pib(String scheme, String location, PibImpl pibImpl) throws PibImpl.Error
PibImpl.Errorpublic final String getScheme()
public final String getPibLocator()
public final void setTpmLocator(String tpmLocator) throws PibImpl.Error
PibImpl.Errorpublic final String getTpmLocator() throws Pib.Error, PibImpl.Error
Pib.Error - if the TPM locator is empty.PibImpl.Errorpublic final PibIdentity getIdentity(Name identityName) throws PibImpl.Error, Pib.Error
identityName - The name of the identity.Pib.Error - if the identity does not exist.PibImpl.Errorpublic final PibIdentity getDefaultIdentity() throws PibImpl.Error, Pib.Error
Pib.Error - if there is no default identity.PibImpl.Errorpublic final void reset_()
throws PibImpl.Error
PibImpl.Errorpublic final PibIdentity addIdentity_(Name identityName) throws PibImpl.Error, Pib.Error
identityName - The name of the identity, which is copied.PibImpl.ErrorPib.Errorpublic final void removeIdentity_(Name identityName) throws PibImpl.Error
identityName - The name of the identity.PibImpl.Errorpublic final PibIdentity setDefaultIdentity_(Name identityName) throws PibImpl.Error, Pib.Error
identityName - The name of the identity.PibImpl.ErrorPib.Errorpublic final PibIdentityContainer getIdentities_()
Copyright © 2019. All rights reserved.