|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Field Summary | |
static int |
POLICY_AGGRESSIVE
|
static int |
POLICY_CONSERVATIVE
|
static int |
POLICY_NORMAL
|
| Method Summary | |
boolean |
bayesianCheck(java.lang.String m,
java.lang.StringBuffer top)
bayesianCheck determines if given message is SPAM based on Bayesian algorithm. |
boolean |
containsVirus(java.lang.String msg)
containsVirus checks if given message has email-worm. |
java.lang.String |
createAnalysis(java.lang.String msg)
createAnalysis checks if given message has email-worm. |
java.util.ArrayList |
findMatchingRules(java.lang.String msg)
findMatchingRules returns an array of rules that match with the given message |
java.lang.String[] |
getAdminAddresses(java.lang.String msg)
getAdminAddresses finds administrator's email addresses for the hosts where message was originated. |
java.lang.String[] |
getHostAdmins(java.lang.String[] hosts)
getHostAdmins finds administrator's email addresses for the given hosts. |
java.lang.String |
getOriginatingIp(java.lang.String msg)
getOriginatingIp finds address of host where message was created. |
java.lang.String[] |
getRouteIPs(java.lang.String msg,
java.util.List fakeRoutes,
java.util.List natRoutes,
java.util.List ignoreRoutes)
getRouteIPs finds addresses of hosts where message was routed. |
boolean |
isNatAddress(java.lang.String ip)
isNatAddress checks if ip address is NAT address. |
boolean |
isSpam(java.lang.String msg,
int policy,
java.lang.StringBuffer reason)
isSpam checks if given message is SPAM |
boolean |
razorCheck(java.lang.String msg)
razorCheck checks if message exists in SpamNet/Vipul's Razor |
java.lang.String[] |
razorRegister(java.lang.String user,
java.lang.String pass)
razorRegister registers with SpamNet/Vipul's Razor |
void |
razorReport(java.lang.String user,
java.lang.String pass,
java.lang.String msg)
razorReport checks if message exists in SpamNet/Vipul's Razor |
void |
razorRevoke(java.lang.String user,
java.lang.String pass,
java.lang.String msg)
razorRevoke revoke message from SpamNet/Vipul's Razor |
java.lang.String[][] |
razorSignatures(java.lang.String msg)
razorSignatures returns vr1, vr2, vr3 and vr4 signatures for Vipul's Razor |
void |
reportOrbs(java.lang.String ip)
reportOrbs reports an IP address to ORBs |
| Field Detail |
public static final int POLICY_AGGRESSIVE
public static final int POLICY_NORMAL
public static final int POLICY_CONSERVATIVE
| Method Detail |
public java.lang.String[] getAdminAddresses(java.lang.String msg)
throws javax.mail.MessagingException,
java.rmi.RemoteException
msg - - stringified message containing email
javax.mail.MessagingException
java.rmi.RemoteException
public java.lang.String[] getHostAdmins(java.lang.String[] hosts)
throws javax.mail.MessagingException,
java.rmi.RemoteException
hosts - - list of hosts
javax.mail.MessagingException
java.rmi.RemoteException
public java.lang.String getOriginatingIp(java.lang.String msg)
throws javax.mail.MessagingException,
java.rmi.RemoteException
msg - - stringified message to check
javax.mail.MessagingException
java.rmi.RemoteException
public java.lang.String[] getRouteIPs(java.lang.String msg,
java.util.List fakeRoutes,
java.util.List natRoutes,
java.util.List ignoreRoutes)
throws javax.mail.MessagingException,
java.rmi.RemoteException
msg - - stringified message to checkfakeRoutes - - if message contains fake routes, this will contain
list of host names. Each element of this vector will of type String.natRoutes - - if message contains NAT routes, this will contain
list of host names. Each element of this vector will of type String.ignoreRoutes - - this will store list of "Received" route entries
that do not start with valid "from " line. Each element of
this vector will of type String.
javax.mail.MessagingException
java.rmi.RemoteException
public boolean isNatAddress(java.lang.String ip)
throws java.rmi.RemoteException
ip - - IP address to check
java.rmi.RemoteException
public boolean isSpam(java.lang.String msg,
int policy,
java.lang.StringBuffer reason)
throws javax.mail.MessagingException,
java.rmi.RemoteException
msg - - stringified message to checkpolicy - can be either POLICY_AGGRESSIVE, POLICY_NORMAL or
POLICY_CONSERVATIVE. Some blackhole lists are more aggressive
than others and this determines which lists to use.reason - -- returns reason why message was considered SPAM
javax.mail.MessagingException
java.rmi.RemoteException
public boolean containsVirus(java.lang.String msg)
throws javax.mail.MessagingException,
java.rmi.RemoteException
msg - - stringified message to check
javax.mail.MessagingException
java.rmi.RemoteException
public void reportOrbs(java.lang.String ip)
throws java.rmi.RemoteException
ip - - host address
java.rmi.RemoteException
public java.lang.String createAnalysis(java.lang.String msg)
throws javax.mail.MessagingException,
java.rmi.RemoteException
msg - - stringified message to check
javax.mail.MessagingException
java.rmi.RemoteException
public boolean razorCheck(java.lang.String msg)
throws javax.mail.MessagingException,
java.io.IOException,
java.rmi.RemoteException
msg - - stringified message to check
javax.mail.MessagingException
java.io.IOException
java.rmi.RemoteException
public void razorReport(java.lang.String user,
java.lang.String pass,
java.lang.String msg)
throws javax.mail.MessagingException,
java.io.IOException,
java.rmi.RemoteException
user - - user id as registered with Vipul's Razorpass - - plain password as registered with Vipul's Razormsg - - stringified message to check
java.io.IOException - if message cannot be parsed or failed to communicate
with SpamNet servers.
MessaingException - if message cannot be parsed
javax.mail.MessagingException
java.rmi.RemoteException
public void razorRevoke(java.lang.String user,
java.lang.String pass,
java.lang.String msg)
throws javax.mail.MessagingException,
java.io.IOException,
java.rmi.RemoteException
user - - user id as registered with Vipul's Razorpass - - plain password as registered with Vipul's Razormsg - - stringified message to check
java.io.IOException - if message cannot be parsed or failed to communicate
with SpamNet servers.
MessaingException - if message cannot be parsed
javax.mail.MessagingException
java.rmi.RemoteException
public java.lang.String[] razorRegister(java.lang.String user,
java.lang.String pass)
throws javax.mail.MessagingException,
java.io.IOException,
java.rmi.RemoteException
user - - user id to register or null if to be selected by
Vipul's razor.pass - - plain password to register or null if to be selected by
Vipul's razor.
java.io.IOException - if message cannot be parsed or failed to communicate
with SpamNet servers.
MessaingException - if message cannot be parsed
javax.mail.MessagingException
java.rmi.RemoteException
public java.lang.String[][] razorSignatures(java.lang.String msg)
throws javax.mail.MessagingException,
java.io.IOException,
java.rmi.RemoteException
msg - - stringified message to check
java.io.IOException - if message cannot be parsed or failed to communicate
with SpamNet servers.
MessaingException - if message cannot be parsed
javax.mail.MessagingException
java.rmi.RemoteException
public java.util.ArrayList findMatchingRules(java.lang.String msg)
throws javax.mail.MessagingException,
java.rmi.RemoteException
msg - - message to analyze
javax.mail.MessagingException
java.rmi.RemoteExceptionRule
public boolean bayesianCheck(java.lang.String m,
java.lang.StringBuffer top)
throws java.io.IOException,
javax.mail.MessagingException,
java.rmi.RemoteException
java.io.IOException
javax.mail.MessagingException
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||