Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.xafero:java-keyring:'
}
dependencies {
implementation("com.github.xafero:java-keyring:")
}
<dependency>
<groupId>com.github.xafero</groupId>
<artifactId>java-keyring</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.xafero" % "java-keyring" % ""
:dependencies [[com.github.xafero/java-keyring ""]]
java-keyring is a small library which provides java API to store password etc. securely. Currently Mac OS X, Windows and Linux (GNOME) are supported.
If you find bug, please let me know via issue tracker or twitter @east301. In addition, any patch/modification is highly welcome.
java-keyring package contains the following directories
mvn clean install
Source code of java-keyring and java-keyring-example are available under modified BSD license. See the file LICENSE for more details.
java-keyring uses the following library, thanks a lot! java-keyring package contains copy of compiled JNA library. Source code of the library is available at its project page.