diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/request/DecryptRpcCommand.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/request/DecryptRpcCommand.avsc new file mode 100644 index 0000000000..3f5dfb4a9b --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/request/DecryptRpcCommand.avsc @@ -0,0 +1,23 @@ +{ + "type": "record", + "name": "DecryptRpcCommand", + "namespace": "net.corda.data.crypto.wire.ops.encryption.request", + "doc": "Request to decrypt the given byte array", + "fields": [ + { + "name": "category", + "type": "string", + "doc": "The category of HSM e.g. ENCRYPTION_SECRET, TLS, etc." + }, + { + "name": "alias", + "type": ["null", "string"], + "doc": "The symmetric key alias." + }, + { + "name": "cipherBytes", + "type": "bytes", + "doc": "The data to decrypt." + } + ] +} \ No newline at end of file diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/request/EncryptRpcCommand.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/request/EncryptRpcCommand.avsc new file mode 100644 index 0000000000..25f3c51f39 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/request/EncryptRpcCommand.avsc @@ -0,0 +1,23 @@ +{ + "type": "record", + "name": "EncryptRpcCommand", + "namespace": "net.corda.data.crypto.wire.ops.encryption.request", + "doc": "Request to encrypt the given byte array", + "fields": [ + { + "name": "category", + "type": "string", + "doc": "The category of HSM e.g. ENCRYPTION_SECRET, TLS, etc." + }, + { + "name": "alias", + "type": ["null", "string"], + "doc": "The symmetric key alias." + }, + { + "name": "plainBytes", + "type": "bytes", + "doc": "The data to encrypt." + } + ] +} \ No newline at end of file diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/CryptoDecryptionResult.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/CryptoDecryptionResult.avsc new file mode 100644 index 0000000000..748bf66d52 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/CryptoDecryptionResult.avsc @@ -0,0 +1,13 @@ +{ + "type": "record", + "name": "CryptoDecryptionResult", + "namespace": "net.corda.data.crypto.wire.ops.encryption.response", + "doc": "Decryption operation response", + "fields": [ + { + "name": "plainBytes", + "type": "bytes", + "doc": "Decrypted byte array" + } + ] +} \ No newline at end of file diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/CryptoEncryptionResult.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/CryptoEncryptionResult.avsc new file mode 100644 index 0000000000..8220da9f18 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/CryptoEncryptionResult.avsc @@ -0,0 +1,13 @@ +{ + "type": "record", + "name": "CryptoEncryptionResult", + "namespace": "net.corda.data.crypto.wire.ops.encryption.response", + "doc": "Encryption operation response", + "fields": [ + { + "name": "cipherBytes", + "type": "bytes", + "doc": "Encrypted byte array" + } + ] +} \ No newline at end of file diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/DecryptionOpsResponse.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/DecryptionOpsResponse.avsc new file mode 100644 index 0000000000..097dc64e8d --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/DecryptionOpsResponse.avsc @@ -0,0 +1,16 @@ +{ + "type": "record", + "name": "DecryptionOpsResponse", + "namespace": "net.corda.data.crypto.wire.ops.encryption.response", + "doc": "Response for crypto's decryption operations envelope", + "fields": [ + { + "name": "response", + "type": [ + "net.corda.data.crypto.wire.ops.encryption.response.CryptoDecryptionResult", + "net.corda.data.crypto.wire.ops.encryption.response.EncryptionOpsError" + ], + "doc": "Response's payload, depends on the requested operation" + } + ] +} \ No newline at end of file diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/EncryptionOpsError.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/EncryptionOpsError.avsc new file mode 100644 index 0000000000..8398f939ee --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/EncryptionOpsError.avsc @@ -0,0 +1,12 @@ +{ + "type": "record", + "name": "EncryptionOpsError", + "namespace": "net.corda.data.crypto.wire.ops.encryption.response", + "doc": "Error result while performing encryption or decryption operation.", + "fields": [ + { + "name": "errorMessage", + "type": "net.corda.data.ExceptionEnvelope" + } + ] +} diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/EncryptionOpsResponse.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/EncryptionOpsResponse.avsc new file mode 100644 index 0000000000..20bd5bd525 --- /dev/null +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/crypto/wire/ops/encryption/response/EncryptionOpsResponse.avsc @@ -0,0 +1,16 @@ +{ + "type": "record", + "name": "EncryptionOpsResponse", + "namespace": "net.corda.data.crypto.wire.ops.encryption.response", + "doc": "Response for crypto's encryption operations envelope", + "fields": [ + { + "name": "response", + "type": [ + "net.corda.data.crypto.wire.ops.encryption.response.CryptoEncryptionResult", + "net.corda.data.crypto.wire.ops.encryption.response.EncryptionOpsError" + ], + "doc": "Response's payload, depends on the requested operation" + } + ] +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 552393ae50..53bbd4f054 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,7 +25,6 @@ publicArtifactURL = https://download.corda.net/maven # dokka need more metaspace - https://github.com/Kotlin/dokka/issues/1405 org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=2g internalPluginVersion = 1.+ -artifactoryPluginVersion = 4.28.2 gradleEnterpriseVersion = 3.14.1 gradleDataPlugin = 1.8.2 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b22110bf28..97ca51c435 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -19,13 +19,12 @@ bndlibVersion = "7.0.0" # Testing assertjVersion = "3.24.2" junitVersion = "5.10.1" -mockitoVersion = "5.3.0" +mockitoVersion = "5.8.0" mockitoKotlinVersion = "5.2.1" # Plugins -artifactoryVersion = "4.28.2" avroGradleVersion = "1.3.0" -cyclonedxVersion = "1.7.4" +cyclonedxVersion = "1.8.1" dokkaVersion = "1.8.20" detektVersion = "1.23.4" dependencyCheckVersion = "0.46.0" @@ -78,7 +77,6 @@ test-runtime = ["junit-engine", "junit-platform"] [plugins] avro-gradle = { id = "com.github.davidmc24.gradle.plugin.avro-base", version.ref = "avroGradleVersion" } -artifactory = { id = "com.jfrog.artifactory", version.ref = "artifactoryVersion" } cyclonedx-bom = { id = "org.cyclonedx.bom", version.ref = "cyclonedxVersion" } dependency-check-versions = { id = "com.github.ben-manes.versions", version.ref = "dependencyCheckVersion" } detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detektVersion" } diff --git a/settings.gradle b/settings.gradle index 8c83d4a9ac..58777008c1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -24,11 +24,9 @@ pluginManagement { } } - plugins { id 'com.gradle.enterprise' version gradleEnterpriseVersion id 'com.gradle.common-custom-user-data-gradle-plugin' version gradleDataPlugin - id "com.jfrog.artifactory" version artifactoryPluginVersion } } plugins {