Class DEROtherInfo.Builder

  • Enclosing class:
    DEROtherInfo

    public static final class DEROtherInfo.Builder
    extends java.lang.Object
    Builder to create OtherInfo
    • Constructor Detail

      • Builder

        public Builder​(AlgorithmIdentifier algorithmID,
                       byte[] partyUInfo,
                       byte[] partyVInfo)
        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 Detail

      • withSuppPubInfo

        public DEROtherInfo.Builder withSuppPubInfo​(byte[] suppPubInfo)
        Add optional supplementary public info (DER tagged, implicit, 0).
        Parameters:
        suppPubInfo - supplementary public info.
        Returns:
        the current builder instance.
      • withSuppPrivInfo

        public DEROtherInfo.Builder withSuppPrivInfo​(byte[] suppPrivInfo)
        Add optional supplementary private info (DER tagged, implicit, 1).
        Parameters:
        suppPrivInfo - supplementary private info.
        Returns:
        the current builder instance.
      • build

        public DEROtherInfo build()
        Build the KTSOtherInfo.
        Returns:
        an KTSOtherInfo containing the data.