Remove Code from cadi, it is now in authz
[aaf/cadi.git] / aaf / src / main / java / org / onap / aaf / cadi / cm / PlaceArtifactOnStream.java
diff --git a/aaf/src/main/java/org/onap/aaf/cadi/cm/PlaceArtifactOnStream.java b/aaf/src/main/java/org/onap/aaf/cadi/cm/PlaceArtifactOnStream.java
deleted file mode 100644 (file)
index 162d745..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************\r
- * ============LICENSE_START====================================================\r
- * * org.onap.aaf\r
- * * ===========================================================================\r
- * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
- * * ===========================================================================\r
- * * Licensed under the Apache License, Version 2.0 (the "License");\r
- * * you may not use this file except in compliance with the License.\r
- * * You may obtain a copy of the License at\r
- * * \r
- *  *      http://www.apache.org/licenses/LICENSE-2.0\r
- * * \r
- *  * Unless required by applicable law or agreed to in writing, software\r
- * * distributed under the License is distributed on an "AS IS" BASIS,\r
- * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * * See the License for the specific language governing permissions and\r
- * * limitations under the License.\r
- * * ============LICENSE_END====================================================\r
- * *\r
- * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
- * *\r
- ******************************************************************************/\r
-package org.onap.aaf.cadi.cm;\r
-\r
-import java.io.PrintStream;\r
-\r
-import certman.v1_0.Artifacts.Artifact;\r
-import certman.v1_0.CertInfo;\r
-\r
-import org.onap.aaf.inno.env.Trans;\r
-\r
-public class PlaceArtifactOnStream implements PlaceArtifact {\r
-       private PrintStream out;\r
-\r
-       public PlaceArtifactOnStream(PrintStream printStream) {\r
-               out = printStream;\r
-       }\r
-\r
-       @Override\r
-       public boolean place(Trans trans, CertInfo capi, Artifact a) {\r
-               if(capi.getNotes()!=null && capi.getNotes().length()>0) {\r
-                       trans.info().printf("Warning:    %s\n",capi.getNotes());\r
-               }\r
-               out.printf("Challenge:  %s\n",capi.getChallenge());\r
-               out.printf("PrivateKey:\n%s\n",capi.getPrivatekey());\r
-               out.println("Certificate Chain:");\r
-               for(String c : capi.getCerts()) {\r
-                       out.println(c);\r
-               }\r
-               return true;\r
-       }\r
-}\r