Package org.gudy.bouncycastle.asn1.x9
Class KeySpecificInfo
- java.lang.Object
-
- org.gudy.bouncycastle.asn1.x9.KeySpecificInfo
-
- All Implemented Interfaces:
DEREncodable
public class KeySpecificInfo extends java.lang.Object implements DEREncodable
ASN.1 def for Diffie-Hellman key exchange KeySpecificInfo structure. See RFC 2631, or X9.42, for further details.
-
-
Field Summary
Fields Modifier and Type Field Description private DERObjectIdentifier
algorithm
private ASN1OctetString
counter
-
Constructor Summary
Constructors Constructor Description KeySpecificInfo(ASN1Sequence seq)
KeySpecificInfo(DERObjectIdentifier algorithm, ASN1OctetString counter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DERObjectIdentifier
getAlgorithm()
ASN1OctetString
getCounter()
DERObject
getDERObject()
Produce an object suitable for an ASN1OutputStream.
-
-
-
Field Detail
-
algorithm
private DERObjectIdentifier algorithm
-
counter
private ASN1OctetString counter
-
-
Constructor Detail
-
KeySpecificInfo
public KeySpecificInfo(DERObjectIdentifier algorithm, ASN1OctetString counter)
-
KeySpecificInfo
public KeySpecificInfo(ASN1Sequence seq)
-
-
Method Detail
-
getAlgorithm
public DERObjectIdentifier getAlgorithm()
-
getCounter
public ASN1OctetString getCounter()
-
getDERObject
public DERObject getDERObject()
Produce an object suitable for an ASN1OutputStream.KeySpecificInfo ::= SEQUENCE { algorithm OBJECT IDENTIFIER, counter OCTET STRING SIZE (4..4) }
- Specified by:
getDERObject
in interfaceDEREncodable
-
-