Bouncy Castle Cryptography Library 1.37

org.bouncycastle.asn1.x9
Class KeySpecificInfo

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

public class KeySpecificInfo
extends ASN1Encodable

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


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
KeySpecificInfo(ASN1Sequence seq)
           
KeySpecificInfo(DERObjectIdentifier algorithm, ASN1OctetString counter)
           
 
Method Summary
 DERObjectIdentifier getAlgorithm()
           
 ASN1OctetString getCounter()
           
 DERObject toASN1Object()
          Produce an object suitable for an ASN1OutputStream.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeySpecificInfo

public KeySpecificInfo(DERObjectIdentifier algorithm,
                       ASN1OctetString counter)

KeySpecificInfo

public KeySpecificInfo(ASN1Sequence seq)
Method Detail

getAlgorithm

public DERObjectIdentifier getAlgorithm()

getCounter

public ASN1OctetString getCounter()

toASN1Object

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

Specified by:
toASN1Object in class ASN1Encodable

Bouncy Castle Cryptography Library 1.37