public static final class ByteMacData.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(ByteMacData.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 |
---|---|
ByteMacData |
build() |
ByteMacData.Builder |
withText(byte[] text)
Add optional text.
|
public Builder(ByteMacData.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 ByteMacData.Builder withText(byte[] text)
text
- optional agreed text to add to the MAC.public ByteMacData build()