Top Description Fields Constructors Methods
org.bouncycastle.asn1.x9

public Class OtherInfo

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence, .DERTaggedObject

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
 }

Field Summary

Modifier and TypeField and Description
private KeySpecificInfo
private ASN1OctetString
private ASN1OctetString

Constructor Summary

AccessConstructor and Description
public
OtherInfo(KeySpecificInfo keyInfo, ASN1OctetString partyAInfo, ASN1OctetString suppPubInfo)

private

Method Summary

Modifier and TypeMethod and Description
public static OtherInfo

Returns:

a OtherInfo
getInstance
(Object
an object for conversion or a byte[].
obj
)

Return a OtherInfo object from the passed in object.

public KeySpecificInfo

Returns:

the key specific info.
getKeyInfo
()

Return the key specific info for the KEK/CEK.

public ASN1OctetString

Returns:

PartyA info.
getPartyAInfo
()

PartyA info for key deriviation.

public ASN1OctetString

Returns:

KEK length as a 4 byte big endian in an octet string.
getSuppPubInfo
()

The length of the KEK to be generated as a 4 byte big endian.

public ASN1Primitive

Returns:

a DERSequence containing the OtherInfo values.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an ASN.1 primitive representation of this object.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

keyInfoback to summary
private KeySpecificInfo keyInfo
partyAInfoback to summary
private ASN1OctetString partyAInfo
suppPubInfoback to summary
private ASN1OctetString suppPubInfo

Constructor Detail

OtherInfoback to summary
public OtherInfo(KeySpecificInfo keyInfo, ASN1OctetString partyAInfo, ASN1OctetString suppPubInfo)
OtherInfoback to summary
private OtherInfo(ASN1Sequence seq)

Method Detail

getInstanceback to summary
public static OtherInfo getInstance(Object obj)

Return a OtherInfo object from the passed in object.

Parameters
obj:Object

an object for conversion or a byte[].

Returns:OtherInfo

a OtherInfo

getKeyInfoback to summary
public KeySpecificInfo getKeyInfo()

Return the key specific info for the KEK/CEK.

Returns:KeySpecificInfo

the key specific info.

getPartyAInfoback to summary
public ASN1OctetString getPartyAInfo()

PartyA info for key deriviation.

Returns:ASN1OctetString

PartyA info.

getSuppPubInfoback to summary
public ASN1OctetString getSuppPubInfo()

The length of the KEK to be generated as a 4 byte big endian.

Returns:ASN1OctetString

KEK length as a 4 byte big endian in an octet string.

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Return an ASN.1 primitive representation of this object.

Returns:ASN1Primitive

a DERSequence containing the OtherInfo values.