Bouncy Castle Cryptography 1.48

org.bouncycastle.asn1.x9
Class OtherInfo

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.x9.OtherInfo
All Implemented Interfaces:
ASN1Encodable

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
OtherInfo(ASN1Sequence seq)
           
OtherInfo(KeySpecificInfo keyInfo, ASN1OctetString partyAInfo, ASN1OctetString suppPubInfo)
           
 
Method Summary
 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

Bouncy Castle Cryptography 1.48