Package org.bouncycastle.asn1.x9
Class OtherInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x9.OtherInfo
- All Implemented Interfaces:
ASN1Encodable
,Encodable
ASN.1 def for Diffie-Hellman key exchange OtherInfo structure. See
RFC 2631, or X9.42, for further details.
OtherInfo ::= SEQUENCE { keyInfo KeySpecificInfo, partyAInfo [0] OCTET STRING OPTIONAL, suppPubInfo [2] OCTET STRING }
-
Constructor Summary
ConstructorsConstructorDescriptionOtherInfo
(KeySpecificInfo keyInfo, ASN1OctetString partyAInfo, ASN1OctetString suppPubInfo) -
Method Summary
Modifier and TypeMethodDescriptionstatic OtherInfo
getInstance
(Object obj) Return a OtherInfo object from the passed in object.Return the key specific info for the KEK/CEK.PartyA info for key deriviation.The length of the KEK to be generated as a 4 byte big endian.Return an ASN.1 primitive representation of this object.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
OtherInfo
-
-
Method Details
-
getInstance
Return a OtherInfo object from the passed in object.- Parameters:
obj
- an object for conversion or a byte[].- Returns:
- a OtherInfo
-
getKeyInfo
Return the key specific info for the KEK/CEK.- Returns:
- the key specific info.
-
getPartyAInfo
PartyA info for key deriviation.- Returns:
- PartyA info.
-
getSuppPubInfo
The length of the KEK to be generated as a 4 byte big endian.- Returns:
- KEK length as a 4 byte big endian in an octet string.
-
toASN1Primitive
Return an ASN.1 primitive representation of this object.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a DERSequence containing the OtherInfo values.
-