From: Robert Varga Date: Sun, 5 Feb 2023 12:51:03 +0000 (+0100) Subject: Move aaa-encrypt-service-config X-Git-Tag: v0.17.4~13 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=1932b78097ff9a2718d641a1d3b604476c8f8146;hp=e1c97d161715c5b44c5327557d2eb6d2b3d4199b;p=aaa.git Move aaa-encrypt-service-config The configuration is an implementation contract, move it to impl artifact. Also disconnect the actual instantiation and layout by introducing an intermediate grouping. JIRA: AAA-250 Change-Id: Ib28b3c984020b2a0b7be7271ec0493993504bf53 Signed-off-by: Robert Varga --- diff --git a/aaa-encrypt-service/api/src/main/yang/aaa-encrypt-service-config.yang b/aaa-encrypt-service/api/src/main/yang/aaa-encrypt-service-config.yang deleted file mode 100644 index 42e9ef5ce..000000000 --- a/aaa-encrypt-service/api/src/main/yang/aaa-encrypt-service-config.yang +++ /dev/null @@ -1,48 +0,0 @@ -module aaa-encrypt-service-config { - yang-version 1; - namespace "config:aaa:authn:encrypt:service:config"; - prefix "aaa-encrypt-service-config"; - organization "OpenDayLight"; - - contact "melserngawy@inocybe.ca"; - - revision 2016-09-15 { - description - "Initial revision."; - } - - container aaa-encrypt-service-config { - leaf encrypt-key { - description "Encryption key"; - type string; - } - leaf password-length { - description "Encryption key password length"; - type int32; - } - leaf encrypt-salt { - description "Encryption key salt"; - type string; - } - leaf encrypt-method { - description "The encryption method to use"; - type string; - } - leaf encrypt-type { - description "The encryption type"; - type string; - } - leaf encrypt-iteration-count { - description "Number of iterations that will be used by the key"; - type int32; - } - leaf encrypt-key-length { - description "Key length"; - type int32; - } - leaf cipher-transforms { - description "cipher transformation type ex: AES/CBC/PKCS5Padding (128)"; - type string; - } - } -} \ No newline at end of file diff --git a/aaa-encrypt-service/impl/pom.xml b/aaa-encrypt-service/impl/pom.xml index f6779918a..dd12da632 100644 --- a/aaa-encrypt-service/impl/pom.xml +++ b/aaa-encrypt-service/impl/pom.xml @@ -22,16 +22,34 @@ and is available at http://www.eclipse.org/legal/epl-v10.html - org.opendaylight.aaa - aaa-encrypt-service + com.google.guava + guava + + + org.apache.commons + commons-lang3 + + + org.opendaylight.yangtools + yang-common org.opendaylight.mdsal mdsal-binding-api - org.apache.commons - commons-lang3 + org.opendaylight.mdsal + mdsal-common-api + + + org.opendaylight.aaa + aaa-encrypt-service + + + + org.opendaylight.yangtools + util + test diff --git a/aaa-encrypt-service/impl/src/main/yang/aaa-encrypt-service-config.yang b/aaa-encrypt-service/impl/src/main/yang/aaa-encrypt-service-config.yang new file mode 100644 index 000000000..c19a934a3 --- /dev/null +++ b/aaa-encrypt-service/impl/src/main/yang/aaa-encrypt-service-config.yang @@ -0,0 +1,51 @@ +module aaa-encrypt-service-config { + yang-version 1; + namespace "config:aaa:authn:encrypt:service:config"; + prefix "aaa-encrypt-service-config"; + organization "OpenDayLight"; + + contact "melserngawy@inocybe.ca"; + + revision 2016-09-15 { + description "Initial revision."; + } + + grouping encrypt-service-config { + leaf encrypt-key { + description "Encryption key"; + type string; + } + leaf password-length { + description "Encryption key password length"; + type int32; + } + leaf encrypt-salt { + description "Encryption key salt"; + type string; + } + leaf encrypt-method { + description "The encryption method to use"; + type string; + } + leaf encrypt-type { + description "The encryption type"; + type string; + } + leaf encrypt-iteration-count { + description "Number of iterations that will be used by the key"; + type int32; + } + leaf encrypt-key-length { + description "Key length"; + type int32; + } + leaf cipher-transforms { + description "cipher transformation type ex: AES/CBC/PKCS5Padding (128)"; + type string; + } + } + + container aaa-encrypt-service-config { + uses encrypt-service-config; + } +}