jPOS 1.6.1 API Documentation

org.jpos.iso.filter
Class MD5Filter

java.lang.Object
  extended by org.jpos.iso.filter.MD5Filter
All Implemented Interfaces:
Configurable, ReConfigurable, ISOFilter

public class MD5Filter
extends java.lang.Object
implements ISOFilter, ReConfigurable

Computes an MD5 based Message Authentication Code on outgoing messages and checks that MAC on incoming ones.

Since:
1.2.8
Version:
$Revision: 2594 $ $Date: 2008-01-22 08:41:31 -0800 (Tue, 22 Jan 2008) $
Author:
Alejandro P. Revilla
See Also:
ISOFilter

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jpos.iso.ISOFilter
ISOFilter.VetoException
 
Constructor Summary
MD5Filter()
           
 
Method Summary
 ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt)
           
 int[] getFields(ISOMsg m)
          factory method
 void setConfiguration(Configuration cfg)
           
 void setFields(int[] fields)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5Filter

public MD5Filter()
Method Detail

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Specified by:
setConfiguration in interface Configurable
Parameters:
cfg -
  • key - initial key
  • fields - Space separated field list
Throws:
ConfigurationException

setFields

public void setFields(int[] fields)

getFields

public int[] getFields(ISOMsg m)
factory method

Parameters:
m - current ISOMsg
Returns:
key fields associated with this ISOMsg

filter

public ISOMsg filter(ISOChannel channel,
                     ISOMsg m,
                     LogEvent evt)
              throws ISOFilter.VetoException
Specified by:
filter in interface ISOFilter
Parameters:
channel - current ISOChannel instance
m - ISOMsg to filter
evt - LogEvent
Returns:
an ISOMsg (possibly parameter m)
Throws:
ISOFilter.VetoException

jPOS.org