Unit test development.
authorAndrii Androsov <a.androsov@samsung.com>
Tue, 20 Sep 2016 09:27:48 +0000 (12:27 +0300)
committerJee Hyeok Kim <jihyeok13.kim@samsung.com>
Tue, 20 Sep 2016 10:15:51 +0000 (10:15 +0000)
commitd36fe5779fd4c79f7fa9e8c179d3d8e1712e0883
treeb28ef3877bac70644d1cc63b856e3708a83fcd27
parent0e17894cb5b96d85ea942ea8b10f8647fad57746
Unit test development.
1. CSR update(update for new specification)
2. CSR unit test update for new specification.
3. Code refactoring.
4. Update CRL pubdatatype and express RCSN as Arralist of Strings
   as in specification.
5. Fix issues for CRL table, add new unit tests, add docs for
   CertificateConstants, CertificateManager, CertificateStorage.
6. Fix issue with subjectDN and issuerDN for CA certificate and for personal one.
   please remove cloud/account/keystore folder
7. Fix last update CRL issue.
8. Fix issuer name for CRL.
9. Fix issue with basic-constraints. Code refactoring.
10. Fix issue with CRL re-creation after account restart.
11. Fix issue with CRL subject name.
12. Replace Base64 to Der coding for CRL GET. Code refactoring.
13. Put CRL to db as BinaryData and remove CRL file.
14. Add new unit tests for CRL.
15. Add new unit tests for CSR and add documentation.

Change-Id: Iadef163d6cde2ca671b70a0cc05d9a73cbf9b8a3
Signed-off-by: Andrii Androsov <a.androsov@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10977
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11973
Tested-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
28 files changed:
cloud/account/README
cloud/account/properties/config.properties [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/AccountServer.java
cloud/account/src/main/java/org/iotivity/cloud/accountserver/Constants.java
cloud/account/src/main/java/org/iotivity/cloud/accountserver/db/AccountDBManager.java
cloud/account/src/main/java/org/iotivity/cloud/accountserver/db/CRLTable.java [moved from cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/crl/CrlInfo.java with 53% similarity]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/db/CertificateTable.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/certificate/CertificateManager.java [deleted file]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/certificate/CertificateResource.java [deleted file]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/credprov/cert/CertificateConstants.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/credprov/cert/CertificateManager.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/credprov/cert/CertificateResource.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/credprov/cert/CertificateStorage.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/credprov/crl/CrlManager.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/credprov/crl/CrlResource.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/cert/CSRParser.java
cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/cert/CertificateBuilder.java
cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/cert/CertificateExtension.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/cert/CertificateIssuerConfig.java [deleted file]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/cert/CertificatePrivateKeyPair.java [deleted file]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/cert/Utility.java [new file with mode: 0644]
cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/crl/CrlIssuer.java
cloud/account/src/main/java/org/iotivity/cloud/accountserver/x509/crl/CrlStore.java [deleted file]
cloud/account/src/test/java/org/iotivity/cloud/accountserver/resources/account/AccountResourceTest.java
cloud/account/src/test/java/org/iotivity/cloud/accountserver/resources/account/credprov/cert/CertificateResourceTest.java [new file with mode: 0644]
cloud/account/src/test/java/org/iotivity/cloud/accountserver/resources/account/credprov/cert/GenerateCSR.java [new file with mode: 0644]
cloud/account/src/test/java/org/iotivity/cloud/accountserver/resources/account/credprov/crl/CrlResourceTest.java [new file with mode: 0644]
cloud/stack/src/main/java/org/iotivity/cloud/base/OICConstants.java