org.jpos.iso.filter
Class MD5Filter
java.lang.Object
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: 2854 $ $Date: 2010-01-02 02:34:31 -0800 (Sat, 02 Jan 2010) $
- Author:
- Alejandro P. Revilla
- See Also:
ISOFilter
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MD5Filter
public MD5Filter()
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 instancem - ISOMsg to filterevt - LogEvent
- Returns:
- an ISOMsg (possibly parameter m)
- Throws:
ISOFilter.VetoException