org.tolven.security.bean
Class AccountProcessingProtectionBean

java.lang.Object
  extended by org.tolven.security.bean.AccountProcessingProtectionBean
All Implemented Interfaces:
AccountProcessingProtectionLocal, AccountProcessingProtectionRemote

public class AccountProcessingProtectionBean
extends java.lang.Object
implements AccountProcessingProtectionLocal, AccountProcessingProtectionRemote

This class protects document content during processing

Author:
Joseph Isaac

Constructor Summary
AccountProcessingProtectionBean()
           
 
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.
 TolvenMessage getAsEncryptedTolvenMessage(byte[] unencryptedContent, TolvenMessage tm)
           
 byte[] getDecryptedContent(TolvenMessage tm)
           
 java.io.InputStream getDecryptedContentAsInputStream(TolvenMessage tm)
           
 void setAsEncryptedContent(byte[] unencryptedContent, TolvenMessage tm)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountProcessingProtectionBean

public AccountProcessingProtectionBean()
Method Detail

encryptTolvenMessage

public 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.

Specified by:
encryptTolvenMessage in interface AccountProcessingProtectionLocal
Parameters:
account -
tm -
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

setAsEncryptedContent

public void setAsEncryptedContent(byte[] unencryptedContent,
                                  TolvenMessage tm)
                           throws javax.security.auth.login.LoginException,
                                  java.security.GeneralSecurityException,
                                  java.io.IOException
Specified by:
setAsEncryptedContent in interface AccountProcessingProtectionLocal
Specified by:
setAsEncryptedContent in interface AccountProcessingProtectionRemote
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

getAsEncryptedTolvenMessage

public TolvenMessage getAsEncryptedTolvenMessage(byte[] unencryptedContent,
                                                 TolvenMessage tm)
                                          throws javax.security.auth.login.LoginException,
                                                 java.security.GeneralSecurityException,
                                                 java.io.IOException
Specified by:
getAsEncryptedTolvenMessage in interface AccountProcessingProtectionRemote
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

getDecryptedContent

public byte[] getDecryptedContent(TolvenMessage tm)
                           throws javax.security.auth.login.LoginException,
                                  java.security.GeneralSecurityException,
                                  java.io.IOException
Specified by:
getDecryptedContent in interface AccountProcessingProtectionLocal
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

decryptTolvenMessage

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

Specified by:
decryptTolvenMessage in interface AccountProcessingProtectionLocal
Parameters:
tm -
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException

getDecryptedContentAsInputStream

public java.io.InputStream getDecryptedContentAsInputStream(TolvenMessage tm)
                                                     throws javax.security.auth.login.LoginException,
                                                            java.security.GeneralSecurityException,
                                                            java.io.IOException
Specified by:
getDecryptedContentAsInputStream in interface AccountProcessingProtectionLocal
Throws:
javax.security.auth.login.LoginException
java.security.GeneralSecurityException
java.io.IOException