diff options
Diffstat (limited to 'certServiceClient/src')
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/AppExitHandler.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/CertServiceClient.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClient.java) | 44 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/MainApp.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/MainApp.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/api/ExitStatus.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/api/ExitStatus.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/api/ExitableException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/api/ExitableException.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/ArtifactsCreatorProvider.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/ArtifactsCreatorProvider.java) | 12 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/CsrFactory.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/CsrFactory.java) | 22 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/EncryptionAlgorithmConstants.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/EncryptionAlgorithmConstants.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/KeyPairFactory.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/KeyPairFactory.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/PrivateKeyToPemEncoder.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/PrivateKeyToPemEncoder.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ArtifactsCreator.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreator.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreator.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreator.java) | 10 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreatorFactory.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreatorFactory.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/Password.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/Password.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/PemArtifactsCreator.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/PemArtifactsCreator.java) | 12 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/PemConverter.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/PemConverter.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/RandomPasswordGenerator.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/StoreEntryOperation.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/StoreEntryOperation.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/CertFileWriterException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/CertFileWriterException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/CsrGenerationException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/CsrGenerationException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/KeyPairGenerationException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/KeyPairGenerationException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/PemConversionException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/PemConversionException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/PkEncodingException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/PkEncodingException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/writer/CertFileWriter.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriter.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/common/Base64Encoder.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/common/Base64Encoder.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/ClientConfigurationEnvs.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/ClientConfigurationEnvs.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/CsrConfigurationEnvs.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/CsrConfigurationEnvs.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvProvider.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvProvider.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForClient.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForClient.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForCsr.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForCsr.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForTls.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForTls.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/TlsConfigurationEnvs.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/TlsConfigurationEnvs.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/ClientConfigurationException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/ClientConfigurationException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/CsrConfigurationException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/CsrConfigurationException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/TlsConfigurationException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/TlsConfigurationException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/AbstractConfigurationFactory.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/AbstractConfigurationFactory.java) | 12 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/ClientConfigurationFactory.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/ClientConfigurationFactory.java) | 12 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactory.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactory.java) | 12 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/SslContextFactory.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactory.java) | 10 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/ClientConfiguration.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/ClientConfiguration.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/ConfigurationModel.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/ConfigurationModel.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/CsrConfiguration.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/CsrConfiguration.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/CloseableHttpsClientProvider.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/CloseableHttpsClientProvider.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/HttpClient.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/HttpClient.java) | 12 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/exception/CertServiceApiResponseException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/exception/CertServiceApiResponseException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/exception/HttpClientException.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/exception/HttpClientException.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/model/CertServiceResponse.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/model/CertServiceResponse.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/model/ErrorCertServiceResponse.java (renamed from certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/model/ErrorCertServiceResponse.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/main/resources/log4j2.xml | 2 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/CerServiceRequestTestData.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/CerServiceRequestTestData.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/CertServiceClientTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/CertServiceClientTest.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/ArtifactsCreatorProviderTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/ArtifactsCreatorProviderTest.java) | 10 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/CsrFactoryTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/CsrFactoryTest.java) | 10 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/KeyPairFactoryTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/KeyPairFactoryTest.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/PrivateKeyToPemEncoderTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/PrivateKeyToPemEncoderTest.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreatorTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreatorTest.java) | 10 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/PemArtifactsCreatorTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/PemArtifactsCreatorTest.java) | 10 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/PemConverterTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/PemConverterTest.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/RandomPasswordGeneratorTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGeneratorTest.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/writer/CertFileWriterTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriterTest.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvProviderTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvProviderTest.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvsForCsrTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForCsrTest.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvsForTlsTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForTlsTest.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/exception/TlsConfigurationExceptionTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/exception/TlsConfigurationExceptionTest.java) | 6 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/AbstractConfigurationFactoryTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/AbstractConfigurationFactoryTest.java) | 4 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/ClientConfigurationFactoryTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/ClientConfigurationFactoryTest.java) | 22 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java) | 14 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/SslContextFactoryTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactoryTest.java) | 8 | ||||
-rw-r--r-- | certServiceClient/src/test/java/org/onap/oom/certservice/client/httpclient/HttpClientTest.java (renamed from certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java) | 24 |
69 files changed, 272 insertions, 272 deletions
diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/AppExitHandler.java index af30ff3e..16636fa6 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/AppExitHandler.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,9 +17,9 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client; +package org.onap.oom.certservice.client; -import org.onap.aaf.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitStatus; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClient.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/CertServiceClient.java index 56c355e4..d115380f 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/CertServiceClient.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/CertServiceClient.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,34 +17,34 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client; +package org.onap.oom.certservice.client; -import org.onap.aaf.certservice.client.api.ExitableException; -import org.onap.aaf.certservice.client.certification.ArtifactsCreatorProvider; -import org.onap.aaf.certservice.client.certification.CsrFactory; -import org.onap.aaf.certservice.client.certification.KeyPairFactory; -import org.onap.aaf.certservice.client.certification.PrivateKeyToPemEncoder; -import org.onap.aaf.certservice.client.common.Base64Encoder; -import org.onap.aaf.certservice.client.configuration.EnvsForClient; -import org.onap.aaf.certservice.client.configuration.EnvsForCsr; -import org.onap.aaf.certservice.client.configuration.EnvsForTls; -import org.onap.aaf.certservice.client.configuration.factory.ClientConfigurationFactory; -import org.onap.aaf.certservice.client.configuration.factory.CsrConfigurationFactory; -import org.onap.aaf.certservice.client.configuration.factory.SslContextFactory; -import org.onap.aaf.certservice.client.configuration.model.ClientConfiguration; -import org.onap.aaf.certservice.client.configuration.model.CsrConfiguration; -import org.onap.aaf.certservice.client.httpclient.CloseableHttpsClientProvider; -import org.onap.aaf.certservice.client.httpclient.HttpClient; -import org.onap.aaf.certservice.client.httpclient.model.CertServiceResponse; +import org.onap.oom.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.certification.ArtifactsCreatorProvider; +import org.onap.oom.certservice.client.certification.CsrFactory; +import org.onap.oom.certservice.client.certification.KeyPairFactory; +import org.onap.oom.certservice.client.certification.PrivateKeyToPemEncoder; +import org.onap.oom.certservice.client.common.Base64Encoder; +import org.onap.oom.certservice.client.configuration.EnvsForClient; +import org.onap.oom.certservice.client.configuration.EnvsForCsr; +import org.onap.oom.certservice.client.configuration.EnvsForTls; +import org.onap.oom.certservice.client.configuration.factory.ClientConfigurationFactory; +import org.onap.oom.certservice.client.configuration.factory.CsrConfigurationFactory; +import org.onap.oom.certservice.client.configuration.factory.SslContextFactory; +import org.onap.oom.certservice.client.configuration.model.ClientConfiguration; +import org.onap.oom.certservice.client.configuration.model.CsrConfiguration; +import org.onap.oom.certservice.client.httpclient.CloseableHttpsClientProvider; +import org.onap.oom.certservice.client.httpclient.HttpClient; +import org.onap.oom.certservice.client.httpclient.model.CertServiceResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.net.ssl.SSLContext; import java.security.KeyPair; -import static org.onap.aaf.certservice.client.api.ExitStatus.SUCCESS; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.KEY_SIZE; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.RSA_ENCRYPTION_ALGORITHM; +import static org.onap.oom.certservice.client.api.ExitStatus.SUCCESS; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.KEY_SIZE; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.RSA_ENCRYPTION_ALGORITHM; public class CertServiceClient { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/MainApp.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/MainApp.java index 6a29241f..e0d0fec1 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/MainApp.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/MainApp.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client; +package org.onap.oom.certservice.client; public class MainApp { public static void main(String[] args) { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/api/ExitStatus.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/api/ExitStatus.java index a84485eb..1b1cc066 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/api/ExitStatus.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/api/ExitStatus.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.api; +package org.onap.oom.certservice.client.api; public enum ExitStatus { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/api/ExitableException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/api/ExitableException.java index 3a7a542b..ab7a308b 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/api/ExitableException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/api/ExitableException.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.api; +package org.onap.oom.certservice.client.api; public abstract class ExitableException extends Exception { public ExitableException(Throwable cause) { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/ArtifactsCreatorProvider.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/ArtifactsCreatorProvider.java index 954f3d30..dabd808d 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/ArtifactsCreatorProvider.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/ArtifactsCreatorProvider.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,12 +17,12 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; -import org.onap.aaf.certservice.client.certification.conversion.ArtifactsCreator; -import org.onap.aaf.certservice.client.certification.conversion.ConvertedArtifactsCreatorFactory; -import org.onap.aaf.certservice.client.certification.conversion.PemArtifactsCreator; -import org.onap.aaf.certservice.client.certification.writer.CertFileWriter; +import org.onap.oom.certservice.client.certification.conversion.ArtifactsCreator; +import org.onap.oom.certservice.client.certification.conversion.ConvertedArtifactsCreatorFactory; +import org.onap.oom.certservice.client.certification.conversion.PemArtifactsCreator; +import org.onap.oom.certservice.client.certification.writer.CertFileWriter; public enum ArtifactsCreatorProvider { P12("PKCS12") { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/CsrFactory.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/CsrFactory.java index 0faf5cab..ac517be4 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/CsrFactory.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/CsrFactory.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers; import org.bouncycastle.asn1.x509.Extension; @@ -31,8 +31,8 @@ import org.bouncycastle.operator.OperatorCreationException; import org.bouncycastle.operator.jcajce.JcaContentSignerBuilder; import org.bouncycastle.pkcs.PKCS10CertificationRequest; import org.bouncycastle.pkcs.jcajce.JcaPKCS10CertificationRequestBuilder; -import org.onap.aaf.certservice.client.certification.exception.CsrGenerationException; -import org.onap.aaf.certservice.client.configuration.model.CsrConfiguration; +import org.onap.oom.certservice.client.certification.exception.CsrGenerationException; +import org.onap.oom.certservice.client.configuration.model.CsrConfiguration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -42,13 +42,13 @@ import java.io.StringWriter; import java.security.KeyPair; import java.util.Optional; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.COMMON_NAME; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.COUNTRY; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.LOCATION; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.ORGANIZATION; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.ORGANIZATION_UNIT; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.SIGN_ALGORITHM; -import static org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants.STATE; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.COMMON_NAME; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.COUNTRY; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.LOCATION; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.ORGANIZATION; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.ORGANIZATION_UNIT; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.SIGN_ALGORITHM; +import static org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants.STATE; public class CsrFactory { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/EncryptionAlgorithmConstants.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/EncryptionAlgorithmConstants.java index 63ede568..cbd05e51 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/EncryptionAlgorithmConstants.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/EncryptionAlgorithmConstants.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; public final class EncryptionAlgorithmConstants { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/KeyPairFactory.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/KeyPairFactory.java index e997cd0d..d0c56139 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/KeyPairFactory.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/KeyPairFactory.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,9 +17,9 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; -import org.onap.aaf.certservice.client.certification.exception.KeyPairGenerationException; +import org.onap.oom.certservice.client.certification.exception.KeyPairGenerationException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/PrivateKeyToPemEncoder.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/PrivateKeyToPemEncoder.java index fa6485e5..7d94bd23 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/PrivateKeyToPemEncoder.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/PrivateKeyToPemEncoder.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,12 +18,12 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; import org.bouncycastle.openssl.jcajce.JcaPEMWriter; import org.bouncycastle.util.io.pem.PemObject; -import org.onap.aaf.certservice.client.certification.exception.PkEncodingException; +import org.onap.oom.certservice.client.certification.exception.PkEncodingException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreator.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ArtifactsCreator.java index 428b85aa..4098b37b 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreator.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ArtifactsCreator.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,9 +17,9 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitableException; import java.security.PrivateKey; import java.util.List; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreator.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreator.java index 4826732c..8c7c679b 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreator.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreator.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,11 +17,11 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; -import org.onap.aaf.certservice.client.certification.exception.CertFileWriterException; -import org.onap.aaf.certservice.client.certification.exception.PemConversionException; -import org.onap.aaf.certservice.client.certification.writer.CertFileWriter; +import org.onap.oom.certservice.client.certification.exception.CertFileWriterException; +import org.onap.oom.certservice.client.certification.exception.PemConversionException; +import org.onap.oom.certservice.client.certification.writer.CertFileWriter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreatorFactory.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreatorFactory.java index bda796eb..183e66bc 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreatorFactory.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreatorFactory.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,9 +17,9 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; -import org.onap.aaf.certservice.client.certification.writer.CertFileWriter; +import org.onap.oom.certservice.client.certification.writer.CertFileWriter; public class ConvertedArtifactsCreatorFactory { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/Password.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/Password.java index 6ea1a219..7a8d5c3d 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/Password.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/Password.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; class Password { // We are excluding this line in Sonar due to fact that diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/PemArtifactsCreator.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/PemArtifactsCreator.java index 4bec222f..0136e796 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/PemArtifactsCreator.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/PemArtifactsCreator.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,12 +17,12 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; -import org.onap.aaf.certservice.client.certification.PrivateKeyToPemEncoder; -import org.onap.aaf.certservice.client.certification.exception.CertFileWriterException; -import org.onap.aaf.certservice.client.certification.exception.PkEncodingException; -import org.onap.aaf.certservice.client.certification.writer.CertFileWriter; +import org.onap.oom.certservice.client.certification.PrivateKeyToPemEncoder; +import org.onap.oom.certservice.client.certification.exception.CertFileWriterException; +import org.onap.oom.certservice.client.certification.exception.PkEncodingException; +import org.onap.oom.certservice.client.certification.writer.CertFileWriter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/PemConverter.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/PemConverter.java index 5e82c177..b8f6719c 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/PemConverter.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/PemConverter.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,13 +17,13 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; import org.bouncycastle.cert.X509CertificateHolder; import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.bouncycastle.openssl.PEMParser; -import org.onap.aaf.certservice.client.certification.exception.PemConversionException; +import org.onap.oom.certservice.client.certification.exception.PemConversionException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/RandomPasswordGenerator.java index 8ad85d2c..c65aa21d 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGenerator.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/RandomPasswordGenerator.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; import org.apache.commons.lang3.RandomStringUtils; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/StoreEntryOperation.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/StoreEntryOperation.java index 7a41d1fe..aea6a7f5 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/conversion/StoreEntryOperation.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/conversion/StoreEntryOperation.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; import java.io.IOException; import java.security.KeyStore; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/CertFileWriterException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/CertFileWriterException.java index 7912f6d7..2cbf330b 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/CertFileWriterException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/CertFileWriterException.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,10 +17,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.exception; +package org.onap.oom.certservice.client.certification.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class CertFileWriterException extends ExitableException { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/CsrGenerationException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/CsrGenerationException.java index ba501cd6..edf13570 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/CsrGenerationException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/CsrGenerationException.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,10 +17,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.exception; +package org.onap.oom.certservice.client.certification.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class CsrGenerationException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.CSR_GENERATION_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/KeyPairGenerationException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/KeyPairGenerationException.java index 11030ff3..fc344d4d 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/KeyPairGenerationException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/KeyPairGenerationException.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,10 +17,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.exception; +package org.onap.oom.certservice.client.certification.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class KeyPairGenerationException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.KEY_PAIR_GENERATION_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/PemConversionException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/PemConversionException.java index cad3388b..17928350 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/PemConversionException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/PemConversionException.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,10 +17,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.exception; +package org.onap.oom.certservice.client.certification.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class PemConversionException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.PEM_CONVERSION_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/PkEncodingException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/PkEncodingException.java index 89976bf3..c0b8ebdc 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/exception/PkEncodingException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/exception/PkEncodingException.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,10 +17,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.exception; +package org.onap.oom.certservice.client.certification.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class PkEncodingException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.PK_TO_PEM_ENCODING_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriter.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/writer/CertFileWriter.java index fec3ebd3..0e6d0508 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriter.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/certification/writer/CertFileWriter.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,9 +17,9 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.writer; +package org.onap.oom.certservice.client.certification.writer; -import org.onap.aaf.certservice.client.certification.exception.CertFileWriterException; +import org.onap.oom.certservice.client.certification.exception.CertFileWriterException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/common/Base64Encoder.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/common/Base64Encoder.java index bfa43071..ddb9c7b8 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/common/Base64Encoder.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/common/Base64Encoder.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.common; +package org.onap.oom.certservice.client.common; import org.bouncycastle.util.encoders.Base64; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/ClientConfigurationEnvs.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/ClientConfigurationEnvs.java index f8a0e91a..c29f5d97 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/ClientConfigurationEnvs.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/ClientConfigurationEnvs.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; public enum ClientConfigurationEnvs { REQUEST_URL, diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/CsrConfigurationEnvs.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/CsrConfigurationEnvs.java index d1cfcd5a..27b4aa22 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/CsrConfigurationEnvs.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/CsrConfigurationEnvs.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; public enum CsrConfigurationEnvs { COMMON_NAME, diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvProvider.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvProvider.java index 15339bbd..b86b0eca 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvProvider.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvProvider.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; import java.util.Optional; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForClient.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForClient.java index 9321964c..26d508fe 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForClient.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForClient.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; import java.util.Optional; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForCsr.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForCsr.java index 9a892b24..5873bf10 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForCsr.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForCsr.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; import java.util.Optional; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForTls.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForTls.java index 55b536a7..8e1333e6 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvsForTls.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/EnvsForTls.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; import java.util.Optional; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/TlsConfigurationEnvs.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/TlsConfigurationEnvs.java index 4009a088..de5050b5 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/TlsConfigurationEnvs.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/TlsConfigurationEnvs.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; public enum TlsConfigurationEnvs { KEYSTORE_PATH, diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/ClientConfigurationException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/ClientConfigurationException.java index ea280736..b75c9e13 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/ClientConfigurationException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/ClientConfigurationException.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,10 +18,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.exception; +package org.onap.oom.certservice.client.configuration.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class ClientConfigurationException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.CLIENT_CONFIGURATION_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/CsrConfigurationException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/CsrConfigurationException.java index cf785a71..85fda772 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/CsrConfigurationException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/CsrConfigurationException.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,10 +18,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.exception; +package org.onap.oom.certservice.client.configuration.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class CsrConfigurationException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.CSR_CONFIGURATION_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/TlsConfigurationException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/TlsConfigurationException.java index 91f164e3..6372c0b6 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/exception/TlsConfigurationException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/exception/TlsConfigurationException.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,10 +18,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.exception; +package org.onap.oom.certservice.client.configuration.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class TlsConfigurationException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.TLS_CONFIGURATION_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/AbstractConfigurationFactory.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/AbstractConfigurationFactory.java index 24ed8b0d..293ac2d1 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/AbstractConfigurationFactory.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/AbstractConfigurationFactory.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,13 +18,13 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.factory; +package org.onap.oom.certservice.client.configuration.factory; -import org.onap.aaf.certservice.client.certification.ArtifactsCreatorProvider; -import org.onap.aaf.certservice.client.configuration.exception.ClientConfigurationException; -import org.onap.aaf.certservice.client.configuration.exception.CsrConfigurationException; -import org.onap.aaf.certservice.client.configuration.model.ConfigurationModel; +import org.onap.oom.certservice.client.certification.ArtifactsCreatorProvider; +import org.onap.oom.certservice.client.configuration.exception.ClientConfigurationException; +import org.onap.oom.certservice.client.configuration.exception.CsrConfigurationException; +import org.onap.oom.certservice.client.configuration.model.ConfigurationModel; import java.util.Arrays; import java.util.Locale; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/ClientConfigurationFactory.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/ClientConfigurationFactory.java index d8498d84..17cb2cc4 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/ClientConfigurationFactory.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/ClientConfigurationFactory.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,12 +18,12 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.factory; +package org.onap.oom.certservice.client.configuration.factory; -import org.onap.aaf.certservice.client.configuration.ClientConfigurationEnvs; -import org.onap.aaf.certservice.client.configuration.EnvsForClient; -import org.onap.aaf.certservice.client.configuration.exception.ClientConfigurationException; -import org.onap.aaf.certservice.client.configuration.model.ClientConfiguration; +import org.onap.oom.certservice.client.configuration.ClientConfigurationEnvs; +import org.onap.oom.certservice.client.configuration.EnvsForClient; +import org.onap.oom.certservice.client.configuration.exception.ClientConfigurationException; +import org.onap.oom.certservice.client.configuration.model.ClientConfiguration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactory.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactory.java index 1d4cf2b2..0a88252c 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactory.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactory.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,12 +18,12 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.factory; +package org.onap.oom.certservice.client.configuration.factory; -import org.onap.aaf.certservice.client.configuration.CsrConfigurationEnvs; -import org.onap.aaf.certservice.client.configuration.EnvsForCsr; -import org.onap.aaf.certservice.client.configuration.exception.CsrConfigurationException; -import org.onap.aaf.certservice.client.configuration.model.CsrConfiguration; +import org.onap.oom.certservice.client.configuration.CsrConfigurationEnvs; +import org.onap.oom.certservice.client.configuration.EnvsForCsr; +import org.onap.oom.certservice.client.configuration.exception.CsrConfigurationException; +import org.onap.oom.certservice.client.configuration.model.CsrConfiguration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactory.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/SslContextFactory.java index 7da8fa58..9fac626e 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactory.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/SslContextFactory.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,12 +17,12 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.factory; +package org.onap.oom.certservice.client.configuration.factory; import org.apache.http.ssl.SSLContexts; -import org.onap.aaf.certservice.client.configuration.EnvsForTls; -import org.onap.aaf.certservice.client.configuration.TlsConfigurationEnvs; -import org.onap.aaf.certservice.client.configuration.exception.TlsConfigurationException; +import org.onap.oom.certservice.client.configuration.EnvsForTls; +import org.onap.oom.certservice.client.configuration.TlsConfigurationEnvs; +import org.onap.oom.certservice.client.configuration.exception.TlsConfigurationException; import javax.net.ssl.SSLContext; import java.io.File; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/ClientConfiguration.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/ClientConfiguration.java index 78fa1b4b..cd8a5c1e 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/ClientConfiguration.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/ClientConfiguration.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,14 +18,14 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.model; +package org.onap.oom.certservice.client.configuration.model; -import org.onap.aaf.certservice.client.configuration.ClientConfigurationEnvs; +import org.onap.oom.certservice.client.configuration.ClientConfigurationEnvs; public class ClientConfiguration implements ConfigurationModel { private static final Integer DEFAULT_TIMEOUT_MS = 30000; - private static final String DEFAULT_REQUEST_URL = "https://aaf-cert-service:8443/v1/certificate/"; + private static final String DEFAULT_REQUEST_URL = "https://oom-cert-service:8443/v1/certificate/"; private static final String DEFAULT_OUTPUT_TYPE = "P12"; private String urlToCertService; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/ConfigurationModel.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/ConfigurationModel.java index 15c22233..2c058d74 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/ConfigurationModel.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/ConfigurationModel.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.model; +package org.onap.oom.certservice.client.configuration.model; public interface ConfigurationModel { } diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/CsrConfiguration.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/CsrConfiguration.java index 55f33c9f..c5aefd97 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/model/CsrConfiguration.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/model/CsrConfiguration.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,10 +18,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.model; +package org.onap.oom.certservice.client.configuration.model; -import org.onap.aaf.certservice.client.configuration.CsrConfigurationEnvs; +import org.onap.oom.certservice.client.configuration.CsrConfigurationEnvs; public class CsrConfiguration implements ConfigurationModel { diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/CloseableHttpsClientProvider.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/CloseableHttpsClientProvider.java index 3b7a46ab..6b6690b6 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/CloseableHttpsClientProvider.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/CloseableHttpsClientProvider.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.httpclient; +package org.onap.oom.certservice.client.httpclient; import org.apache.http.client.config.RequestConfig; import org.apache.http.impl.client.CloseableHttpClient; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/HttpClient.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/HttpClient.java index 0780afad..7dba6b59 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/HttpClient.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/HttpClient.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.httpclient; +package org.onap.oom.certservice.client.httpclient; import com.google.gson.Gson; import org.apache.http.HttpEntity; @@ -27,10 +27,10 @@ import org.apache.http.HttpStatus; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.util.EntityUtils; -import org.onap.aaf.certservice.client.httpclient.exception.CertServiceApiResponseException; -import org.onap.aaf.certservice.client.httpclient.exception.HttpClientException; -import org.onap.aaf.certservice.client.httpclient.model.CertServiceResponse; -import org.onap.aaf.certservice.client.httpclient.model.ErrorCertServiceResponse; +import org.onap.oom.certservice.client.httpclient.exception.CertServiceApiResponseException; +import org.onap.oom.certservice.client.httpclient.exception.HttpClientException; +import org.onap.oom.certservice.client.httpclient.model.CertServiceResponse; +import org.onap.oom.certservice.client.httpclient.model.ErrorCertServiceResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/exception/CertServiceApiResponseException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/exception/CertServiceApiResponseException.java index ad5a5f1c..30ca0db3 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/exception/CertServiceApiResponseException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/exception/CertServiceApiResponseException.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,10 +18,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.httpclient.exception; +package org.onap.oom.certservice.client.httpclient.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class CertServiceApiResponseException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.CERT_SERVICE_API_CONNECTION_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/exception/HttpClientException.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/exception/HttpClientException.java index e9f0f0ad..ff286619 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/exception/HttpClientException.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/exception/HttpClientException.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,10 +18,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.httpclient.exception; +package org.onap.oom.certservice.client.httpclient.exception; -import org.onap.aaf.certservice.client.api.ExitStatus; -import org.onap.aaf.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitableException; public class HttpClientException extends ExitableException { private static final ExitStatus EXIT_STATUS = ExitStatus.HTTP_CLIENT_EXCEPTION; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/model/CertServiceResponse.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/model/CertServiceResponse.java index 4ca17999..453dfd53 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/model/CertServiceResponse.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/model/CertServiceResponse.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.httpclient.model; +package org.onap.oom.certservice.client.httpclient.model; import java.util.Collections; import java.util.List; diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/model/ErrorCertServiceResponse.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/model/ErrorCertServiceResponse.java index 4a9efcb4..2304ddcd 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/httpclient/model/ErrorCertServiceResponse.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/httpclient/model/ErrorCertServiceResponse.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.httpclient.model; +package org.onap.oom.certservice.client.httpclient.model; public class ErrorCertServiceResponse { diff --git a/certServiceClient/src/main/resources/log4j2.xml b/certServiceClient/src/main/resources/log4j2.xml index bf4b6239..a641a4e0 100644 --- a/certServiceClient/src/main/resources/log4j2.xml +++ b/certServiceClient/src/main/resources/log4j2.xml @@ -8,7 +8,7 @@ pattern="%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} %highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, TRACE=blue} %style{%pid}{magenta} [%15.15t] %style{%-40.40C{1.}}{cyan} : %m%n%throwable"/> </Console> - <RollingFile fileName="var/log/onap/aaf/certservice-client/certservice-client.log" + <RollingFile fileName="var/log/onap/oom/certservice-client/certservice-client.log" filePattern="logs/certservice-client-%d{yyyy-MM-dd}-%i.log" name="ROLLING_FILE"> <PatternLayout pattern="[%d{ISO8601}][%-5p][%-5c] %m%n"/> <Policies> diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/CerServiceRequestTestData.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/CerServiceRequestTestData.java index 8f252c31..0e5ec191 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/CerServiceRequestTestData.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/CerServiceRequestTestData.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client; +package org.onap.oom.certservice.client; import java.io.IOException; import java.nio.charset.StandardCharsets; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/CertServiceClientTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/CertServiceClientTest.java index 9e256f98..0a5806fd 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/CertServiceClientTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/CertServiceClientTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client; +package org.onap.oom.certservice.client; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -26,8 +26,8 @@ import org.mockito.junit.jupiter.MockitoExtension; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.verify; -import static org.onap.aaf.certservice.client.api.ExitStatus.CLIENT_CONFIGURATION_EXCEPTION; -import static org.onap.aaf.certservice.client.api.ExitStatus.SUCCESS; +import static org.onap.oom.certservice.client.api.ExitStatus.CLIENT_CONFIGURATION_EXCEPTION; +import static org.onap.oom.certservice.client.api.ExitStatus.SUCCESS; @ExtendWith(MockitoExtension.class) class CertServiceClientTest { diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/ArtifactsCreatorProviderTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/ArtifactsCreatorProviderTest.java index 46bacef8..503ed70f 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/ArtifactsCreatorProviderTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/ArtifactsCreatorProviderTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,15 +17,15 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.ValueSource; -import org.onap.aaf.certservice.client.certification.conversion.ArtifactsCreator; -import org.onap.aaf.certservice.client.certification.conversion.ConvertedArtifactsCreator; -import org.onap.aaf.certservice.client.certification.conversion.PemArtifactsCreator; +import org.onap.oom.certservice.client.certification.conversion.ArtifactsCreator; +import org.onap.oom.certservice.client.certification.conversion.ConvertedArtifactsCreator; +import org.onap.oom.certservice.client.certification.conversion.PemArtifactsCreator; import static org.assertj.core.api.Assertions.assertThat; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/CsrFactoryTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/CsrFactoryTest.java index ae18e6fb..e2bfa976 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/CsrFactoryTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/CsrFactoryTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,13 +17,13 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.certification.exception.CsrGenerationException; -import org.onap.aaf.certservice.client.certification.exception.KeyPairGenerationException; -import org.onap.aaf.certservice.client.configuration.model.CsrConfiguration; +import org.onap.oom.certservice.client.certification.exception.CsrGenerationException; +import org.onap.oom.certservice.client.certification.exception.KeyPairGenerationException; +import org.onap.oom.certservice.client.configuration.model.CsrConfiguration; import java.security.KeyPair; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/KeyPairFactoryTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/KeyPairFactoryTest.java index 3d3d3c17..765a58ca 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/KeyPairFactoryTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/KeyPairFactoryTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,10 +17,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.certification.exception.KeyPairGenerationException; +import org.onap.oom.certservice.client.certification.exception.KeyPairGenerationException; import java.security.KeyPair; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/PrivateKeyToPemEncoderTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/PrivateKeyToPemEncoderTest.java index 41f15bb7..6424611e 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/PrivateKeyToPemEncoderTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/PrivateKeyToPemEncoderTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,13 +17,13 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification; +package org.onap.oom.certservice.client.certification; import org.bouncycastle.util.io.pem.PemObject; import org.bouncycastle.util.io.pem.PemReader; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.certification.exception.PkEncodingException; +import org.onap.oom.certservice.client.certification.exception.PkEncodingException; import java.io.IOException; import java.io.StringReader; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreatorTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreatorTest.java index e13f8be8..3a4d3419 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ConvertedArtifactsCreatorTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/ConvertedArtifactsCreatorTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,13 +17,13 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.certification.exception.CertFileWriterException; -import org.onap.aaf.certservice.client.certification.exception.PemConversionException; -import org.onap.aaf.certservice.client.certification.writer.CertFileWriter; +import org.onap.oom.certservice.client.certification.exception.CertFileWriterException; +import org.onap.oom.certservice.client.certification.exception.PemConversionException; +import org.onap.oom.certservice.client.certification.writer.CertFileWriter; import java.security.PrivateKey; import java.util.List; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/PemArtifactsCreatorTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/PemArtifactsCreatorTest.java index 5e79b96f..fd6d95c5 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/PemArtifactsCreatorTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/PemArtifactsCreatorTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,12 +17,12 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.api.ExitableException; -import org.onap.aaf.certservice.client.certification.PrivateKeyToPemEncoder; -import org.onap.aaf.certservice.client.certification.writer.CertFileWriter; +import org.onap.oom.certservice.client.api.ExitableException; +import org.onap.oom.certservice.client.certification.PrivateKeyToPemEncoder; +import org.onap.oom.certservice.client.certification.writer.CertFileWriter; import java.security.PrivateKey; import java.util.List; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/PemConverterTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/PemConverterTest.java index e3a58c3f..c5adec08 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/PemConverterTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/PemConverterTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,14 +17,14 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import org.onap.aaf.certservice.client.certification.EncryptionAlgorithmConstants; -import org.onap.aaf.certservice.client.certification.exception.PemConversionException; +import org.onap.oom.certservice.client.certification.EncryptionAlgorithmConstants; +import org.onap.oom.certservice.client.certification.exception.PemConversionException; import java.io.ByteArrayInputStream; import java.io.IOException; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGeneratorTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/RandomPasswordGeneratorTest.java index 483e35e0..3457f32a 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/RandomPasswordGeneratorTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/conversion/RandomPasswordGeneratorTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,7 +17,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.conversion; +package org.onap.oom.certservice.client.certification.conversion; import org.junit.jupiter.api.Test; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriterTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/writer/CertFileWriterTest.java index c45876ec..11259368 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriterTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/certification/writer/CertFileWriterTest.java @@ -1,5 +1,5 @@ /*============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -17,12 +17,12 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.certification.writer; +package org.onap.oom.certservice.client.certification.writer; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import org.onap.aaf.certservice.client.certification.exception.CertFileWriterException; +import org.onap.oom.certservice.client.certification.exception.CertFileWriterException; import java.io.File; import java.io.IOException; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvProviderTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvProviderTest.java index 74c8c2a1..3181ec9f 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvProviderTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvProviderTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForCsrTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvsForCsrTest.java index d6af20c6..ade13f75 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForCsrTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvsForCsrTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForTlsTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvsForTlsTest.java index 7f599aa5..54ed56b7 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForTlsTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/EnvsForTlsTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration; +package org.onap.oom.certservice.client.configuration; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/exception/TlsConfigurationExceptionTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/exception/TlsConfigurationExceptionTest.java index e9e5c3bf..6ebc3f2a 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/exception/TlsConfigurationExceptionTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/exception/TlsConfigurationExceptionTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,10 +18,10 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.exception; +package org.onap.oom.certservice.client.configuration.exception; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.api.ExitStatus; +import org.onap.oom.certservice.client.api.ExitStatus; import static org.assertj.core.api.Assertions.assertThat; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/AbstractConfigurationFactoryTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/AbstractConfigurationFactoryTest.java index e4d71b31..e55e55b6 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/AbstractConfigurationFactoryTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/AbstractConfigurationFactoryTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.factory; +package org.onap.oom.certservice.client.configuration.factory; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/ClientConfigurationFactoryTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/ClientConfigurationFactoryTest.java index 20a6c7ef..44827494 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/ClientConfigurationFactoryTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/ClientConfigurationFactoryTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,13 +18,13 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.factory; +package org.onap.oom.certservice.client.configuration.factory; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.configuration.ClientConfigurationEnvs; -import org.onap.aaf.certservice.client.configuration.EnvsForClient; -import org.onap.aaf.certservice.client.configuration.exception.ClientConfigurationException; -import org.onap.aaf.certservice.client.configuration.model.ClientConfiguration; +import org.onap.oom.certservice.client.configuration.ClientConfigurationEnvs; +import org.onap.oom.certservice.client.configuration.EnvsForClient; +import org.onap.oom.certservice.client.configuration.exception.ClientConfigurationException; +import org.onap.oom.certservice.client.configuration.model.ClientConfiguration; import java.util.Optional; @@ -35,13 +35,13 @@ import static org.mockito.Mockito.when; public class ClientConfigurationFactoryTest { - private static final String CA_NAME_VALID = "caaaftest2"; + private static final String CA_NAME_VALID = "catest2"; private static final String TIME_OUT_VALID = "30000"; - private static final String OUTPUT_PATH_VALID = "/opt/app/osaaf"; + private static final String OUTPUT_PATH_VALID = "/opt/app/oom"; private static final String URL_TO_CERT_SERVICE_VALID = "https://cert-service:8443/v1/certificate/"; - private static final String URL_TO_CERT_SERVICE_DEFAULT = "https://aaf-cert-service:8443/v1/certificate/"; - private static final String CA_NAME_INVALID = "caaaftest2#$"; - private static final String OUTPUT_PATH_INVALID = "/opt//app/osaaf"; + private static final String URL_TO_CERT_SERVICE_DEFAULT = "https://oom-cert-service:8443/v1/certificate/"; + private static final String CA_NAME_INVALID = "catest2#$"; + private static final String OUTPUT_PATH_INVALID = "/opt//app/oom"; private static final String OUTPUT_TYPE_VALID = "JKS"; private static final String OUTPUT_TYPE_INVALID = "JKSS"; private static final String OUTPUT_TYPE_DEFAULT = "P12"; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java index b9b9b078..e27cb57a 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,15 +18,15 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.factory; +package org.onap.oom.certservice.client.configuration.factory; import org.assertj.core.api.Condition; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.configuration.CsrConfigurationEnvs; -import org.onap.aaf.certservice.client.configuration.EnvsForCsr; -import org.onap.aaf.certservice.client.configuration.exception.CsrConfigurationException; -import org.onap.aaf.certservice.client.configuration.model.CsrConfiguration; +import org.onap.oom.certservice.client.configuration.CsrConfigurationEnvs; +import org.onap.oom.certservice.client.configuration.EnvsForCsr; +import org.onap.oom.certservice.client.configuration.exception.CsrConfigurationException; +import org.onap.oom.certservice.client.configuration.model.CsrConfiguration; import java.util.Optional; @@ -34,7 +34,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -import static org.onap.aaf.certservice.client.api.ExitStatus.CSR_CONFIGURATION_EXCEPTION; +import static org.onap.oom.certservice.client.api.ExitStatus.CSR_CONFIGURATION_EXCEPTION; public class CsrConfigurationFactoryTest { diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactoryTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/SslContextFactoryTest.java index 8e6e8369..923bc18d 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactoryTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/SslContextFactoryTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,14 +18,14 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.configuration.factory; +package org.onap.oom.certservice.client.configuration.factory; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; -import org.onap.aaf.certservice.client.configuration.EnvsForTls; -import org.onap.aaf.certservice.client.configuration.exception.TlsConfigurationException; +import org.onap.oom.certservice.client.configuration.EnvsForTls; +import org.onap.oom.certservice.client.configuration.exception.TlsConfigurationException; import javax.net.ssl.SSLContext; import java.util.Optional; diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/httpclient/HttpClientTest.java index a109749b..553de25c 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/httpclient/HttpClientTest.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * aaf-certservice-client + * oom-certservice-client * ================================================================================ * Copyright (C) 2020 Nokia. All rights reserved. * ================================================================================ @@ -18,7 +18,7 @@ * ============LICENSE_END========================================================= */ -package org.onap.aaf.certservice.client.httpclient; +package org.onap.oom.certservice.client.httpclient; import org.apache.http.HttpEntity; import org.apache.http.StatusLine; @@ -27,9 +27,9 @@ import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.onap.aaf.certservice.client.httpclient.exception.CertServiceApiResponseException; -import org.onap.aaf.certservice.client.httpclient.exception.HttpClientException; -import org.onap.aaf.certservice.client.httpclient.model.CertServiceResponse; +import org.onap.oom.certservice.client.httpclient.exception.CertServiceApiResponseException; +import org.onap.oom.certservice.client.httpclient.exception.HttpClientException; +import org.onap.oom.certservice.client.httpclient.model.CertServiceResponse; import java.io.ByteArrayInputStream; import java.io.IOException; @@ -42,13 +42,13 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.mockito.Mockito.any; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -import static org.onap.aaf.certservice.client.CerServiceRequestTestData.CA_NAME; -import static org.onap.aaf.certservice.client.CerServiceRequestTestData.CORRECT_RESPONSE; -import static org.onap.aaf.certservice.client.CerServiceRequestTestData.CSR; -import static org.onap.aaf.certservice.client.CerServiceRequestTestData.EXPECTED_FIRST_ELEMENT_OF_CERTIFICATE_CHAIN; -import static org.onap.aaf.certservice.client.CerServiceRequestTestData.EXPECTED_FIRST_ELEMENT_OF_TRUSTED_CERTIFICATES; -import static org.onap.aaf.certservice.client.CerServiceRequestTestData.MISSING_PK_RESPONSE; -import static org.onap.aaf.certservice.client.CerServiceRequestTestData.PK; +import static org.onap.oom.certservice.client.CerServiceRequestTestData.CA_NAME; +import static org.onap.oom.certservice.client.CerServiceRequestTestData.CORRECT_RESPONSE; +import static org.onap.oom.certservice.client.CerServiceRequestTestData.CSR; +import static org.onap.oom.certservice.client.CerServiceRequestTestData.EXPECTED_FIRST_ELEMENT_OF_CERTIFICATE_CHAIN; +import static org.onap.oom.certservice.client.CerServiceRequestTestData.EXPECTED_FIRST_ELEMENT_OF_TRUSTED_CERTIFICATES; +import static org.onap.oom.certservice.client.CerServiceRequestTestData.MISSING_PK_RESPONSE; +import static org.onap.oom.certservice.client.CerServiceRequestTestData.PK; class HttpClientTest { |