Class DHE
java.lang.Object
net.ME1312.SubData.Client.Encryption.DHE
- All Implemented Interfaces:
Cipher,CipherFactory
Diffie-Hellman Exchange Handler Class (agrees upon and uses an AES encryption key)
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoiddecrypt(DataClient client, InputStream in, OutputStream out) Decrypt Datavoidencrypt(DataClient client, InputStream in, OutputStream out) Encrypt Datastatic DHEget(int keyLength) Get the DHE instanceGet a cipher by namegetName()Get the name of this CipherGet a cipher by namestatic voidremoveCipher(String handle) voidretire(DataClient client) Retire this encryption method for a specified Client
-
Method Details
-
getName
Description copied from interface:CipherGet the name of this Cipher -
get
Get the DHE instance- Returns:
- DHE
-
encrypt
Description copied from interface:CipherEncrypt Data -
decrypt
Description copied from interface:CipherDecrypt Data -
retire
Description copied from interface:CipherRetire this encryption method for a specified Client -
newCipher
Description copied from interface:CipherFactoryGet a cipher by name- Specified by:
newCipherin interfaceCipherFactory- Parameters:
handle- Cipher name- Returns:
- Cipher/Token pair
-
getCipher
Description copied from interface:CipherFactoryGet a cipher by name- Specified by:
getCipherin interfaceCipherFactory- Parameters:
handle- Cipher namekey- Token- Returns:
- Cipher
-
addCipher
-
removeCipher
-