Class ElGamal

  • All Implemented Interfaces:
    KeyType

    public final class ElGamal
    extends java.lang.Object
    implements KeyType
    ElGamal encryption only key type.
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: KeyType
        Return the encryption algorithm name.
        Specified by:
        getName in interface KeyType
        Returns:
        algorithm name.
      • getAlgorithmSpec

        public java.security.spec.AlgorithmParameterSpec getAlgorithmSpec()
        Description copied from interface: KeyType
        Return an implementation of AlgorithmParameterSpec that can be used to generate the key.
        Specified by:
        getAlgorithmSpec in interface KeyType
        Returns:
        algorithm parameter spec
      • canSign

        public boolean canSign()
        Description copied from interface: KeyType
        Return true if the key that is generated from this type is able to carry the SIGN_DATA key flag. See KeyFlag.SIGN_DATA.
        Specified by:
        canSign in interface KeyType
        Returns:
        true if the key can sign.
      • canEncryptCommunication

        public boolean canEncryptCommunication()
        Description copied from interface: KeyType
        Return true if the key that is generated from this type is able to carry the ENCRYPT_COMMS key flag. See KeyFlag.ENCRYPT_COMMS.
        Specified by:
        canEncryptCommunication in interface KeyType
        Returns:
        true if the key can encrypt communication