+++ /dev/null
-/*******************************************************************************\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.taf;\r
-\r
-import javax.servlet.http.HttpServletRequest;\r
-import javax.servlet.http.HttpServletResponse;\r
-\r
-import org.onap.aaf.cadi.CachedPrincipal;\r
-import org.onap.aaf.cadi.Taf;\r
-import org.onap.aaf.cadi.CachedPrincipal.Resp;\r
-\r
-\r
-/**\r
- * This TAF is set at the very beginning of Filters and Valves so that if any configuration issues hit while\r
- * starting, the default behavior is to shut down traffic rather than leaving an open hole\r
- * \r
- *\r
- */\r
-public class NullTaf implements Taf, HttpTaf {\r
- // Singleton Pattern\r
- public NullTaf() {}\r
-\r
- /**\r
- * validate \r
- * \r
- * Always Respond with a NullTafResp, which declares it is unauthenticated, and unauthorized\r
- */\r
- public TafResp validate(LifeForm reading, String... info) {\r
- return NullTafResp.singleton();\r
- }\r
-\r
- /**\r
- * validate \r
- * \r
- * Always Respond with a NullTafResp, which declares it is unauthenticated, and unauthorized\r
- */\r
- public TafResp validate(LifeForm reading, HttpServletRequest req, HttpServletResponse resp) {\r
- return NullTafResp.singleton();\r
- }\r
-\r
- public Resp revalidate(CachedPrincipal prin) {\r
- return Resp.NOT_MINE;\r
- }\r
-}\r