-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/ATL-6932
- Loading branch information
Showing
43 changed files
with
1,231 additions
and
520 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
25 changes: 25 additions & 0 deletions
25
tests/integration-tests/src/test/kotlin/common/DidPurpose.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package common | ||
|
||
import org.hyperledger.identus.client.models.* | ||
|
||
enum class DidPurpose { | ||
EMPTY { | ||
override val publicKeys = emptyList<ManagedDIDKeyTemplate>() | ||
override val services = emptyList<Service>() | ||
}, | ||
JWT { | ||
override val publicKeys = listOf( | ||
ManagedDIDKeyTemplate("auth-1", Purpose.AUTHENTICATION, Curve.SECP256K1), | ||
ManagedDIDKeyTemplate("auth-2", Purpose.AUTHENTICATION, Curve.ED25519), | ||
ManagedDIDKeyTemplate("assertion-1", Purpose.ASSERTION_METHOD, Curve.SECP256K1), | ||
) | ||
override val services = emptyList<Service>() | ||
}, | ||
ANONCRED { | ||
override val publicKeys = emptyList<ManagedDIDKeyTemplate>() | ||
override val services = emptyList<Service>() | ||
}, ; | ||
|
||
abstract val publicKeys: List<ManagedDIDKeyTemplate> | ||
abstract val services: List<Service> | ||
} |
Oops, something went wrong.