public class ServerProvider extends BaseProvider implements IContainerProvider
keyRing
Constructor and Description |
---|
ServerProvider()
Create an uninitialized and unauthenticated provider.
|
ServerProvider(boolean trustAll)
Create an uninitialized and unauthenticated provider that trusts all certificates.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
changeCredentials(String password,
String passphrase)
This will change the authenticated user's credentials.
|
byte[] |
changeCredentials(String password,
String passphrase,
String reminder)
This will change the authenticated user's credentials.
|
SecuredContainer |
create(byte[] content,
String customHeaderObject,
List<Access> accesses,
String type)
Creates and persists a new SecuredContainer on the Absio Broker™ application and returns it.
|
SecuredContainer |
createOrUpdate(Container container)
|
SecuredContainer |
createOrUpdate(SecuredContainer container)
Uploads the encrypted content of the
SecuredContainer and the Metadata to the Absio Broker™
application. |
void |
createOrUpdatePublicKey(ECPublicKey publicKey,
KeyType type,
int index,
boolean active)
This will create or update the public key for the authenticated user.
|
void |
createOrUpdatePublicKey(IndexedECPublicKey publicKey)
This will create or update the public key for the authenticated user.
|
void |
delete(UUID containerId)
Deletes the encrypted content of the container and deletes the metadata records from the Absio Broker™
application.
|
void |
deleteUser()
This will delete the user from Absio Broker™ application.
|
Container |
get(UUID containerId)
Returns the
SecuredContainer from the Absio Broker™ application. |
byte[] |
getContent(UUID containerId)
Gets the decrypted content of the secured container for the given ID.
|
EventPackage |
getEvents(EventActionType actionType,
EventType eventType,
Long startingId,
Long endingId,
UUID containerId,
String containerType)
Gets all events that match the event type, action type, starting id, ending id, container id and type.
|
EventsMapper |
getEventsMapper()
Get the
EventsMapper . |
Header |
getHeader(UUID containerId)
Gets the decrypted header of the secured container for the given ID.
|
ContainerInfo |
getInfo(UUID containerId)
Gets the
ContainerInfo for a SecuredContainer from the Absio Broker™ application. |
KeyFileMapper |
getKeyFileMapper()
Get the provider's
KeyFileMapper . |
IndexedECPublicKey |
getPublicKeyByIndex(UUID userId,
KeyType type,
int index)
This will get a single public key from Absio Broker™ application.
|
IndexedECPublicKey |
getPublicKeyLatestActive(UUID userId,
KeyType type)
This will get the latest public key from Absio Broker™ application.
|
List<IndexedECPublicKey> |
getPublicKeyList(UUID userId,
KeyType type,
Integer index)
Gets a user's public keys matching the key type and key ring index.
|
PublicKeyMapper |
getPublicKeyMapper()
Get the provider's
PublicKeyMapper . |
String |
getReminder()
Retrieves a user's keys file passphrase reminder stored on the Absio Broker™ application.
|
String |
getReminder(UUID userId)
Retrieves a user's keys file passphrase reminder stored on the Absio Broker™ application.
|
SecuredContainerMapper |
getSecuredContainerMapper()
Get the
SecuredContainerMapper . |
Session |
getSession()
Get the Broker
Session . |
UserMapper |
getUserMapper()
Get the provider's
UserMapper . |
void |
initialize(String serverUrl,
String apiKey,
String applicationName)
This will set up the
Session and create the internal mappers. |
boolean |
isAuthenticated()
Get if the provider is authenticated (i.e.
|
boolean |
isInitialized()
Get if the provider is initialized (i.e.
|
void |
logIn(KeyRing keyRing)
Uses the provided KeyRing to authenticate with the Absio Broker™ application.
|
byte[] |
logIn(UUID userId,
String password,
String passphrase)
This will use the passphrase to pull the key file from Absio Broker™ application.
|
void |
logOut()
This will end an authenticated session.
|
boolean |
needToSyncAccount(UUID userId,
byte[] keyFileBytes)
Generates a checksum of the encrypted keys file and checks if it matches the checksum of a keys file stored on
the Absio Broker™ application.
|
byte[] |
register(String password,
String passphrase)
This will register the new user, authenticate with Absio Broker™ application and push the new key file to
the Absio Broker™ application.
|
byte[] |
register(String password,
String passphrase,
String reminder)
This will register the new user, authenticate with Absio Broker™ application and push the new key file to
Absio Broker™ application.
|
SecuredContainer |
update(UUID containerId,
byte[] content,
String headerString,
List<Access> accesses,
String type)
Update the content, header, access and type of the secured container with the given ID.
|
void |
updateAccess(UUID containerId,
List<Access> accessLevels)
Updates the access for a
SecuredContainer on the Absio Broker™ application. |
SecuredContainer |
updateContent(UUID containerId,
byte[] newContent)
Updates the content for a
SecuredContainer on the Absio Broker™ application. |
SecuredContainer |
updateHeader(UUID containerId,
String headerString)
Update the header of the secured container with the given ID.
|
void |
updateType(UUID containerId,
String type)
Update the type of a
SecuredContainer on the Absio Broker™ application. |
getKeyRing, getUserId, hashToB64, hashToHex
public ServerProvider() throws NoSuchAlgorithmException
NoSuchAlgorithmException
- thrown if the MessageDigestAlgorithm
is not supportedpublic ServerProvider(boolean trustAll) throws NoSuchAlgorithmException
NoSuchAlgorithmException
- thrown if the MessageDigestAlgorithm
is not supportedpublic byte[] changeCredentials(String password, String passphrase) throws IllegalArgumentException, IllegalAccessException, NoSuchPaddingException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, IllegalBlockSizeException, BadPaddingException, InvalidKeyException, IOException, BrokerException, InterruptedException
NOTE: this requires an initialized and authenticated session. Also, both the password and passphrase are required.
password
- the new password for the authenticated userpassphrase
- the new passphrase for the authenticated userIllegalArgumentException
- thrown if the password or passphrase are null or emptyIllegalAccessException
- thrown if the provider is not authenticatedNoSuchPaddingException
- thrown if the padding is not supported when the key ring is encryptedInvalidAlgorithmParameterException
- thrown if the algorithm parameter is not supported when the key ring
is encryptedNoSuchAlgorithmException
- thrown if the algorithm is not supported when the key ring is
encryptedIllegalBlockSizeException
- thrown if the block size is not supported when the key ring is
encryptedBadPaddingException
- thrown if the padding is not supported when the key ring is encryptedInvalidKeyException
- thrown if the key is not valid when the key ring is encryptedIOException
- thrown if there are any issues communicating with Absio Broker™
application or writing the encrypted key ringBrokerException
- thrown if there are any Absio Broker™ application issues
creating or updating the key fileInterruptedException
- thrown when there is an interruption during rate limitingpublic byte[] changeCredentials(String password, String passphrase, String reminder) throws IllegalArgumentException, IllegalAccessException, NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException, IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException, IOException, BrokerException, InterruptedException
getReminder(UUID)
).
NOTE: this requires an initialized and authenticated session. Also, both the password and passphrase are required.
password
- the new password for the authenticated user (required)passphrase
- the new passphrase for the authenticated user (required)reminder
- the reminder for the authenticated userIllegalArgumentException
- thrown if the password or passphrase are null or emptyIllegalAccessException
- thrown if the provider is not authenticatedNoSuchPaddingException
- thrown if the padding is not supported when the key ring is encryptedInvalidAlgorithmParameterException
- thrown if the algorithm parameter is not supported when the key ring
is encryptedNoSuchAlgorithmException
- thrown if the algorithm is not supported when the key ring is
encryptedIllegalBlockSizeException
- thrown if the block size is not supported when the key ring is
encryptedBadPaddingException
- thrown if the padding is not supported when the key ring is encryptedInvalidKeyException
- thrown if the key is not valid when the key ring is encryptedIOException
- thrown if there are any issues communicating with Absio Broker™
application or writing the encrypted key ringBrokerException
- thrown if there are any Absio Broker™ application issues
creating or updating the key fileInterruptedException
- thrown when there is an interruption during rate limitingpublic SecuredContainer create(byte[] content, String customHeaderObject, List<Access> accesses, String type) throws Exception
SecuredContainer.getId()
to learn the assigned ID.
Calling this method requires an authenticated session. See logIn(UUID, String, String)
for authenticating.
create
in interface IContainerProvider
content
- the container's contentcustomHeaderObject
- the container's headeraccesses
- the container's access list - if null the container will have default access for the
creatortype
- the container's typeSecuredContainer
Exception
- thrown if there are any issues encrypting and persisting the container in the Absio
Broker™ applicationpublic SecuredContainer createOrUpdate(Container container) throws Exception
Container
and uploads the encrypted content and the Metadata
to the Absio
Broker™ application.createOrUpdate
in interface IContainerProvider
container
- the Container
to create or updateSecuredContainer
Exception
- thrown if there are any issues encrypting and persisting the container in the Absio
Broker™ applicationpublic SecuredContainer createOrUpdate(SecuredContainer container) throws IOException, InterruptedException, BrokerException, IllegalAccessException
SecuredContainer
and the Metadata
to the Absio Broker™
application.createOrUpdate
in interface IContainerProvider
container
- the SecuredContainer
to create or updateSecuredContainer
with the new metadata from the Absio Broker™ applicationInterruptedException
- 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 issuesIllegalAccessException
- thrown if the session is not authenticatedpublic void createOrUpdatePublicKey(IndexedECPublicKey publicKey) throws BrokerException, IOException, IllegalAccessException, InterruptedException
NOTE: this requires an initialized and authenticated session.
publicKey
- the public key to create or updateBrokerException
- thrown if there are any Absio Broker™ application issues creating or
updating the keyIOException
- thrown if there are any issues communicating with Absio Broker™ application
or writing the public keyIllegalAccessException
- thrown if the session is not authenticatedInterruptedException
- thrown when there is an interruption during rate limitingpublic void createOrUpdatePublicKey(ECPublicKey publicKey, KeyType type, int index, boolean active) throws BrokerException, IOException, IllegalAccessException, InterruptedException
NOTE: this requires an initialized and authenticated session.
publicKey
- the public key to create or updatetype
- the key type to create or updateindex
- the key index to create or updateactive
- the active state of the key to create or updateBrokerException
- thrown if there are any Absio Broker™ application issues creating or
updating the keyIOException
- thrown if there are any issues communicating with Absio Broker™ application
or writing the public keyIllegalAccessException
- thrown if the session is not authenticatedInterruptedException
- thrown when there is an interruption during rate limitingpublic void delete(UUID containerId) throws InterruptedException, BrokerException, IOException, IllegalAccessException
delete
in interface IContainerProvider
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 issuesIllegalAccessException
- thrown if the session is not authenticatedpublic void deleteUser() throws IllegalAccessException, IOException, BrokerException, InterruptedException
NOTE: this requires an initialized and authenticated session.
WARNING: this will completely delete the user from Absio Broker™ application
IllegalAccessException
- thrown if the session is not authenticatedIOException
- thrown if there are any issues communicating with Absio Broker™ applicationBrokerException
- thrown if there are any Absio Broker™ application issues deleting the userInterruptedException
- thrown when there is an interruption during rate limitingpublic Container get(UUID containerId) throws Exception
SecuredContainer
from the Absio Broker™ application. This will have the encrypted data
as well as the metadata from the Absio Broker™ application.get
in interface IContainerProvider
containerId
- the id of the container to getSecuredContainer
(a Container
Exception
- thrown if there are any issues getting or decrypting the secured containerpublic byte[] getContent(UUID containerId) throws Exception
Calling this method requires an authenticated session. See logIn(UUID, String, String)
for authenticating.
getContent
in interface IContainerProvider
containerId
- the id of the secured container to get the content ofException
- thrown if there are any issues getting or decrypting the secured container contentpublic EventPackage getEvents(EventActionType actionType, EventType eventType, Long startingId, Long endingId, UUID containerId, String containerType) throws IOException, InterruptedException, BrokerException, IllegalAccessException
actionType
- the specific type action you wish to pull (null will get all actions)eventType
- the specific type of events you wish to pull (null will get all events)startingId
- the id to start pulling from (null will start from the beginning)endingId
- the id to stop pulling from (null will get all events)containerId
- the specific id of a container to pull events for (null will get events for all containers)containerType
- the specific type value to look for events for (null will get containers with any type
value)IOException
- thrown if there were any IO issuesInterruptedException
- thrown if there were issues while dealing with rate limitingBrokerException
- thrown if there were any issues with the requests to Absio Broker™
applicationIllegalAccessException
- thrown if the session is not authenticatedpublic EventsMapper getEventsMapper()
EventsMapper
.EventsMapper
public Header getHeader(UUID containerId) throws Exception
Calling this method requires an authenticated session. See logIn(UUID, String, String)
for authenticating.
getHeader
in interface IContainerProvider
containerId
- the id of the secured container to get the header ofException
- thrown if there are any issues getting or decrypting the secured container headerpublic ContainerInfo getInfo(UUID containerId) throws InterruptedException, BrokerException, IOException, IllegalAccessException
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 issuesIllegalAccessException
- thrown if the session is not authenticatedpublic KeyFileMapper getKeyFileMapper()
KeyFileMapper
.KeyFileMapper
public IndexedECPublicKey getPublicKeyByIndex(UUID userId, KeyType type, int index) throws BrokerException, IOException, IllegalAccessException, InterruptedException
NOTE: this requires an initialized and authenticated session.
userId
- the user id that owns the key in question (required)type
- the type of the key in question (required)index
- the index of the key in question (required)BrokerException
- thrown if there are any Absio Broker™ application issues getting the keyIOException
- thrown if there are any issues communicating with Absio Broker™
applicationIllegalAccessException
- thrown if the session is not authenticatedIllegalArgumentException
- thrown if the userId or type are nullInterruptedException
- thrown when there is an interruption during rate limitingpublic IndexedECPublicKey getPublicKeyLatestActive(UUID userId, KeyType type) throws BrokerException, IOException, IllegalAccessException, InterruptedException
NOTE: this requires an initialized and authenticated session.
userId
- the user id that owns the key in question (required)type
- the type of the key in question (required)BrokerException
- thrown if there are any Absio Broker™ application issues getting the keyIOException
- thrown if there are any issues communicating with Absio Broker™
applicationIllegalAccessException
- thrown if the session is not authenticatedIllegalArgumentException
- thrown if the userId or type are nullInterruptedException
- thrown when there is an interruption during rate limitingpublic List<IndexedECPublicKey> getPublicKeyList(UUID userId, KeyType type, Integer index) throws BrokerException, IOException, IllegalAccessException, InterruptedException
NOTE: this requires an initialized and authenticated session and pass in null to ignore a parameter.
userId
- the user's ID (required)type
- the key type or ignored if nullindex
- the key index or ignored if nullBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuesIllegalAccessException
- thrown if the session is not authenticatedInterruptedException
- thrown when there is an interruption during rate limitingpublic PublicKeyMapper getPublicKeyMapper()
PublicKeyMapper
.PublicKeyMapper
public String getReminder() throws IllegalAccessException, IOException, BrokerException, InterruptedException
BrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuesIllegalAccessException
- thrown if the session is not authenticatedInterruptedException
- thrown when there is an interruption during rate limitingpublic String getReminder(UUID userId) throws IllegalAccessException, IOException, BrokerException, InterruptedException
userId
- the user's IDBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuesIllegalAccessException
- thrown if the session is not initializedInterruptedException
- thrown when there is an interruption during rate limitingpublic SecuredContainerMapper getSecuredContainerMapper()
SecuredContainerMapper
.SecuredContainerMapper
public Session getSession()
Session
. This is the rest client and associated credentials for the session.Session
public UserMapper getUserMapper()
UserMapper
.UserMapper
public void initialize(String serverUrl, String apiKey, String applicationName) throws NoSuchPaddingException, NoSuchAlgorithmException
Session
and create the internal mappers.serverUrl
- the Absio Broker™ application URLapiKey
- the provider's Absio Broker™ application API KeyapplicationName
- the application name for debugging purposes (placed in the http headers when communicating
with Absio Broker™ application)NoSuchPaddingException
- thrown if the default padding for symmetric encryption is not supportedNoSuchAlgorithmException
- thrown if ECDH is not supportedpublic boolean isAuthenticated()
KeyRing
).public boolean isInitialized()
Session
and the mappers have been created).
Please see initialize(String, String, String)
for how to initialize this provider.public byte[] logIn(UUID userId, String password, String passphrase) throws IllegalArgumentException, IllegalAccessException, NoSuchAlgorithmException, BrokerException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException, IOException, SignatureException, InterruptedException
KeyRing
to authenticate with Absio Broker™ application.
NOTE: this requires an initialized session.
userId
- the user to log in (required)password
- the user's password (can be null - passphrase will be used)passphrase
- the usere's passphrase (required)IllegalAccessException
- thrown if the session is not initializedNoSuchAlgorithmException
- thrown if the algorithm is not known to decrypt the key fileBrokerException
- thrown when the Absio Broker™ application has an issue with the
requestNoSuchPaddingException
- thrown if the padding is not supported to decrypt the key fileInvalidKeyException
- thrown when there was an error with the key for signing data to be
sent to Absio Broker™ applicationIllegalBlockSizeException
- thrown if the cipher block size is wrong to decrypt the key fileBadPaddingException
- thrown if the cipher padding is not supported to decrypt the key fileInvalidAlgorithmParameterException
- thrown if the cipher algorithm is not supported to decrypt the key
fileSignatureException
- thrown when there was an error signing data to be sent to Absio
Broker™ applicationIOException
- thrown when there are any IO issuesIllegalArgumentException
- thrown if the user id or passphrase are not providedInterruptedException
- thrown when there is an interruption during rate limitingpublic void logIn(KeyRing keyRing) throws IllegalAccessException, BrokerException, SignatureException, InvalidKeyException, IOException, InterruptedException, NoSuchAlgorithmException, NoSuchPaddingException
NOTE: this requires an initialized session.
keyRing
- the user's private key ring.BrokerException
- thrown when the Absio Broker™ application has an issue with the requestSignatureException
- thrown when there was an error signing data to be sent to Absio Broker™
applicationIOException
- thrown when there are any IO issuesInvalidKeyException
- thrown when there was an error with the key for signing data to be sent to Absio
Broker™ applicationIllegalAccessException
- thrown if the session is not initializedInterruptedException
- thrown when there is an interruption during rate limitingNoSuchAlgorithmException
- thrown if the algorithm is not known to decrypt the key fileNoSuchPaddingException
- thrown if the padding is not supported to decrypt the key filepublic void logOut()
public boolean needToSyncAccount(UUID userId, byte[] keyFileBytes) throws IllegalAccessException, NoSuchAlgorithmException, BrokerException, IOException, InterruptedException
userId
- the user's IDkeyFileBytes
- the encrypted key fileBrokerException
- thrown when the Absio Broker™ application has an issue with the requestIOException
- thrown when there are any IO issuesNoSuchAlgorithmException
- thrown when a cryptographic algorithm is not supportedInterruptedException
- thrown when there is an interruption during rate limitingIllegalAccessException
- thrown if the session is not initializedpublic byte[] register(String password, String passphrase) throws IllegalArgumentException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, IllegalAccessException, NoSuchPaddingException, IllegalBlockSizeException, IOException, BadPaddingException, SignatureException, InvalidKeyException, BrokerException, InterruptedException
NOTE: this requires an initialized session.
password
- the new user's password (required)passphrase
- the new user's passphrase (required)IllegalArgumentException
- thrown if the password or passphrase are empty or nullInvalidAlgorithmParameterException
- thrown if the cipher algorithm is not supported to decrypt the key
fileNoSuchAlgorithmException
- thrown if the algorithm is not known to decrypt the key fileIllegalAccessException
- thrown if the session is not initializedIOException
- thrown when there are any IO issuesBrokerException
- thrown when the Absio Broker™ application has an issue with the
requestSignatureException
- thrown when there was an error signing data to be sent to Absio
Broker™ applicationInvalidKeyException
- thrown when there was an error with the key for signing data to be
sent to Absio Broker™ applicationNoSuchPaddingException
- thrown if the padding is not supported to decrypt the key fileBadPaddingException
- thrown if the cipher padding is not supported to decrypt the key fileIllegalBlockSizeException
- thrown if the cipher block size is wrong to decrypt the key fileInterruptedException
- thrown when there is an interruption during rate limitingpublic byte[] register(String password, String passphrase, String reminder) throws IllegalArgumentException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, IllegalAccessException, IOException, BrokerException, SignatureException, InvalidKeyException, NoSuchPaddingException, BadPaddingException, IllegalBlockSizeException, InterruptedException
NOTE: this requires an initialized session.
password
- the new user's password (required)passphrase
- the new user's passphrase (required)reminder
- the new user's reminder (optional - will be blank if not provided)IllegalArgumentException
- thrown if the password or passphrase are empty or nullInvalidAlgorithmParameterException
- thrown if the cipher algorithm is not supported to decrypt the key
fileNoSuchAlgorithmException
- thrown if the algorithm is not known to decrypt the key fileIllegalAccessException
- thrown if the session is not initializedIOException
- thrown when there are any IO issuesBrokerException
- thrown when the Absio Broker™ application has an issue with the
requestSignatureException
- thrown when there was an error signing data to be sent to Absio
Broker™ applicationInvalidKeyException
- thrown when there was an error with the key for signing data to be
sent to Absio Broker™ applicationNoSuchPaddingException
- thrown if the padding is not supported to decrypt the key fileBadPaddingException
- thrown if the cipher padding is not supported to decrypt the key fileIllegalBlockSizeException
- thrown if the cipher block size is wrong to decrypt the key fileInterruptedException
- thrown when there is an interruption during rate limitingpublic SecuredContainer update(UUID containerId, byte[] content, String headerString, List<Access> accesses, String type) throws Exception
Calling this method requires an authenticated session. See logIn(UUID, String, String)
for authenticating.
update
in interface IContainerProvider
containerId
- the id of the secured container to updatecontent
- the new contentheaderString
- the new headeraccesses
- This is the defined access for all users. If null, the user updating the container will get
full access (Access.DefaultOwnerPermissions). If any access is defined then the user creating
the updating will get the defined access or no access if none is defined.type
- the new typeSecuredContainer
with the new metadata from the Absio Broker™ applicationException
- thrown if there any issues encrypting and updating the data on the Absio Broker™
applicationpublic void updateAccess(UUID containerId, List<Access> accessLevels) throws IOException, InterruptedException, BrokerException, IllegalAccessException
SecuredContainer
on the Absio Broker™ application.updateAccess
in interface IContainerProvider
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 issuesIllegalAccessException
- thrown if the session is not authenticatedpublic SecuredContainer updateContent(UUID containerId, byte[] newContent) throws Exception
SecuredContainer
on the Absio Broker™ application.updateContent
in interface IContainerProvider
containerId
- the id of the secured container to update the content ofnewContent
- the new contentSecuredContainer
with the new metadata from the Absio Broker™ applicationException
- thrown if there any issues encrypting and updating the data on the Absio Broker™
applicationpublic SecuredContainer updateHeader(UUID containerId, String headerString) throws Exception
Calling this method requires an authenticated session. See logIn(UUID, String, String)
for authenticating.
updateHeader
in interface IContainerProvider
containerId
- the id of the secured containerheaderString
- the new headerException
- thrown if there are any issues encrypting and updating the header in the file systempublic void updateType(UUID containerId, String type) throws IOException, InterruptedException, BrokerException, IllegalAccessException
SecuredContainer
on the Absio Broker™ application.
Calling this method requires an authenticated session. See logIn(UUID, String, String)
for authenticating.
updateType
in interface IContainerProvider
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 issuesIllegalAccessException
- thrown if the session is not authenticatedCopyright © 2021. All rights reserved.