|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.security.ecc.math.field.BinaryFieldFactory
Abstract base class for all binary field factories. Subclasses provide factory methods for concrete field implementations.
Use the static getInstance method to obtain an instance of the binary field factory. The implementing factory class for a specific irreducible polynomial can be set by the setDefaultFactory method.
Field Summary | |
protected int[] |
irreducible_
The irreducible polynomial for which this instance of a BinaryFieldFactory creates a BinaryField. |
Constructor Summary | |
BinaryFieldFactory()
|
Method Summary | |
abstract Field |
getField()
Creates a new (factory specific) implementation of a binary field. |
static FieldFactory |
getInstance(int[] irreducible)
Use this method to get a concrete instance of the factory for a specifis irreducible polynomial. |
static void |
setDefaultFactory(java.lang.Class factory,
int[] irreducible)
Set the field factory to be used for a specific irreducible polynomial. |
protected void |
setIrreducible(int[] irreducible)
This method is used to set the irreducible polynomial after creating an instance of a BinaryFieldFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int[] irreducible_
Constructor Detail |
public BinaryFieldFactory()
Method Detail |
public static FieldFactory getInstance(int[] irreducible) throws FieldException
FieldException
- if the irreducible polynomial is null
or the class of a factory cannot be found.public static void setDefaultFactory(java.lang.Class factory, int[] irreducible)
null
the default factory is set,
if the factory is null
the factory defined for this irreducible
polynomial is removed.
factory
- the class of the field factory that should be used. If
factory
is null
the factory defined for this irreducible
polynomial is removed.irreducible
- the irreducible polynomial for that the factory is used.
If irreducible
is null
the default factory is set.public abstract Field getField()
getField
in interface FieldFactory
FieldElement
protected void setIrreducible(int[] irreducible)
irreducible
-
|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |