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
- Direct Known Subclasses:
MockRTMPSMinaIoHandler
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 ([email protected]), Paul Gregoire ([email protected])
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String[]Names of the SSL cipher suites which are currently enabled for use.private StringStores the keystore path.private StringPassword for accessing the keystore.private static org.slf4j.Loggerprivate booleanRequest the need of client authentication.private String[]Names of the protocol versions which are currently enabled for use.private StringStores the truststore path.private StringPassword for accessing the truststore.private booleanUse client (or server) mode when handshaking.private booleanIndicates 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]String[]voidsessionCreated(org.apache.mina.core.session.IoSession session) voidsetCipherSuites(String[] cipherSuites) voidsetKeystoreFile(String path) Set keystore data from a file.voidsetKeystorePassword(String password) Password used to access the keystore file.voidsetNeedClientAuth(boolean needClientAuth) voidsetProtocols(String[] protocols) voidsetTruststoreFile(String path) Set truststore file path.voidsetTruststorePassword(String password) Password used to access the truststore file.voidsetUseClientMode(boolean useClientMode) voidsetWantClientAuth(boolean wantClientAuth) Methods inherited from class org.red5.server.net.rtmp.RTMPMinaIoHandler
createRTMPMinaConnection, exceptionCaught, messageReceived, messageSent, sessionClosed, sessionOpened, setCodecFactory, setHandlerMethods 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:
sessionCreatedin interfaceorg.apache.mina.core.service.IoHandler- Overrides:
sessionCreatedin 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)
-