- Java 100%
|
|
||
|---|---|---|
| .github | ||
| config/checkstyle | ||
| sample | ||
| src | ||
| .gitattributes | ||
| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE.txt | ||
| NOTICE.txt | ||
| pom.xml | ||
| README.md | ||
| SECURITY.md | ||
Credential Secure Storage for Java
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.
What this library provides
This library provides a set of secure storage providers that store retrieved secrets, as well as In memory insecure storage.
Available Secure Storage Providers:
| 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 |
How to use this library
Maven is the preferred way to referencing this library.
<dependency>
<groupId>org.aglais</groupId>
<artifactId>credential-secure-storage</artifactId>
<version>1.0.4</version>
</dependency>
Here is sample code for credentials that shows how to use this library.
How to build
- JDK 11
- Maven 3.8+
mvn clean verify
License
The MIT license can be found in LICENSE.txt See the NOTICE.txt file for required notices and attributions.
Trademarks
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.