|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object extended by java.security.spec.ECParameterSpec
public class ECParameterSpec
This immutable class specifies the set of domain parameters used with elliptic curve cryptography (ECC).
AlgorithmParameterSpec
Constructor Summary | |
---|---|
ECParameterSpec(EllipticCurve curve,
ECPoint g,
BigInteger n,
int h)
Creates elliptic curve domain parameters based on the specified values. |
Method Summary | |
---|---|
int |
getCofactor()
Returns the cofactor. |
EllipticCurve |
getCurve()
Returns the elliptic curve that this parameter defines. |
ECPoint |
getGenerator()
Returns the generator which is also known as the base point. |
BigInteger |
getOrder()
Returns the order of the generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ECParameterSpec(EllipticCurve curve, ECPoint g, BigInteger n, int h)
curve
- the elliptic curve which this parameter
defines.g
- the generator which is also known as the base point.n
- the order of the generator g
.h
- the cofactor.
NullPointerException
- if curve
,
g
, or n
is null.
IllegalArgumentException
- if n
or h
is not positive.Method Detail |
---|
public EllipticCurve getCurve()
public ECPoint getGenerator()
public BigInteger getOrder()
public int getCofactor()
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.