com.entrust.toolkit.security.crypto.ec insteadpublic class FieldElementFactory
extends java.lang.Object
FieldElement interface.| Constructor and Description |
|---|
FieldElementFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static FieldElement |
getInstance(ASN1Object object,
Field field)
Deprecated.
Returns a field element as an instance of the
FieldElement
interface. |
static FieldElement |
getInstance(byte[] value,
Field field)
Deprecated.
Returns a field element as an instance of the
FieldElement
interface. |
public static FieldElement getInstance(byte[] value, Field field) throws CodingException, java.lang.IllegalArgumentException
FieldElement
interface.value - an ASN1 encoded value, given as a byte array, that represents
a field element
Field interface specified by the
additional field argument.field - a Field object the field to which the
element belongsFieldElement interfaceCodingException - if problems occur when parsing the byte array (for example, if
the object is ill formed)java.lang.IllegalArgumentException - if field is neither GFp nor
PolynomialFieldpublic static FieldElement getInstance(ASN1Object object, Field field) throws CodingException, java.lang.IllegalArgumentException
FieldElement
interface.object - an ASN1 object that represents the field element
Field interface specified by the
additional field argument.field - a Field object the field to which the
element belongsFieldElement interfaceCodingException - if problems occur when parsing the byte array (for example, if
the object is illformed)java.lang.IllegalArgumentException - if field is neither GFp nor
PolynomialField