Package org.bouncycastle.crypto.util
Class DEROtherInfo.Builder
java.lang.Object
org.bouncycastle.crypto.util.DEROtherInfo.Builder
- Enclosing class:
DEROtherInfo
Builder to create OtherInfo
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo) Create a basic builder with just the compulsory fields.Builder(DEROtherInfo otherInfo) Create a basic builder with just the compulsory fields. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the KTSOtherInfo.withSuppPrivInfo(byte[] suppPrivInfo) Add optional supplementary private info (DER tagged, implicit, 1).withSuppPubInfo(byte[] suppPubInfo) Add optional supplementary public info (DER tagged, implicit, 0).
-
Constructor Details
-
Builder
Create a basic builder with just the compulsory fields.- Parameters:
otherInfo- the algorithm associated with this invocation of the KDF.
-
Builder
Create a basic builder with just the compulsory fields.- Parameters:
algorithmID- the algorithm associated with this invocation of the KDF.partyUInfo- sender party info.partyVInfo- receiver party info.
-
-
Method Details
-
withSuppPubInfo
Add optional supplementary public info (DER tagged, implicit, 0).- Parameters:
suppPubInfo- supplementary public info.- Returns:
- the current builder instance.
-
withSuppPrivInfo
Add optional supplementary private info (DER tagged, implicit, 1).- Parameters:
suppPrivInfo- supplementary private info.- Returns:
- the current builder instance.
-
build
Build the KTSOtherInfo.- Returns:
- an KTSOtherInfo containing the data.
-