public static final class DEROtherInfo.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(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.
|
Modifier and Type | Method and Description |
---|---|
DEROtherInfo |
build()
Build the KTSOtherInfo.
|
DEROtherInfo.Builder |
withSuppPrivInfo(byte[] suppPrivInfo)
Add optional supplementary private info (DER tagged, implicit, 1).
|
DEROtherInfo.Builder |
withSuppPubInfo(byte[] suppPubInfo)
Add optional supplementary public info (DER tagged, implicit, 0).
|
public Builder(DEROtherInfo otherInfo)
otherInfo
- the algorithm associated with this invocation of the KDF.public Builder(AlgorithmIdentifier algorithmID, byte[] partyUInfo, byte[] partyVInfo)
algorithmID
- the algorithm associated with this invocation of the KDF.partyUInfo
- sender party info.partyVInfo
- receiver party info.public DEROtherInfo.Builder withSuppPubInfo(byte[] suppPubInfo)
suppPubInfo
- supplementary public info.public DEROtherInfo.Builder withSuppPrivInfo(byte[] suppPrivInfo)
suppPrivInfo
- supplementary private info.public DEROtherInfo build()