|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.spec.ECFieldFp
public class ECFieldFp
This immutable class defines an elliptic curve (EC) prime finite field.
ECField
Constructor Summary | |
---|---|
ECFieldFp(BigInteger p)
Creates an elliptic curve prime finite field with the specified prime p . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares this prime finite field for equality with the specified object. |
int |
getFieldSize()
Returns the field size in bits which is size of prime p for this prime finite field. |
BigInteger |
getP()
Returns the prime p of this prime finite field. |
int |
hashCode()
Returns a hash code value for this prime finite field. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ECFieldFp(BigInteger p)
p
.
p
- the prime.
NullPointerException
- if p
is null.
IllegalArgumentException
- if p
is not positive.Method Detail |
---|
public int getFieldSize()
getFieldSize
in interface ECField
public BigInteger getP()
p
of this prime finite field.
public boolean equals(Object obj)
equals
in class Object
obj
- the object to be compared.
obj
is an instance
of ECFieldFp and the prime value match, false otherwise.Object.hashCode()
,
Hashtable
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
Hashtable
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.