FileDocCategorySizeDatePackage
X9FieldID.javaAPI DocAzureus 3.0.3.41598Mon Mar 20 04:56:46 GMT 2006org.bouncycastle.asn1.x9

X9FieldID

public class X9FieldID extends Object implements X9ObjectIdentifiers, org.bouncycastle.asn1.DEREncodable
ASN.1 def for Elliptic-Curve Field ID structure. See X9.62, for further details.

Fields Summary
private org.bouncycastle.asn1.DERObjectIdentifier
id
private org.bouncycastle.asn1.DERObject
parameters
Constructors Summary
public X9FieldID(org.bouncycastle.asn1.DERObjectIdentifier id, BigInteger primeP)

        this.id = id;
        this.parameters = new DERInteger(primeP);
	
public X9FieldID(org.bouncycastle.asn1.ASN1Sequence seq)

        this.id = (DERObjectIdentifier)seq.getObjectAt(0);
        this.parameters = (DERObject)seq.getObjectAt(1);
    
Methods Summary
public org.bouncycastle.asn1.DERObjectgetDERObject()
Produce a DER encoding of the following structure.
FieldID ::= SEQUENCE {
fieldType FIELD-ID.&id({IOSet}),
parameters FIELD-ID.&Type({IOSet}{@fieldType})
}

        ASN1EncodableVector v = new ASN1EncodableVector();

        v.add(this.id);
        v.add(this.parameters);

        return new DERSequence(v);
    
public org.bouncycastle.asn1.DERObjectIdentifiergetIdentifier()

        return id;
    
public org.bouncycastle.asn1.DERObjectgetParameters()

        return parameters;