Class ElGamal
- java.lang.Object
-
- org.pgpainless.key.generation.type.elgamal.ElGamal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PublicKeyAlgorithmgetAlgorithm()Deprecated.Return the public key algorithm.java.security.spec.AlgorithmParameterSpecgetAlgorithmSpec()Deprecated.Return an implementation ofAlgorithmParameterSpecthat can be used to generate the key.intgetBitStrength()Deprecated.Return the strength of the key in bits.java.lang.StringgetName()Deprecated.Return the encryption algorithm name.static ElGamalwithLength(ElGamalLength length)Deprecated.-
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
-
withLength
public static ElGamal withLength(ElGamalLength length)
Deprecated.
-
getName
public java.lang.String getName()
Deprecated.Description copied from interface:KeyTypeReturn the encryption algorithm name.
-
getAlgorithm
public PublicKeyAlgorithm getAlgorithm()
Deprecated.Description copied from interface:KeyTypeReturn the public key algorithm.- Specified by:
getAlgorithmin interfaceKeyType- Returns:
- public key algorithm
-
getBitStrength
public int getBitStrength()
Deprecated.Description copied from interface:KeyTypeReturn the strength of the key in bits.- Specified by:
getBitStrengthin interfaceKeyType- Returns:
- strength of the key in bits
-
getAlgorithmSpec
public java.security.spec.AlgorithmParameterSpec getAlgorithmSpec()
Deprecated.Description copied from interface:KeyTypeReturn an implementation ofAlgorithmParameterSpecthat can be used to generate the key.- Specified by:
getAlgorithmSpecin interfaceKeyType- Returns:
- algorithm parameter spec
-
-