Class EdDSA
- java.lang.Object
-
- org.pgpainless.key.generation.type.eddsa.EdDSA
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EdDSA
fromCurve(EdDSACurve curve)
PublicKeyAlgorithm
getAlgorithm()
Return the public key algorithm.AlgorithmParameterSpec
getAlgorithmSpec()
Return an implementation ofAlgorithmParameterSpec
that can be used to generate the key.int
getBitStrength()
Return the strength of the key in bits.String
getName()
Return the encryption algorithm name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pgpainless.key.generation.type.KeyType
canAuthenticate, canCertify, canEncryptCommunication, canEncryptStorage, canSign
-
-
-
-
Method Detail
-
fromCurve
public static EdDSA fromCurve(EdDSACurve curve)
-
getName
public String getName()
Description copied from interface:KeyType
Return the encryption algorithm name.
-
getAlgorithm
public PublicKeyAlgorithm getAlgorithm()
Description copied from interface:KeyType
Return the public key algorithm.- Specified by:
getAlgorithm
in interfaceKeyType
- Returns:
- public key algorithm
-
getBitStrength
public int getBitStrength()
Description copied from interface:KeyType
Return the strength of the key in bits.- Specified by:
getBitStrength
in interfaceKeyType
- Returns:
- strength of the key in bits
-
getAlgorithmSpec
public AlgorithmParameterSpec getAlgorithmSpec()
Description copied from interface:KeyType
Return an implementation ofAlgorithmParameterSpec
that can be used to generate the key.- Specified by:
getAlgorithmSpec
in interfaceKeyType
- Returns:
- algorithm parameter spec
-
-