public class Header extends Object
SecuredContainer. This data can be decrypted separate from the
actual encrypted content. Thus, identifying information, rules, controls, etc can be encrypted separate and
processed separate from the actual content.
NOTE: the custom data is just a String. You can put whatever you can represent as a String in there.
Thus, feel free to put JSON values or anything else in there.
| Constructor and Description |
|---|
Header(int version,
String customData)
Create a header with the given version and custom data.
|
Header(String customData)
Create a header with the default version and the given custom data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Header header)
Check to see if the passed in header is equal in value to this header.
|
boolean |
equals(Object obj) |
String |
getCustomData()
Get the custom data of the header.
|
int |
getVersion()
Get the version of the header.
|
int |
hashCode() |
public Header(String customData)
customData - the custom datapublic Header(int version,
String customData)
version - the version of the headercustomData - the custom datapublic boolean equals(Header header)
header - the header to compare withpublic String getCustomData()
public int getVersion()
Copyright © 2021. All rights reserved.