Message Security Layer (MSL) is an extensible and flexible secure messaging protocol that can be used to transport data between two or more communicating entities. Data may also be associated with specific users, and treated as confidential or non-replayable if so desired.
The MSL Protocol provides a complete description of the protocol and implementation requirements. TheConfiguration Guide presents some common client and server MSL configurations. The protocol and configuration guide were reviewed by an external security firm. No issues were identified.
The set of public interfaces and classes an application must implement and use is documented in thePublic Javadoc. Documentation on all of the code, including internal classes and private methods, can be found in the full Javadoc.
For questions and support please contact Wesley Miaw directly. Bugs and feature requests should be filed in the Issue Tracker.
The Java MSL code base requires the org.json and Bouncy Castle libraries. The unit tests require JUnit 4and the integration tests require TestNG.
All third-party libraries are subject to their respective license agreements.
To build an application that uses MSL for communication, you must read through and understand the MSL Protocol. This is necessary because unlike other security protocols and libraries, you must make choices about how to secure your communication and authenticate your entities and users. The Configuration Guide can help you make those decisions.
The application interface to the MSL stack is
MslControl. The application configuration for a single MSL network is an instance of
MslContext. Your application may participate in multiple MSL networks and therefore have multiple instances of
MslContext but only one
MslControl should be used. Message-specific configuration, such as the user or security properties of that message, are specified in individual instances of
The Java MSL code base includes project files for Eclipse and IntelliJ IDEA.
You may need to install the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files to use cryptographic keys above a certain size.
- Chrome Browser 37+
For earlier versions:
On Linux libnss 3.16.2+ must be separately installed.
- Firefox 34+
For earlier versions:
- Internet Explorer 11+
- Safari 8+
Your browser may not support all Web Crypto API algorithms, key sizes, and features. If you encounter a problem with a Web Crypto operation please check the release notes for your browser version to determine if it supports what you are trying to do.
Copyright 2014 Netflix, Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.