public class EncObjectService extends Object
| Constructor and Description |
|---|
EncObjectService(KeystorePersistence keystorePersistence,
ObjectPersistence objectPersistence,
ContainerPersistence containerPersistence) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containerExists(String container)
Checks if the container with the given name exists.
|
boolean |
hasKeystore(KeyCredentials keyCredentials) |
void |
newContainer(String container) |
void |
newSecretKey(KeyCredentials keyCredentials,
KeyParams keyParams) |
byte[] |
readObject(KeyCredentials keyCredentials,
ObjectHandle objectHandle) |
void |
writeObject(byte[] data,
ContentMetaInfo metaIno,
ObjectHandle handle,
KeyCredentials keyCredentials) |
public EncObjectService(KeystorePersistence keystorePersistence, ObjectPersistence objectPersistence, ContainerPersistence containerPersistence)
public boolean containerExists(String container)
container - container to checkpublic void newContainer(String container) throws ContainerExistsException
ContainerExistsExceptionpublic void newSecretKey(KeyCredentials keyCredentials, KeyParams keyParams) throws CertificateException, WrongKeystoreCredentialException, MissingKeystoreAlgorithmException, MissingKeystoreProviderException, MissingKeyAlgorithmException, IOException, UnknownContainerException, NoSuchAlgorithmException
public byte[] readObject(KeyCredentials keyCredentials, ObjectHandle objectHandle) throws ObjectNotFoundException, WrongKeystoreCredentialException, MissingKeystoreAlgorithmException, MissingKeystoreProviderException, MissingKeyAlgorithmException, CertificateException, IOException, WrongKeyCredentialException, UnknownContainerException
public void writeObject(byte[] data,
ContentMetaInfo metaIno,
ObjectHandle handle,
KeyCredentials keyCredentials)
throws CertificateException,
ObjectNotFoundException,
WrongKeystoreCredentialException,
MissingKeystoreAlgorithmException,
MissingKeystoreProviderException,
MissingKeyAlgorithmException,
IOException,
UnsupportedEncAlgorithmException,
WrongKeyCredentialException,
UnsupportedKeyLengthException,
UnknownContainerException
CertificateExceptionObjectNotFoundExceptionWrongKeystoreCredentialExceptionMissingKeystoreAlgorithmExceptionMissingKeystoreProviderExceptionMissingKeyAlgorithmExceptionIOExceptionUnsupportedEncAlgorithmExceptionWrongKeyCredentialExceptionUnsupportedKeyLengthExceptionUnknownContainerExceptionpublic boolean hasKeystore(KeyCredentials keyCredentials)
Copyright © 2018. All Rights Reserved.