public class PibIdentityContainer extends Object
| Constructor and Description |
|---|
PibIdentityContainer(PibImpl pibImpl)
Create a PibIdentityContainer using to use the pibImpl backend
implementation.
|
| Modifier and Type | Method and Description |
|---|---|
PibIdentity |
add(Name identityName)
Add an identity with name identityName into the container.
|
PibIdentity |
get(Name identityName)
Get the identity with name identityName from the container.
|
HashMap<Name,PibIdentityImpl> |
getIdentities_()
Get the identities_ map, which should only be used for testing.
|
void |
remove(Name identityName)
Remove the identity with name identityName from the container, and its
related keys and certificates.
|
int |
size()
Get the number of identities in the container.
|
public PibIdentityContainer(PibImpl pibImpl) throws PibImpl.Error
pibImpl - The PIB backend implementation.PibImpl.Errorpublic final int size()
public final PibIdentity add(Name identityName) throws PibImpl.Error, Pib.Error
identityName - The name of the identity, which is copied.PibImpl.ErrorPib.Errorpublic final void remove(Name identityName) throws PibImpl.Error
identityName - The name of the identity.PibImpl.Errorpublic final PibIdentity get(Name identityName) throws PibImpl.Error, Pib.Error
identityName - The name of the identity.Pib.Error - if the identity does not exist.PibImpl.Errorpublic final HashMap<Name,PibIdentityImpl> getIdentities_()
Copyright © 2019. All rights reserved.