Bouncy Castle Cryptography 1.49

org.bouncycastle.asn1.x9
Class KeySpecificInfo

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

public class KeySpecificInfo
extends ASN1Object

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


Constructor Summary
KeySpecificInfo(ASN1ObjectIdentifier algorithm, ASN1OctetString counter)
           
KeySpecificInfo(ASN1Sequence seq)
           
 
Method Summary
 ASN1ObjectIdentifier getAlgorithm()
           
 ASN1OctetString getCounter()
           
 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

KeySpecificInfo

public KeySpecificInfo(ASN1ObjectIdentifier algorithm,
                       ASN1OctetString counter)

KeySpecificInfo

public KeySpecificInfo(ASN1Sequence seq)
Method Detail

getAlgorithm

public ASN1ObjectIdentifier getAlgorithm()

getCounter

public ASN1OctetString getCounter()

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
  KeySpecificInfo ::= SEQUENCE {
      algorithm OBJECT IDENTIFIER,
      counter OCTET STRING SIZE (4..4)
  }
 

Specified by:
toASN1Primitive in interface ASN1Encodable
Specified by:
toASN1Primitive in class ASN1Object

Bouncy Castle Cryptography 1.49