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

public Class X9FieldElement

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Object, .ASN1Primitive, .DEROctetString, org.bouncycastle.math.ec.ECFieldElement

class for processing an FieldElement as a DER object.

Field Summary

Modifier and TypeField and Description
private static X9IntegerConverter
protected ECFieldElement
f

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ECFieldElement
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

converterback to summary
private static X9IntegerConverter converter
fback to summary
protected ECFieldElement f

Constructor Detail

X9FieldElementback to summary
public X9FieldElement(ECFieldElement f)

Method Detail

getValueback to summary
public ECFieldElement getValue()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

 FieldElement ::= OCTET STRING

  1. if q is an odd prime then the field element is processed as an Integer and converted to an octet string according to x 9.62 4.3.1.
  2. if q is 2m then the bit string contained in the field element is converted into an octet string with the same ordering padded at the front if necessary.
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.