public class SecuredContainerMapper extends AbstractMapper
SecuredContainer
are handled by the mapper. No logic for encrypting or decrypting
exists in the mapper.Constructor and Description |
---|
SecuredContainerMapper(Session session)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createOrUpdate(SecuredContainer container)
Uploads the encrypted content of the
SecuredContainer and the Metadata to the
Absio Broker™ application. |
void |
delete(UUID containerId)
Deletes the encrypted content of the container and deletes the metadata records from the Absio Broker™
application application.
|
SecuredContainer |
get(UUID containerId)
Returns the
SecuredContainer from the Absio Broker™ application. |
ContainerInfo |
getInfo(UUID containerId)
Gets the
ContainerInfo for a SecuredContainer from the Absio Broker™ application. |
void |
updateAccess(UUID containerId,
List<Access> accessLevels)
Updates the access for a
SecuredContainer on the Absio Broker™ application. |
void |
updateType(UUID containerId,
String type)
Update the type of a
SecuredContainer on the Absio Broker™ application. |
getClient, getCredentials, getServerTime, getSession, isAuthenticated, setSession
public SecuredContainerMapper(Session session) throws NoSuchPaddingException, NoSuchAlgorithmException
session
- the session for the mapperNoSuchPaddingException
- thrown if the default padding for symmetric encryption is not supportedNoSuchAlgorithmException
- thrown if ECDH is not supportedpublic void createOrUpdate(SecuredContainer container) throws IOException, InterruptedException, BrokerException
SecuredContainer
and the Metadata
to the
Absio Broker™ application.container
- the SecuredContainer
to create or updateInterruptedException
- thrown when there is an interruption during rate limitingBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuespublic void delete(UUID containerId) throws InterruptedException, BrokerException, IOException
containerId
- the id of the container to deleteInterruptedException
- thrown when there is an interruption during rate limitingBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuespublic SecuredContainer get(UUID containerId) throws InterruptedException, BrokerException, IOException
SecuredContainer
from the Absio Broker™ application. This will have the encrypted data
as well as the metadata from the Absio Broker™ application.containerId
- the id of the container to getSecuredContainer
InterruptedException
- thrown when there is an interruption during rate limitingBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuespublic ContainerInfo getInfo(UUID containerId) throws InterruptedException, BrokerException, IOException
ContainerInfo
for a SecuredContainer
from the Absio Broker™ application. This is
the Metadata
, Access
list and download URL information
for the container.containerId
- the id of the container to getContainerInfo
InterruptedException
- thrown when there is an interruption during rate limitingBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuespublic void updateAccess(UUID containerId, List<Access> accessLevels) throws IOException, InterruptedException, BrokerException
SecuredContainer
on the Absio Broker™ application.containerId
- the id of the SecuredContainer
to update access foraccessLevels
- the new access list for the SecuredContainer
InterruptedException
- thrown when there is an interruption during rate limitingBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuespublic void updateType(UUID containerId, String type) throws IOException, InterruptedException, BrokerException
SecuredContainer
on the Absio Broker™ application.containerId
- the id of the SecuredContainer
to update the type fortype
- the new type value for the SecuredContainer
InterruptedException
- thrown when there is an interruption during rate limitingBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuesCopyright © 2021. All rights reserved.