-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Write API documentation * move api-docs.md * document endpoints * rename PrivateThirdPartyEndpoint:importAuthorization() * fix GH action * complete * build docs in CI * fix imports * fix import
- Loading branch information
Showing
26 changed files
with
288 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Module lib | ||
|
||
# Package tech.relaycorp.relaydroid | ||
|
||
Root package for the endpoint library. | ||
|
||
# Package tech.relaycorp.relaydroid.endpoint | ||
|
||
Handling of first- and third-party endpoints. | ||
|
||
# Package tech.relaycorp.relaydroid.messaging | ||
|
||
Handling of service messages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
lib/src/main/java/tech/relaycorp/relaydroid/endpoint/AuthorizationBundle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
package tech.relaycorp.relaydroid.endpoint | ||
|
||
/** | ||
* Parcel Delivery Authorization (PDA) and support data for the grantee to use the PDA. | ||
*/ | ||
public class AuthorizationBundle( | ||
/** | ||
* The ASN.1 DER encoding of the PDA. | ||
*/ | ||
public val pdaSerialized: ByteArray, | ||
|
||
/** | ||
* The ASN.1 DER encoding of each certificate in the PDA chain (excluding the PDA itself). | ||
*/ | ||
public val pdaChainSerialized: List<ByteArray> | ||
) |
6 changes: 6 additions & 0 deletions
6
lib/src/main/java/tech/relaycorp/relaydroid/endpoint/Endpoint.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package tech.relaycorp.relaydroid.endpoint | ||
|
||
/** | ||
* Relaynet endpoint. | ||
*/ | ||
public interface Endpoint { | ||
/** | ||
* The private or public address of a private or public endpoint, respectively. | ||
*/ | ||
public val address: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.