Package org.bouncycastle.crypto.util
Class ByteMacData.Builder
- java.lang.Object
-
- org.bouncycastle.crypto.util.ByteMacData.Builder
-
- Enclosing class:
- ByteMacData
public static final class ByteMacData.Builder extends java.lang.ObjectBuilder to create OtherInfo
-
-
Constructor Summary
Constructors Constructor Description Builder(ByteMacData.Type type, byte[] idU, byte[] idV, byte[] ephemDataU, byte[] ephemDataV)Create a basic builder with just the compulsory fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteMacDatabuild()ByteMacData.BuilderwithText(byte[] text)Add optional text.
-
-
-
Constructor Detail
-
Builder
public Builder(ByteMacData.Type type, byte[] idU, byte[] idV, byte[] ephemDataU, byte[] ephemDataV)
Create a basic builder with just the compulsory fields.- Parameters:
type- the MAC headeridU- sender party ID.idV- receiver party ID.ephemDataU- ephemeral data from sender.ephemDataV- ephemeral data from receiver.
-
-
Method Detail
-
withText
public ByteMacData.Builder withText(byte[] text)
Add optional text.- Parameters:
text- optional agreed text to add to the MAC.- Returns:
- the current builder instance.
-
build
public ByteMacData build()
-
-