Skip to content
프로젝트

소개

Ziti SDK for Android

개발 도구

이 수치를 측정하는 방법

What you can do

  • allows to develop applications that connect to services on NetFoundry Ziti Service mesh
  • strong identity support
  • transparent use -- in seamless mode connections to network resources are intercepted and routed over Ziti network for any Ziti service that identity has access to
  • written in Kotlin with Java-friendly API

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Ziggy using the ziti-sdk-android

Maven Central version

The Ziti SDK for Android enables developers to easily and securely connect their Android applications to backend services over OpenZiti networks.

Release notes are published with each release on GitHub.

The recommended way to use the Ziti SDK for Android in your project is to add the dependency using your favorite build tool. Our artifacts are hosted on Maven Central, so add the repo and dependency to your project. The latest version is shown in the Maven Central badge at the top of this page, use it in place of VERSION below.

<project>
   ....
   <repositories>
      ....
      <repository>
          <snapshots>
              <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>Maven Central</name>
          <url>https://repo.maven.apache.org/maven2/</url>
       </repository>
   </repositories>
   ....
   <dependencies>
      ...
      <dependency>
         <groupId>org.openziti</groupId>
         <artifactId>ziti-android</artifactId>
         <version>VERSION</version>
      </dependency>
   </dependencies>
   ....
</project>
repositories {
    ...
    mavenCentral()
}
...
dependencies {
   ...
   implementation 'org.openziti:ziti-android:VERSION'
}

Once you check out the project from GitHub, you can build it using gradle, with JDK 17 and the Android SDK installed (ANDROID_HOME, or sdk.dir in local.properties):

./gradlew build

# install into your local maven cache
./gradlew :ziti-android:publishToMavenLocal
  • allows to develop applications that connect to services on NetFoundry Ziti Service mesh
  • strong identity support
  • transparent use -- in seamless mode connections to network resources are intercepted and routed over Ziti network for any Ziti service that identity has access to
  • written in Kotlin with Java-friendly API
  • read more in our docs

See background here

An application enrolls with the enrollment token (a JWT file) of its identity. Ziti.enrollZiti() takes the token as a Uri or as bytes. EnrollmentActivity, a file picker for the token, is the default enrollment screen: Ziti.getEnrollmentIntent() returns the intent for it, and Ziti.setEnrollmentActivity() replaces it with the application's own.

Enrolling runs in the background and loads the new identity right away. It creates two (or more) entries in the Android KeyStore:

private key entry
client private key/certificate identifying the application instance. This entry is stored with ziti://<controller_host>:<port>/<identity id> alias, the key can be used to sign but not read out
CA certificate entries
root CA certificates used to validate Ziti network components, stored as <private key entry alias>-ca-<certificate serial number>

Note:

This allows enrolling and storing multiple identities in the key store. However, typically an application instance would only have a single enrollment or identity

Easiest way to start developing on Android with Ziti is to create your repo from our template project or just look at the code for inspiration.

Identities are kept in the Android KeyStore (see Enrollment), and Ziti.init() loads them from it.

  • The Ziti SDK is built with Kotlin 2.4, the Kotlin compiler of the application has to be 2.3 or newer. This library is built with Android Gradle plugin 9, Gradle 9 and compileSdk 37.
  • Kotlin applications add org.jetbrains.kotlinx:kotlinx-coroutines-android themselves, org.openziti.android.Ziti is a CoroutineScope.
  • Several of the SDK's dependencies carry the same license and manifest files, the application has to exclude them:
android {
    packaging {
        resources {
            excludes += ['META-INF/LICENSE*', 'META-INF/NOTICE*', 'META-INF/DEPENDENCIES',
                         'META-INF/versions/9/OSGI-INF/MANIFEST.MF']
        }
    }
}
  • Minified applications need no rules of their own: the rules for the SDK and for the libsodium and JNA libraries it uses come with the libraries.

Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.

관련 프로젝트 살펴보기

불러오는 중…