org.tolven.security
Interface AccountProcessingProtectionLocal

All Known Implementing Classes:
AccountProcessingProtectionBean

public interface AccountProcessingProtectionLocal

This interface protects the DocBase by handling its encryption and decryption.

Author:
Joseph Isaac

Method Summary
 void decryptTolvenMessage(TolvenMessage tm)
          Decrypt TolvenMessage payload(s) in place
 void encryptTolvenMessage(TolvenMessage tm)
          Encrypt the payload(s) of a TolvenMessage for queuing.
 byte[] getDecryptedContent(TolvenMessage tm)
           
 java.io.InputStream getDecryptedContentAsInputStream(TolvenMessage tm)
           
 void setAsEncryptedContent(byte[] unencryptedContent, TolvenMessage tm)
           
 

Method Detail

setAsEncryptedContent

void setAsEncryptedContent(byte[] unencryptedContent,
                           TolvenMessage tm)
                           throws javax.security.auth.login.LoginException,
                                  java.security.GeneralSecurityException,
                                  java.io.IOException
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

encryptTolvenMessage

void encryptTolvenMessage(TolvenMessage tm)
                          throws javax.security.auth.login.LoginException,
                                 java.security.GeneralSecurityException,
                                 java.io.IOException
Encrypt the payload(s) of a TolvenMessage for queuing.

Parameters:
tm -
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

decryptTolvenMessage

void decryptTolvenMessage(TolvenMessage tm)
                          throws javax.security.auth.login.LoginException,
                                 java.security.GeneralSecurityException,
                                 java.io.IOException
Decrypt TolvenMessage payload(s) in place

Parameters:
tm -
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

getDecryptedContent

byte[] getDecryptedContent(TolvenMessage tm)
                           throws javax.security.auth.login.LoginException,
                                  java.security.GeneralSecurityException,
                                  java.io.IOException
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

getDecryptedContentAsInputStream

java.io.InputStream getDecryptedContentAsInputStream(TolvenMessage tm)
                                                     throws javax.security.auth.login.LoginException,
                                                            java.security.GeneralSecurityException,
                                                            java.io.IOException
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException