public class DESEncryption extends ConnectionEncryption
| Constructor and Description | 
|---|
| DESEncryption(DOConnection conn) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | initParameters(HeaderSet request,
              HeaderSet response)Set up the encryption mechanism and put the parameters into the given
 HeaderSet so that they can be communicated to the other side. | 
| void | processIncomingChunk(java.nio.ByteBuffer buf)Decrypts the incoming chunk of bytes and puts the result back into the
 given ByteBuffer for reading. | 
| java.nio.ByteBuffer | processOutgoingChunk(java.nio.ByteBuffer buf)Processes the outgoing chunk of bytes and returns the processed version. | 
| void | setParameters(HeaderSet parameters)Set up the parameters for the encryption/decryption process. | 
constructInstance, getRandompublic DESEncryption(DOConnection conn)
public void initParameters(HeaderSet request, HeaderSet response) throws java.lang.Exception
initParameters in class ConnectionEncryptionjava.lang.Exceptionpublic void setParameters(HeaderSet parameters) throws java.lang.Exception
java.lang.Exceptionpublic void processIncomingChunk(java.nio.ByteBuffer buf)
                          throws java.security.GeneralSecurityException
ConnectionEncryptionprocessIncomingChunk in class ConnectionEncryptionjava.security.GeneralSecurityExceptionpublic java.nio.ByteBuffer processOutgoingChunk(java.nio.ByteBuffer buf)
                                         throws java.security.GeneralSecurityException
processOutgoingChunk in class ConnectionEncryptionjava.security.GeneralSecurityExceptionConnectionEncryption.processOutgoingChunk(ByteBuffer)