Remove Code from cadi, it is now in authz
[aaf/cadi.git] / client / src / main / java / org / onap / aaf / cadi / client / AbsTransferSS.java
diff --git a/client/src/main/java/org/onap/aaf/cadi/client/AbsTransferSS.java b/client/src/main/java/org/onap/aaf/cadi/client/AbsTransferSS.java
deleted file mode 100644 (file)
index e731f09..0000000
+++ /dev/null
@@ -1,73 +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.client;\r
-\r
-import java.security.Principal;\r
-\r
-import org.onap.aaf.cadi.SecuritySetter;\r
-import org.onap.aaf.cadi.config.SecurityInfoC;\r
-import org.onap.aaf.cadi.principal.BasicPrincipal;\r
-import org.onap.aaf.cadi.principal.TGuardPrincipal;\r
-import org.onap.aaf.cadi.principal.TrustPrincipal;\r
-\r
-public abstract class AbsTransferSS<CLIENT> implements SecuritySetter<CLIENT> {\r
-       protected String value;\r
-       protected SecurityInfoC<CLIENT> securityInfo;\r
-       protected SecuritySetter<CLIENT> defSS;\r
-       private Principal principal;\r
-\r
-       //Format:<ID>:<APP>:<protocol>[:AS][,<ID>:<APP>:<protocol>]*\r
-       public AbsTransferSS(Principal principal, String app) {\r
-               init(principal, app);\r
-       }\r
-\r
-       public AbsTransferSS(Principal principal, String app, SecurityInfoC<CLIENT> si) {\r
-               init(principal,app);\r
-               securityInfo = si;\r
-               this.defSS = si.defSS;\r
-       }\r
-\r
-       private void init(Principal principal, String app)  {\r
-               this.principal=principal;\r
-               if(principal==null) {\r
-                       return;\r
-               } else if(principal instanceof BasicPrincipal) {\r
-                       value = principal.getName() + ':' + app + ":BasicAuth:AS";\r
-               } else if(principal instanceof TrustPrincipal) {\r
-                       TrustPrincipal tp = (TrustPrincipal)principal;\r
-                       // recursive\r
-                       init(tp.original(),app);\r
-                       value += principal.getName() + ':' + app + ":Trust:AS" + ',' + tp.userChain();\r
-               } else if(principal instanceof TGuardPrincipal) {\r
-                       value = principal.getName() + ':' + app + ":TGUARD:AS";\r
-               }\r
-       }\r
-\r
-       /* (non-Javadoc)\r
-        * @see com.att.cadi.SecuritySetter#getID()\r
-        */\r
-       @Override\r
-       public String getID() {\r
-               return principal==null?"":principal.getName();\r
-       }\r
-}\r