public class PibCertificateContainer extends Object
| Constructor and Description |
|---|
PibCertificateContainer(Name keyName,
PibImpl pibImpl)
Create a PibCertificateContainer for a key with keyName.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(CertificateV2 certificate)
Add certificate into the container.
|
CertificateV2 |
get(Name certificateName)
Get the certificate with certificateName from the container.
|
HashMap<Name,CertificateV2> |
getCertificates_()
Get the certificates_ map, which should only be used for testing.
|
boolean |
isConsistent()
Check if the container is consistent with the backend storage.
|
void |
remove(Name certificateName)
Remove the certificate with name certificateName from the container.
|
int |
size()
Get the number of certificates in the container.
|
public PibCertificateContainer(Name keyName, PibImpl pibImpl) throws PibImpl.Error
keyName - The name of the key, which is copied.pibImpl - The PIB backend implementation.PibImpl.Errorpublic final int size()
public final void add(CertificateV2 certificate) throws CertificateV2.Error, PibImpl.Error
certificate - The certificate to add. This copies the object.IllegalArgumentException - if the name of the certificate does not
match the key name.CertificateV2.ErrorPibImpl.Errorpublic final void remove(Name certificateName) throws PibImpl.Error
certificateName - The name of the certificate.IllegalArgumentException - if certificateName does not match the key
name.PibImpl.Errorpublic final CertificateV2 get(Name certificateName) throws Pib.Error, PibImpl.Error
certificateName - The name of the certificate.IllegalArgumentException - if certificateName does not match the key
namePib.Error - if the certificate does not exist.PibImpl.Errorpublic final boolean isConsistent()
throws PibImpl.Error
PibImpl.Errorpublic final HashMap<Name,CertificateV2> getCertificates_()
Copyright © 2019. All rights reserved.