Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muntashirakon/sun-security-android
Use the Android-private sun.security library
https://github.com/muntashirakon/sun-security-android
android-library keystore-provider security
Last synced: 3 months ago
JSON representation
Use the Android-private sun.security library
- Host: GitHub
- URL: https://github.com/muntashirakon/sun-security-android
- Owner: MuntashirAkon
- License: gpl-2.0
- Created: 2021-04-04T05:36:39.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-22T10:14:59.000Z (over 3 years ago)
- Last Synced: 2024-04-14T00:31:51.061Z (9 months ago)
- Topics: android-library, keystore-provider, security
- Language: Java
- Homepage:
- Size: 462 KB
- Stars: 11
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sun.security for Android
Android port of [`sun.security` API from JDK7](http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/9b8c96f96a0f/src/share/classes/sun/security). Android actually have this API but only partially and is very restrictive.
[![](https://jitpack.io/v/MuntashirAkon/sun-security-android.svg)](https://jitpack.io/#MuntashirAkon/sun-security-android)
## Quick start
apksig for Android is available via JitPack.```groovy
// Top level build file
repositories {
maven { url "https://jitpack.io" }
}// Add to dependencies section
dependencies {
implementation 'com.github.MuntashirAkon:sun-security-android:1.0'
}
```Use `android.sun.security` instead of just `sun.security` for package names. It also contains the calendar API which can be used to create certificates.
### Register KeyStores
Override `Application#onCreate()` and put the following line there:
```java
Security.addProvider(new JavaKeyStoreProvider());
```## Features
It contains support for the following. See Java docs on `sun.security` for their usage.
* Support for `pk8`
* `JKS` and `PKCS12`
* Anything under `sun.security.x509`## License
GPL-2.0 with "classpath" exception stated below:```
Linking this library statically or dynamically with other modules is making
a combined work based on this library. Thus, the terms and conditions of
the GNU General Public License cover the whole combination.As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent modules,
and to copy and distribute the resulting executable under terms of your
choice, provided that you also meet, for each linked independent module,
the terms and conditions of the license of that module. An independent
module is a module which is not derived from or based on this library. If
you modify this library, you may extend this exception to your version of
the library, but you are not obligated to do so. If you do not wish to do
so, delete this exception statement from your version.
```