Class EdDSAParameterSpec
- java.lang.Object
-
- org.mariadb.jdbc.plugin.authentication.standard.ed25519.spec.EdDSAParameterSpec
-
- All Implemented Interfaces:
java.io.Serializable,java.security.spec.AlgorithmParameterSpec
- Direct Known Subclasses:
EdDSANamedCurveSpec
public class EdDSAParameterSpec extends java.lang.Object implements java.security.spec.AlgorithmParameterSpec, java.io.SerializableParameter specification for an EdDSA algorithm.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private GroupElementBprivate Curvecurveprivate java.lang.StringhashAlgoprivate ScalarOpsscprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description EdDSAParameterSpec(Curve curve, java.lang.String hashAlgo, ScalarOps sc, GroupElement B)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)GroupElementgetB()CurvegetCurve()java.lang.StringgetHashAlgorithm()ScalarOpsgetScalarOps()inthashCode()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
curve
private final Curve curve
-
hashAlgo
private final java.lang.String hashAlgo
-
sc
private final ScalarOps sc
-
B
private final GroupElement B
-
-
Constructor Detail
-
EdDSAParameterSpec
public EdDSAParameterSpec(Curve curve, java.lang.String hashAlgo, ScalarOps sc, GroupElement B)
- Parameters:
curve- the curvehashAlgo- the JCA string for the hash algorithmsc- the parameter L represented as ScalarOpsB- the parameter B- Throws:
java.lang.IllegalArgumentException- if hash algorithm is unsupported or length is wrong
-
-
Method Detail
-
getCurve
public Curve getCurve()
-
getHashAlgorithm
public java.lang.String getHashAlgorithm()
-
getScalarOps
public ScalarOps getScalarOps()
-
getB
public GroupElement getB()
- Returns:
- the base (generator)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-