+++ /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.lur;\r
-\r
-import java.security.Principal;\r
-import java.util.List;\r
-\r
-import org.onap.aaf.cadi.Lur;\r
-import org.onap.aaf.cadi.Permission;\r
-\r
-public class NullLur implements Lur {\r
- private static final Permission NULL = new Permission() {\r
- @Override\r
- public String permType() {\r
- return "";\r
- }\r
-\r
- @Override\r
- public String getKey() {\r
- return "";\r
- }\r
-\r
- @Override\r
- public boolean match(Permission p) {\r
- return false;\r
- }};\r
-\r
- public boolean fish(Principal bait, Permission pond) {\r
- // Well, for Jenkins, this is ok... It finds out it can't do J2EE Security, and then looks at it's own\r
-// System.err.println("CADI's LUR has not been configured, but is still being called. Access is being denied");\r
- return false;\r
- }\r
-\r
- public void fishAll(Principal bait, List<Permission> permissions) {\r
- }\r
-\r
- public void destroy() {\r
- }\r
-\r
- public boolean handlesExclusively(Permission pond) {\r
- return false;\r
- }\r
-\r
- public boolean supports(String userName) {\r
- return false;\r
- }\r
-\r
- /* (non-Javadoc)\r
- * @see com.att.cadi.Lur#createPerm(java.lang.String)\r
- */\r
- @Override\r
- public Permission createPerm(String p) {\r
- return NULL;\r
- }\r
-\r
- /* (non-Javadoc)\r
- * @see com.att.cadi.Lur#clear(java.security.Principal, java.lang.StringBuilder)\r
- */\r
- @Override\r
- public void clear(Principal p, StringBuilder report) {\r
- report.append(NullLur.class.getSimpleName());\r
- report.append('\n');\r
- }\r
- \r
- public String toString() {\r
- return NullLur.class.getSimpleName() + '\n';\r
- }\r
-}\r