aboutsummaryrefslogtreecommitdiffstats
path: root/cdf/src/cdf-prop-value/cdf-prop-value/src/main/java/org/onap/dcae/cdf/CdfPropValue.java
diff options
context:
space:
mode:
authorHansen, Tony (th1395) <th1395@att.com>2018-03-29 12:57:06 +0000
committerHansen, Tony (th1395) <th1395@att.com>2018-03-29 12:57:23 +0000
commitbd5129dbad044907bd1818b2f8cda3c60da9b3e8 (patch)
treeedc355d63e440a87a1c97ad65357681f279e6ba0 /cdf/src/cdf-prop-value/cdf-prop-value/src/main/java/org/onap/dcae/cdf/CdfPropValue.java
parent4e1b45a2e3e474606965ca3b66bd5f82f526b0ce (diff)
remove most of this code for R2 Beijing
This package is not being used in R2 Beijing because of the move to Kubernetes with OOM. If you need this package, use the R1 Amsterdam release packages. I'm not removing the repo though because it is likely that we will need to add things in R3 Casablanca. Change-Id: I40a46886cfa2f3803f97918ad5cea149f5fcf696 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com> Issue-ID: CCSDK-231
Diffstat (limited to 'cdf/src/cdf-prop-value/cdf-prop-value/src/main/java/org/onap/dcae/cdf/CdfPropValue.java')
-rw-r--r--cdf/src/cdf-prop-value/cdf-prop-value/src/main/java/org/onap/dcae/cdf/CdfPropValue.java86
1 files changed, 0 insertions, 86 deletions
diff --git a/cdf/src/cdf-prop-value/cdf-prop-value/src/main/java/org/onap/dcae/cdf/CdfPropValue.java b/cdf/src/cdf-prop-value/cdf-prop-value/src/main/java/org/onap/dcae/cdf/CdfPropValue.java
deleted file mode 100644
index cd9a51c..0000000
--- a/cdf/src/cdf-prop-value/cdf-prop-value/src/main/java/org/onap/dcae/cdf/CdfPropValue.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this code except in compliance
- with the License. You may obtain a copy of the License
- at http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied. See the License for the specific language governing
- permissions and limitations under the License.
-
-*/
-package org.onap.dcae.cdf;
-
-import org.onap.dcae.cdf.util.config.PropValue;
-import java.util.logging.Logger;
-import org.onap.dcae.cdf.util.config.Configuration;
-import java.io.InputStream;
-import java.io.PrintStream;
-
-public class CdfPropValue extends PropValue {
- public static String getCDFHOME() {
- String optCdf = System.getProperty("CDF_HOME");
- if (optCdf == null) optCdf = System.getenv("CDF_HOME");
- if (optCdf == null) optCdf = "/opt/app/cdf";
- return optCdf;
- }
-
- public static String getGLOBALPROPFILE() {
- String optCdfCfg = System.getProperty("CDF_CFG");
- if (optCdfCfg == null) optCdfCfg = System.getenv("CDF_CFG");
- if (optCdfCfg == null) optCdfCfg = getCDFHOME() + "/lib/cdf.cfg";
- return optCdfCfg;
- }
-
- public static void init() {
- PropValue.setGlobalPropFile(getGLOBALPROPFILE());
- PropValue.setEncryptionKeyProperty("Global_Title");
- }
- static {
- init();
- }
-
- public static void printEncryptedProperty(String method, String name, String salt, String value, String globalPropFile) {
- PropValue.printEncryptedProperty(method, name, salt, value, globalPropFile);
- }
- public static String generateEncryptedProperty(String method, String salt, String value, String globalPropFile) throws Exception {
- return PropValue.generateEncryptedProperty(method, salt, value, globalPropFile);
- }
- public static String generateEncryptedProperty(String method, String salt, String value, PropValue propValue) throws Exception {
- return PropValue.generateEncryptedProperty(method, salt, value, propValue);
- }
- public static void extractProperty(String f, String name, boolean encrypted) {
- PropValue.extractProperty(f, name, encrypted);
- }
- public static void extractProperty(String f, String name, boolean encrypted, String globalPropFile) {
- PropValue.extractProperty(f, name, encrypted, globalPropFile);
- }
- public static String decryptTriple(String triple, String globalPropFile) {
- return PropValue.decryptTriple(triple, globalPropFile);
- }
- public static String decryptTriple(String triple, PropValue propValue) {
- return PropValue.decryptTriple(triple, propValue);
- }
- public static void encryptInput(InputStream in, PrintStream out) throws Exception {
- PropValue.encryptInput(in, out);
- }
- public static void encryptInput() throws Exception {
- PropValue.encryptInput();
- }
- public static void encryptInput(String globalPropFile, InputStream sysin, PrintStream sysout) throws Exception {
- PropValue.encryptInput(globalPropFile, sysin, sysout);
- }
- public static void main(String args[]) throws Exception {
- PropValue.main(args);
- }
-
-
- public CdfPropValue(Configuration globalConfig, Logger logger) {
- super(globalConfig, logger);
- }
-
-}