X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cadi%2Fcore%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fcadi%2Fconfig%2FSecurityInfoC.java;h=7c5f50ed008eed5d0248b755b7da09051e85bc25;hb=1296352d8eafee57f982a4342ad79ada4aa56d28;hp=4e365fba779f60fb0c7d0b2fa94d949c8b1e4477;hpb=7e966914050e66219689001ff4ab601a49eef0ac;p=aaf%2Fauthz.git diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfoC.java b/cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfoC.java index 4e365fba..7c5f50ed 100644 --- a/cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfoC.java +++ b/cadi/core/src/main/java/org/onap/aaf/cadi/config/SecurityInfoC.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file 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. @@ -34,13 +34,13 @@ public class SecurityInfoC extends SecurityInfo { public static final String DEF_ID = "ID not Set"; private static Map,SecurityInfoC> sicMap = new HashMap<>(); public SecuritySetter defSS; - + public SecurityInfoC(Access access) throws CadiException { super(access); defSS = new DEFSS(); } - + @SuppressWarnings("unchecked") public static synchronized SecurityInfoC instance(Access access, Class cls) throws CadiException { SecurityInfoInit sii; @@ -58,9 +58,9 @@ public class SecurityInfoC extends SecurityInfo { public SecuritySetter bestDefault(SecurityInfoC si) throws CadiException { return new DEFSS(); } - }; + }; } - + SecurityInfoC sic = (SecurityInfoC) sicMap.get(cls); if (sic==null) { sic = new SecurityInfoC(access);