Secure storage for credentials in platform-provided credential managers.
MIT License
Unified interface to store Java application secrets on different platforms backed by built-in credential managers.
The library is derivative work from Visual Studio Team Services Authentication Library for Java (Preview),
auth-secure-storage
module in particular, focusing on secure storage only.
This library provides a set of secure storage
providers that store retrieved secrets, as well as In memory insecure storage.
Secret Type | Windows(Credential Manager) | Linux (GNOME Keyring v2.22+/Libsecret) | Mac OSX(Keychain) |
---|---|---|---|
Username / Password Credentials (StoredCredential ) |
Yes | Yes | Yes |
OAuth2 Access/Refresh Token (StoredTokenPair ) |
Yes (On Windows 7, 8/8.1 and 10) | Yes | Yes |
Personal Access Token (StoredToken ) |
Yes | Yes | Yes |
Maven is the preferred way to referencing this library.
<dependency>
<groupId>com.microsoft</groupId>
<artifactId>credential-secure-storage</artifactId>
<version>1.0.0</version>
</dependency>
Here is sample code for credentials that shows how to use this library.
mvn clean verify
The MIT license can be found in LICENSE.txt See the NOTICE.txt file for required notices and attributions.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.