| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cindy.SessionFilterAdapter
net.sf.cindy.filter.SSLFilter
public class SSLFilter
SSL/TLS filter, require java 5.0.
| Constructor Summary | |
|---|---|
SSLFilter(javax.net.ssl.SSLContext context)
 | 
|
| Method Summary | |
|---|---|
 javax.net.ssl.SSLContext | 
getSSLContext()
 | 
protected  void | 
initSSLEngine(javax.net.ssl.SSLEngine engine)
Templet method.  | 
 boolean | 
isClientMode()
 | 
 boolean | 
isNeedClientAuth()
 | 
 void | 
packetReceived(SessionFilterChain filterChain,
               Packet packet)
Session received a packet.  | 
 void | 
packetSend(SessionFilterChain filterChain,
           Packet packet)
Filter before send packet.  | 
 void | 
sessionClosed(SessionFilterChain filterChain)
Session have closed.  | 
 void | 
sessionStarted(SessionFilterChain filterChain)
Session have started.  | 
 void | 
setClientMode(boolean clientMode)
 | 
 void | 
setNeedClientAuth(boolean needClientAuth)
 | 
| Methods inherited from class net.sf.cindy.SessionFilterAdapter | 
|---|
exceptionCaught, objectReceived, objectSent, packetSent, sessionTimeout | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SSLFilter(javax.net.ssl.SSLContext context)
| Method Detail | 
|---|
public javax.net.ssl.SSLContext getSSLContext()
public boolean isClientMode()
public void setClientMode(boolean clientMode)
public boolean isNeedClientAuth()
public void setNeedClientAuth(boolean needClientAuth)
public void sessionStarted(SessionFilterChain filterChain)
                    throws java.lang.Exception
SessionFilter
sessionStarted in interface SessionFiltersessionStarted in class SessionFilterAdapterfilterChain - session filter chain
java.lang.Exception - any exception
public void sessionClosed(SessionFilterChain filterChain)
                   throws java.lang.Exception
SessionFilter
sessionClosed in interface SessionFiltersessionClosed in class SessionFilterAdapterfilterChain - session filter chain
java.lang.Exception - any exceptionprotected void initSSLEngine(javax.net.ssl.SSLEngine engine)
public void packetReceived(SessionFilterChain filterChain,
                           Packet packet)
                    throws java.lang.Exception
SessionFilter
packetReceived in interface SessionFilterpacketReceived in class SessionFilterAdapterfilterChain - session filter chainpacket - the received packet
java.lang.Exception - any exception
public void packetSend(SessionFilterChain filterChain,
                       Packet packet)
                throws java.lang.Exception
SessionFilter
packetSend in interface SessionFilterpacketSend in class SessionFilterAdapterfilterChain - session filter chainpacket - send packet
java.lang.Exception - any exception
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||