public static final class DERMacData.Builder
extends java.lang.Object
| Constructor and Description |
|---|
DERMacData.Builder(DERMacData.Type type,
byte[] idU,
byte[] idV,
byte[] ephemDataU,
byte[] ephemDataV)
Create a basic builder with just the compulsory fields.
|
| Modifier and Type | Method and Description |
|---|---|
DERMacData |
build() |
DERMacData.Builder |
withText(byte[] text)
Add optional text.
|
public DERMacData.Builder(DERMacData.Type type, byte[] idU, byte[] idV, byte[] ephemDataU, byte[] ephemDataV)
type - the MAC headeridU - sender party ID.idV - receiver party ID.ephemDataU - ephemeral data from sender.ephemDataV - ephemeral data from receiver.public DERMacData.Builder withText(byte[] text)
text - optional agreed text to add to the MAC.public DERMacData build()