public class ECDomainParameters extends Object implements org.bouncycastle.math.ec.ECConstants
Constructor and Description |
---|
ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve,
org.bouncycastle.math.ec.ECPoint G,
com.joshvm.java.math.BigInteger n) |
ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve,
org.bouncycastle.math.ec.ECPoint G,
com.joshvm.java.math.BigInteger n,
com.joshvm.java.math.BigInteger h) |
ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve,
org.bouncycastle.math.ec.ECPoint G,
com.joshvm.java.math.BigInteger n,
com.joshvm.java.math.BigInteger h,
byte[] seed) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
org.bouncycastle.math.ec.ECCurve |
getCurve() |
org.bouncycastle.math.ec.ECPoint |
getG() |
com.joshvm.java.math.BigInteger |
getH() |
com.joshvm.java.math.BigInteger |
getHInv() |
com.joshvm.java.math.BigInteger |
getN() |
byte[] |
getSeed() |
int |
hashCode()
Returns a hash code value for the object.
|
public ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, com.joshvm.java.math.BigInteger n)
public ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, com.joshvm.java.math.BigInteger n, com.joshvm.java.math.BigInteger h)
public ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, com.joshvm.java.math.BigInteger n, com.joshvm.java.math.BigInteger h, byte[] seed)
public org.bouncycastle.math.ec.ECCurve getCurve()
public org.bouncycastle.math.ec.ECPoint getG()
public com.joshvm.java.math.BigInteger getN()
public com.joshvm.java.math.BigInteger getH()
public com.joshvm.java.math.BigInteger getHInv()
public byte[] getSeed()
public boolean equals(Object obj)
Object
The equals
method implements an equivalence relation:
x
,
x.equals(x)
should return true
.
x
and
y
, x.equals(y)
should return
true
if and only if y.equals(x)
returns
true
.
x
,
y
, and z
, if x.equals(y)
returns true
and y.equals(z)
returns
true
, then x.equals(z)
should return
true
.
x
and y
, multiple invocations of x.equals(y)
consistently return true
or consistently return
false
, provided no information used in
equals
comparisons on the object is modified.
x
,
x.equals(null)
should return false
.
The equals method for class Object
implements
the most discriminating possible equivalence relation on objects;
that is, for any reference values x
and y
,
this method returns true
if and only if x
and
y
refer to the same object (x==y
has the
value true
).
equals
in class Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.Boolean.hashCode()
,
Hashtable
public int hashCode()
Object
java.util.Hashtable
.
The general contract of hashCode
is:
hashCode
method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
hashCode
in class Object
Object.equals(java.lang.Object)
,
Hashtable