Package org.bouncycastle.crypto.util
Class DERMacData.Builder
java.lang.Object
org.bouncycastle.crypto.util.DERMacData.Builder
- Enclosing class:
DERMacData
Builder to create OtherInfo
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(DERMacData.Type type, byte[] idU, byte[] idV, byte[] ephemDataU, byte[] ephemDataV) Create a basic builder with just the compulsory fields. -
Method Summary
-
Constructor Details
-
Builder
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 Details
-
withText
Add optional text.- Parameters:
text- optional agreed text to add to the MAC.- Returns:
- the current builder instance.
-
build
-