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

public class RTMPSMinaIoHandler extends RTMPMinaIoHandler
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 Details

    • log

      private static org.slf4j.Logger log
    • keystorePassword

      private String keystorePassword
      Password for accessing the keystore.
    • truststorePassword

      private String truststorePassword
      Password for accessing the truststore.
    • keystoreFile

      private String keystoreFile
      Stores the keystore path.
    • truststoreFile

      private String truststoreFile
      Stores the truststore path.
    • cipherSuites

      private String[] cipherSuites
      Names of the SSL cipher suites which are currently enabled for use.
    • protocols

      private String[] protocols
      Names of the protocol versions which are currently enabled for use.
    • useClientMode

      private boolean useClientMode
      Use client (or server) mode when handshaking.
    • needClientAuth

      private boolean needClientAuth
      Request the need of client authentication.
    • wantClientAuth

      private boolean wantClientAuth
      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 good
  • Constructor Details

    • RTMPSMinaIoHandler

      public RTMPSMinaIoHandler()
  • Method Details

    • sessionCreated

      public void sessionCreated(org.apache.mina.core.session.IoSession session) throws Exception
      Specified by:
      sessionCreated in interface org.apache.mina.core.service.IoHandler
      Overrides:
      sessionCreated in class RTMPMinaIoHandler
      Throws:
      Exception
    • setKeystorePassword

      public void setKeystorePassword(String password)
      Password used to access the keystore file.
      Parameters:
      password - keystore password
    • setTruststorePassword

      public void setTruststorePassword(String password)
      Password used to access the truststore file.
      Parameters:
      password - truststore password
    • setKeystoreFile

      public void setKeystoreFile(String path)
      Set keystore data from a file.
      Parameters:
      path - contains keystore
    • setTruststoreFile

      public void setTruststoreFile(String path)
      Set truststore file path.
      Parameters:
      path - contains truststore
    • getCipherSuites

      public String[] getCipherSuites()
    • setCipherSuites

      public void setCipherSuites(String[] cipherSuites)
    • getProtocols

      public String[] getProtocols()
    • setProtocols

      public void setProtocols(String[] protocols)
    • setUseClientMode

      public void setUseClientMode(boolean useClientMode)
    • setNeedClientAuth

      public void setNeedClientAuth(boolean needClientAuth)
    • setWantClientAuth

      public void setWantClientAuth(boolean wantClientAuth)