aboutsummaryrefslogtreecommitdiffstats
path: root/certService/src/test/java/org
AgeCommit message (Collapse)AuthorFilesLines
2021-07-19[OOM-CERT-SERVICE] Add CertificateDecriptionException handlerPiotr Marcinkiewicz1-0/+16
Issue-ID: OOM-2753 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: If4f705b11cdaf1c98f49875b40eb970563d4c3dd
2021-07-15Merge "[OOM-CERT-SERVICE] Refactor CertService API code"Pawel Baniewski6-55/+136
2021-07-15Merge "[OOM-CERT-SERVICE] Fix sonar and checkstyle issues, code cleanup"Pawel Baniewski6-23/+23
2021-07-14[OOM-CERT-SERVICE] Remove CaMode from Cmpv2Server configurationRemigiusz Janeczek4-23/+4
Issue-ID: OOM-2753 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I10662551a315a0b38b1213513d07ab2a4ccf5326
2021-07-13[OOM-CERT-SERVICE] Refactor CertService API codePiotr Marcinkiewicz6-55/+136
- move conversion StringBase64 to PrivateKey to separate class - move protection algorithm classes to separate package - adjust modifiers and test to above changes Issue-ID: OOM-2753 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: Ifafa38162acfcd59d5177dbc478a6209e97a18e3
2021-07-13[OOM-CERT-SERVICE] Fix sonar and checkstyle issues, code cleanupRemigiusz Janeczek6-23/+23
Issue-ID: OOM-2753 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Id88b6b2bceba7258745e4ce999dd375fb9ce438f
2021-07-09[OOM-CERT-SERVICE] Add Unit test for private key in pkcs1 formatTomasz Wrobel2-8/+58
Issue-ID: OOM-2753 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I91000b223c30eae1cd9f4d48be9e8197e239e1d2
2021-07-08[OOM-CERT-SERVICE] Code refactorJoanna Jeremicz14-183/+357
- Rename methods names to more descriptive ones - Group classes in packages - Simplify certificate model usage in KUR (use BouncyCastle object) Issue-ID: OOM-2753 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com> Change-Id: I0507752b8d74a71ef27545648c2045f2033a330a
2021-07-06[OOM-CERT-SERVICE] Add Certification Request functionalityJoanna Jeremicz4-9/+77
Issue-ID: OOM-2753 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com> Change-Id: Id8702dd45254f0e82d9b71e5e69372569e523838
2021-07-05[OOM-CERT-SERVICE] Add Key Update Request functionalityTomasz Wrobel6-22/+343
Issue-ID: OOM-2753 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: Icecef30b830c38606e17fbc2c502208543d048d2
2021-07-01Merge "[OOM-CERT-SERVICE] Add logic for KUR/CR detection"Bogumil Zebek10-68/+732
2021-07-01Merge "[OOM-CERT-SERVICE] Add handling cmp response when PBM value is missing."Bogumil Zebek1-3/+86
2021-07-01[OOM-CERT-SERVICE] Add logic for KUR/CR detectionRemigiusz Janeczek10-68/+732
Issue-ID: OOM-2753 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I571ad3914a870dde83929cb6121c2c63a5df3ae4
2021-06-30[OOM-CERT-SERVICE] Add handling cmp response when PBM value is missing.Tomasz Wrobel1-5/+86
Issue-ID: OOM-2753 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I38de28c994b5c83f936b3b5ea47d024a96f4733e
2021-06-29Merge "[OOM-CERT-SERVICE] Add update endpoint"Bogumil Zebek1-6/+35
2021-06-29[OOM-CERT-SERVICE] Add update endpointPiotr Marcinkiewicz1-6/+35
- Add endpoint with old cert and old PK parameters for KUR/CR requests Issue-ID: OOM-2753 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I094ce1a39a11bbb94f94e0b13ca7ff71eb99dd30
2021-06-28[OOM-CERT-SERVICE] Implement signature PKIMessage protectionPiotr Marcinkiewicz3-0/+349
- Add signature protection - Refactor password-based protection code - Add JUnit tests Issue-ID: OOM-2753 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I398568a35e52a816c32646c8915db5c287ede401
2021-06-10Fix sonar issuesRemigiusz Janeczek5-18/+16
Issue-ID: OOM-2764 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Iab71cbcac1982207e6f29b4b046280ad27143e03
2021-01-27[OOM-CERT-SERVICE] Fix KeyUsage extention sent to CMPv2 server2.3.3Piotr Marcinkiewicz1-0/+70
- fix setting key usage to digitalSignature & keyEncipherment & nonRepudiation - set extended key usage to clientAuth & serverAuth Issue-ID: OOM-2658 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I5c00f622c3d117a63e4f48a3d2a90fd48cce3d0e
2021-01-19[CMPV2] Fix NPE & enhance error messagesJan Malkiewicz2-7/+23
Fix NPE. Include error messages returned by CMP server in API response. Issue-ID: OOM-2657 Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com> Change-Id: I6ec46b14ba04b5be10de5994236efd8fc14c5d2e
2020-11-20[OOM CERT-SERVICE-API] Add support for URI, IP, E-mail in SANsTomasz Wrobel4-109/+118
Issue-ID: OOM-2632 Change-Id: I903c31ebe05521e281753cb847001ba99275f758 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com>
2020-09-17Merge "[OOM-CPMv2] Fix sonar issue"Bogumil Zebek1-5/+3
2020-09-17[OOM-CPMv2] Fix sonar issuetkogut1-1/+1
Remove unnecessary 'public' modifier Issue-ID: OOM-2526 Signed-off-by: tkogut <tomasz.kogut@nokia.com> Change-Id: I35146e7f669ea1dbe3610eae6b4641e48d75840c
2020-09-17[OOM-CPMv2] Fix sonar issuetkogut1-5/+3
Remove unnecessary 'public' modifiers Issue-ID: OOM-2526 Signed-off-by: tkogut <tomasz.kogut@nokia.com> Change-Id: Id1f25aeb06a602fae40e4d103fdb4654bc9fec7d
2020-08-05Removing AAF references from Cert-Service in OOM repo.baniewsk25-216/+120
Certificates regenerated External files (from legacy AAF) removed Still left: * Sonar link, * Link to documentation, * Names of K8s resources in RTD documentation, * Link to CSITs Issue-ID: OOM-2526 Signed-off-by: Pawel Baniewski <pawel.baniewski@nokia.com> Change-Id: I675f7485160b9b8e46e9ea573550e62ed28ca607
2020-03-27Refactor CmpResponseHelper to support intermediate certificateBartosz Gardziejewski3-5/+615
Issue-ID: AAF-1107 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ia2e2f9ba1fbcf0482121ffb5f451c408774481ba
2020-03-24Add validation for uniqueness of CA namesMichal Banka2-11/+36
Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: Icfa9ee0f78d360a4f640904bb9077a10f15497ed Issue-ID: AAF-1107
2020-03-23Removed dependency to cmpv2client adapterMichal Banka4-191/+69
Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: I14aea91ee910354e898ea1e011a2ff27df54e93c Issue-ID: AAF-1107
2020-03-20Removed unused parameters when creating certificateMichal Banka2-26/+8
Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: I72d9e3ea30d3c2ba8e4e6c7e5afa0cfad2508bc5 Issue-ID: AAF-1107
2020-03-18Remove CSRMeta class dependencyMichal Banka3-188/+41
Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: If3458612629dd84f95bf9ba1e0778e65696bb13d Issue-ID: AAF-1107
2020-03-18Resolve all checkstyle warningsBartosz Gardziejewski22-446/+465
Issue-ID: AAF-1107 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I28cfc2b82f1a4800a984e30f59ff36fe90bebb38
2020-03-16Fixed sonar issues in Split class and refactor it0.0.1Michal Banka1-0/+95
Removed unnecesary conversion: bouncle castle RDN -> String -> CertService RDN. Now it's: Bouncle castle RDN -> CertService RDN. Class Split rewritten on streams, tested. Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: I04e10fd6e4ab619124b93db7193c94f54b4b08ef Issue-ID: AAF-997
2020-03-12Merge "Fixed sonar issues in CSRMeta class"Bogumil Zebek2-19/+18
2020-03-11Fixed sonar issues in CSRMeta classMichal Banka2-19/+18
Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: Ia247ff2246b513521f880a55913ad92a8902aa3e Issue-ID: AAF-997
2020-03-10Add annotation for OpenAPI 3.0 documentation generationBartosz Gardziejewski4-52/+83
Issue-ID: AAF-997 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I6dcbe2076d7e0095c210b1cae95309fe31ebf243
2020-03-06Merge "Increase adapter test coverage"Bogumil Zebek4-1/+145
2020-03-06Merge "Create Readiness Endpoint"Bogumil Zebek2-0/+106
2020-03-06Increase adapter test coverageBartosz Gardziejewski4-1/+145
Issue-ID: AAF-997 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ifea1943f5bc2ad174bf1e8f0197526b96097a302
2020-03-05Create Readiness Endpointawudzins2-0/+106
Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com> Issue-ID: AAF-997 Change-Id: Icb978fd7d4ac59d2b2968e5c0b861fba5eb616bf
2020-03-05Create adapter for Cmpv2ClientBartosz Gardziejewski8-92/+666
connected-with: https://gerrit.onap.org/r/c/aaf/certservice/+/102401 Issue-ID: AAF-997 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com> Change-Id: Ieb85cd9c93f7a5470fca37a9de4bead3c543199a
2020-03-04Merge "Authenticate response from CMP server"Bogumil Zebek1-16/+52
2020-03-04Fix reload endpoint to return statusawudzins8-86/+315
Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com> Issue-ID: AAF-997 wChange-Id: I4563428ef407b4dc8c84c3efc8ec213145806b32 Change-Id: Iee33a26feb5cc1acd39d91ee9f34a49183040e06
2020-03-04Authenticate response from CMP serverEmmettCox1-16/+52
Issue-ID: AAF-1037 Signed-off-by: EmmettCox <emmett.cox@est.tech> Change-Id: I6f52627a169359067ddd928d1e895e8d6237c7b5
2020-02-28Merge "Refactor tests for configuration"Bogumil Zebek2-24/+86
2020-02-27Merge "Verifying certchain and returning certchain and TrustStore"Bogumil Zebek1-11/+87
2020-02-27Verifying certchain and returning certchain and TrustStoreEmmettCox1-11/+87
Issue-ID: AAF-1037 Signed-off-by: EmmettCox <emmett.cox@est.tech> Change-Id: Iaab754ff5f568b2f2e1aeac8dbed279e20b09b3b
2020-02-27Refactor tests for configurationBartosz Gardziejewski2-24/+86
Issue-ID: AAF-997 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I91129fdf70263bd5821feb4482ca116ae9a68747
2020-02-27Refactor CSR model to be POJOBartosz Gardziejewski4-35/+86
Issue-ID: AAF-997 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ia06dd580a64e56dcf1d8bf5f3db6fe6394cdb1c8
2020-02-26Create logic responsible for selecting server based on CANameBartosz Gardziejewski3-6/+155
Issue-ID: AAF-995 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I2d3b931862ecca7c1edc52fb61aa8c4dcd29e3ec
2020-02-24Added validation of configurationMichal Banka5-3/+326
Fields are being validated right after reading servers details from JSON (when application starts). Created own annotation to validate server URL with proper requirements. When invalid details are given application closes. Signed-off-by: Michal Banka <michal.banka@nokia.com> Change-Id: I3e476266056ec0fb637f01f9d4d4c63b1f0d1c6a Issue-ID: AAF-997