Package org.red5.server.net.rtmps
Class RTMPSMinaIoHandler
java.lang.Object
org.apache.mina.core.service.IoHandlerAdapter
org.red5.server.net.rtmp.RTMPMinaIoHandler
org.red5.server.net.rtmps.RTMPSMinaIoHandler
- All Implemented Interfaces:
org.apache.mina.core.service.IoHandler
Handles Native RTMPS protocol events fired by the MINA framework.
var nc:NetConnection = new NetConnection(); nc.proxyType = "best"; nc.connect("rtmps:\\localhost\app");https://issues.apache.org/jira/browse/DIRMINA-272 https://issues.apache.org/jira/browse/DIRMINA-997 Transport Layer Security (TLS) Renegotiation Issue http://www.oracle.com/technetwork/java/javase/documentation/tlsreadme2-176330.html Secure renegotiation https://jce.iaik.tugraz.at/sic/Products/Communication-Messaging-Security/iSaSiLk/documentation/Secure-Renegotiation Troubleshooting a HTTPS TLSv1 handshake http://integr8consulting.blogspot.com/2012/02/troubleshooting-https-tlsv1-handshake.html How to analyze Java SSL errors http://www.smartjava.org/content/how-analyze-java-ssl-errors
- Author:
- Kevin Green (kevygreen@gmail.com), Paul Gregoire (mondain@gmail.com)
-
Field Summary
Modifier and TypeFieldDescriptionprivate String[]
Names of the SSL cipher suites which are currently enabled for use.private String
Stores the keystore path.private String
Password for accessing the keystore.private static org.slf4j.Logger
private boolean
Request the need of client authentication.private String[]
Names of the protocol versions which are currently enabled for use.private String
Stores the truststore path.private String
Password for accessing the truststore.private boolean
Use client (or server) mode when handshaking.private boolean
Indicates that we would like to authenticate the client but if client certificates are self-signed or have no certificate chain then we are still goodFields inherited from class org.red5.server.net.rtmp.RTMPMinaIoHandler
handler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
String[]
void
sessionCreated
(org.apache.mina.core.session.IoSession session) void
setCipherSuites
(String[] cipherSuites) void
setKeystoreFile
(String path) Set keystore data from a file.void
setKeystorePassword
(String password) Password used to access the keystore file.void
setNeedClientAuth
(boolean needClientAuth) void
setProtocols
(String[] protocols) void
setTruststoreFile
(String path) Set truststore file path.void
setTruststorePassword
(String password) Password used to access the truststore file.void
setUseClientMode
(boolean useClientMode) void
setWantClientAuth
(boolean wantClientAuth) Methods inherited from class org.red5.server.net.rtmp.RTMPMinaIoHandler
createRTMPMinaConnection, exceptionCaught, messageReceived, messageSent, sessionClosed, sessionOpened, setCodecFactory, setHandler
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter
inputClosed, sessionIdle
-
Field Details
-
log
private static org.slf4j.Logger log -
keystorePassword
Password for accessing the keystore. -
truststorePassword
Password for accessing the truststore. -
keystoreFile
Stores the keystore path. -
truststoreFile
Stores the truststore path. -
cipherSuites
Names of the SSL cipher suites which are currently enabled for use. -
protocols
Names of the protocol versions which are currently enabled for use. -
useClientMode
private boolean useClientModeUse client (or server) mode when handshaking. -
needClientAuth
private boolean needClientAuthRequest the need of client authentication. -
wantClientAuth
private boolean wantClientAuthIndicates that we would like to authenticate the client but if client certificates are self-signed or have no certificate chain then we are still good
-
-
Constructor Details
-
RTMPSMinaIoHandler
public RTMPSMinaIoHandler()
-
-
Method Details
-
sessionCreated
- Specified by:
sessionCreated
in interfaceorg.apache.mina.core.service.IoHandler
- Overrides:
sessionCreated
in classRTMPMinaIoHandler
- Throws:
Exception
-
setKeystorePassword
Password used to access the keystore file.- Parameters:
password
- keystore password
-
setTruststorePassword
Password used to access the truststore file.- Parameters:
password
- truststore password
-
setKeystoreFile
Set keystore data from a file.- Parameters:
path
- contains keystore
-
setTruststoreFile
Set truststore file path.- Parameters:
path
- contains truststore
-
getCipherSuites
-
setCipherSuites
-
getProtocols
-
setProtocols
-
setUseClientMode
public void setUseClientMode(boolean useClientMode) -
setNeedClientAuth
public void setNeedClientAuth(boolean needClientAuth) -
setWantClientAuth
public void setWantClientAuth(boolean wantClientAuth)
-