public class AccessManagerV2 extends Object
| Constructor and Description |
|---|
AccessManagerV2(PibIdentity identity,
Name dataset,
KeyChain keyChain,
Face face)
Create an AccessManagerV2 to serve the NAC public key for other data
producers to fetch, and to serve encrypted versions of the private keys
(as safe bags) for authorized consumers to fetch.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
addMember(CertificateV2 memberCertificate)
Authorize a member identified by memberCertificate to decrypt data under
the policy.
|
HashMap |
getCache_()
Get the the storage cache, which should only be used for testing.
|
void |
shutdown() |
int |
size()
Get the number of packets stored in in-memory storage.
|
public AccessManagerV2(PibIdentity identity, Name dataset, KeyChain keyChain, Face face) throws Tpm.Error, TpmBackEnd.Error, PibImpl.Error, Pib.Error, KeyChain.Error, EncodingException, IOException, SecurityException
identity - The data owner's namespace identity. (This will be used to
sign the KEK and KDK.)dataset - The name of dataset that this manager is controlling.keyChain - The KeyChain used to sign Data packets.face - The Face for calling registerPrefix that will be used to
publish the KEK and KDK Data packets.Tpm.ErrorTpmBackEnd.ErrorPibImpl.ErrorPib.ErrorKeyChain.ErrorEncodingExceptionIOExceptionSecurityExceptionpublic final void shutdown()
public final Data addMember(CertificateV2 memberCertificate) throws Pib.Error, PibImpl.Error, UnrecognizedKeyFormatException, EncodingException, TpmBackEnd.Error, KeyChain.Error, InvalidKeySpecException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, CertificateV2.Error
memberCertificate - The certificate that identifies the member to
authorize.Pib.ErrorPibImpl.ErrorUnrecognizedKeyFormatExceptionEncodingExceptionTpmBackEnd.ErrorKeyChain.ErrorInvalidKeySpecExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionIllegalBlockSizeExceptionBadPaddingExceptionCertificateV2.Errorpublic final int size()
public final HashMap getCache_()
Copyright © 2019. All rights reserved.