|
||||||||||
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 SessionFilter
sessionStarted
in class SessionFilterAdapter
filterChain
- session filter chain
java.lang.Exception
- any exceptionpublic void sessionClosed(SessionFilterChain filterChain) throws java.lang.Exception
SessionFilter
sessionClosed
in interface SessionFilter
sessionClosed
in class SessionFilterAdapter
filterChain
- 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 SessionFilter
packetReceived
in class SessionFilterAdapter
filterChain
- session filter chainpacket
- the received packet
java.lang.Exception
- any exceptionpublic void packetSend(SessionFilterChain filterChain, Packet packet) throws java.lang.Exception
SessionFilter
packetSend
in interface SessionFilter
packetSend
in class SessionFilterAdapter
filterChain
- 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 |