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 void
void
decrypt
(DataClient client, InputStream in, OutputStream out) Decrypt Datavoid
encrypt
(DataClient client, InputStream in, OutputStream out) Encrypt Datastatic DHE
get
(int keyLength) Get the DHE instanceGet a cipher by namegetName()
Get the name of this CipherGet a cipher by namestatic void
removeCipher
(String handle) void
retire
(DataClient client) Retire this encryption method for a specified Client
-
Method Details
-
getName
Description copied from interface:Cipher
Get the name of this Cipher -
get
Get the DHE instance- Returns:
- DHE
-
encrypt
Description copied from interface:Cipher
Encrypt Data -
decrypt
Description copied from interface:Cipher
Decrypt Data -
retire
Description copied from interface:Cipher
Retire this encryption method for a specified Client -
newCipher
Description copied from interface:CipherFactory
Get a cipher by name- Specified by:
newCipher
in interfaceCipherFactory
- Parameters:
handle
- Cipher name- Returns:
- Cipher/Token pair
-
getCipher
Description copied from interface:CipherFactory
Get a cipher by name- Specified by:
getCipher
in interfaceCipherFactory
- Parameters:
handle
- Cipher namekey
- Token- Returns:
- Cipher
-
addCipher
-
removeCipher
-