public class SecuredContainer extends Object
Container. The data is encrypted and formatted using EncryptionHelper.| Constructor and Description |
|---|
SecuredContainer(byte[] bytes,
Metadata metadata)
Create a secured container with the given bytes and metadata.
|
| Modifier and Type | Method and Description |
|---|---|
static SecuredContainer |
create(InputStream securedStream,
Metadata metadata)
Create a secured container with the given input stream and metadata.
|
boolean |
equals(Object obj) |
boolean |
equals(SecuredContainer sc)
Check to see if the passed in
SecuredContainer matches this container. |
byte[] |
getBytes()
Get the formatted encrypted bytes of the
SecuredContainer. |
UUID |
getId()
Get the unique id of the container.
|
long |
getLength()
Get the length of the formatted encrypted bytes of the
SecuredContainer. |
Metadata |
getMetadata()
Get the metadata of the
SecuredContainer. |
int |
hashCode() |
public SecuredContainer(byte[] bytes,
Metadata metadata)
bytes - the formatted bytes that make up themetadata - the container metadatapublic static SecuredContainer create(InputStream securedStream, Metadata metadata) throws IOException
securedStream - the encrypted formatted streammetadata - the container metadataSecuredContainer with the bytes from the input stream and the metadataIOException - thrown if there any issues reading in the bytes from the input streampublic boolean equals(SecuredContainer sc)
SecuredContainer matches this container.sc - the secured container to compare withpublic byte[] getBytes()
SecuredContainer.SecuredContainerpublic UUID getId()
public long getLength()
SecuredContainer.SecuredContainerpublic Metadata getMetadata()
SecuredContainer. This contains information about the container (such as Access, creation and modification information).SecuredContainerCopyright © 2021. All rights reserved.