|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cnri.dobj.ConnectionEncryption
net.cnri.dobj.DESEncryption
public class DESEncryption
DESEncryption objects are capable of encrypting/decrypting data based on a secret key.
Constructor Summary | |
---|---|
DESEncryption(DOConnection conn)
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.cnri.dobj.ConnectionEncryption |
---|
constructInstance, getRandom |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DESEncryption(DOConnection conn)
Method Detail |
---|
public void initParameters(HeaderSet request, HeaderSet response) throws java.lang.Exception
initParameters
in class ConnectionEncryption
java.lang.Exception
public void setParameters(HeaderSet parameters) throws java.lang.Exception
java.lang.Exception
public void processIncomingChunk(java.nio.ByteBuffer buf) throws java.security.GeneralSecurityException
ConnectionEncryption
processIncomingChunk
in class ConnectionEncryption
java.security.GeneralSecurityException
public java.nio.ByteBuffer processOutgoingChunk(java.nio.ByteBuffer buf) throws java.security.GeneralSecurityException
processOutgoingChunk
in class ConnectionEncryption
java.security.GeneralSecurityException
ConnectionEncryption.processOutgoingChunk(ByteBuffer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |