OtherInfo (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.asn1.x9

## Class OtherInfo

- java.lang.Object
- - org.bouncycastle.asn1.ASN1Object
  - - org.bouncycastle.asn1.x9.OtherInfo

- All Implemented Interfaces:
    ASN1Encodable, Encodable

      public class OtherInfo
      extends ASN1Object

  ANS.1 def for Diffie-Hellman key exchange OtherInfo structure. See RFC 2631, or X9.42, for further details.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OtherInfo(ASN1Sequence seq)`
    `OtherInfo(KeySpecificInfo keyInfo, ASN1OctetString partyAInfo, ASN1OctetString suppPubInfo)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `KeySpecificInfo` | `getKeyInfo()`
    `ASN1OctetString` | `getPartyAInfo()`
    `ASN1OctetString` | `getSuppPubInfo()`
    `ASN1Primitive` | `toASN1Primitive()` Produce an object suitable for an ASN1OutputStream.

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Object

      `equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OtherInfo

          public OtherInfo(KeySpecificInfo keyInfo,
                   ASN1OctetString partyAInfo,
                   ASN1OctetString suppPubInfo)

    - #### OtherInfo

          public OtherInfo(ASN1Sequence seq)

  - ### Method Detail

    - #### getKeyInfo

          public KeySpecificInfo getKeyInfo()

    - #### getPartyAInfo

          public ASN1OctetString getPartyAInfo()

    - #### getSuppPubInfo

          public ASN1OctetString getSuppPubInfo()

    - #### toASN1Primitive

          public ASN1Primitive toASN1Primitive()

      Produce an object suitable for an ASN1OutputStream.

            OtherInfo ::= SEQUENCE {
                keyInfo KeySpecificInfo,
                partyAInfo [0] OCTET STRING OPTIONAL,
                suppPubInfo [2] OCTET STRING
            }

      Specified by:
        `toASN1Primitive` in interface `ASN1Encodable`
      Specified by:
        `toASN1Primitive` in class `ASN1Object`
      Returns:
        a primitive representation of this object.