X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=cadi%2Faaf%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fcadi%2Faaf%2Fv2_0%2FAAFConHttp.java;h=59cb6c87687a8a4743ae1a9dae62e8c27b60d16b;hb=c91b63bb275b8d541309d7e1e8faa4f0bc752630;hp=9fc38d9fad0b3aa18cf552582cf781fb219d5ae4;hpb=4ad4763d8c9191998cc671a884d1af5da6ba8bb9;p=aaf%2Fauthz.git diff --git a/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/v2_0/AAFConHttp.java b/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/v2_0/AAFConHttp.java index 9fc38d9f..59cb6c87 100644 --- a/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/v2_0/AAFConHttp.java +++ b/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/v2_0/AAFConHttp.java @@ -49,7 +49,7 @@ import org.onap.aaf.misc.env.APIException; public class AAFConHttp extends AAFCon { private final HMangr hman; - public AAFConHttp(Access access) throws APIException, CadiException, LocatorException { + public AAFConHttp(Access access) throws CadiException, LocatorException { super(access,Config.AAF_URL,SecurityInfoC.instance(access, HttpURLConnection.class)); bestSS(si); hman = new HMangr(access,Config.loadLocator(si, access.getProperty(Config.AAF_URL,null))); @@ -64,7 +64,7 @@ public class AAFConHttp extends AAFCon { } catch (APIException e) { throw new CadiException(e); } - } else if((s = access.getProperty(Config.AAF_APPID, null))!=null){ + } else if((access.getProperty(Config.AAF_APPID, null))!=null){ try { return new HBasicAuthSS(si,true); } catch (IOException /*| GeneralSecurityException*/ e) { @@ -75,19 +75,19 @@ public class AAFConHttp extends AAFCon { } } - public AAFConHttp(Access access, String tag) throws APIException, CadiException, LocatorException { + public AAFConHttp(Access access, String tag) throws CadiException, LocatorException { super(access,tag,SecurityInfoC.instance(access, HttpURLConnection.class)); bestSS(si); hman = new HMangr(access,Config.loadLocator(si, access.getProperty(tag,tag/*try the content itself*/))); } - public AAFConHttp(Access access, String urlTag, SecurityInfoC si) throws CadiException, APIException, LocatorException { + public AAFConHttp(Access access, String urlTag, SecurityInfoC si) throws CadiException, LocatorException { super(access,urlTag,si); bestSS(si); hman = new HMangr(access,Config.loadLocator(si, access.getProperty(urlTag,null))); } - public AAFConHttp(Access access, Locator locator) throws CadiException, LocatorException, APIException { + public AAFConHttp(Access access, Locator locator) throws CadiException, LocatorException { super(access,Config.AAF_URL,SecurityInfoC.instance(access, HttpURLConnection.class)); bestSS(si); hman = new HMangr(access,locator); @@ -135,7 +135,7 @@ public class AAFConHttp extends AAFCon { } } - public SecuritySetter x509Alias(String alias) throws APIException, CadiException { + public SecuritySetter x509Alias(String alias) throws CadiException { try { return set(new HX509SS(alias,si)); } catch (Exception e) { @@ -168,7 +168,7 @@ public class AAFConHttp extends AAFCon { } } @Override - public AbsTransferSS transferSS(TaggedPrincipal principal) throws CadiException { + public AbsTransferSS transferSS(TaggedPrincipal principal) { return new HTransferSS(principal, app,si); } @@ -199,7 +199,7 @@ public class AAFConHttp extends AAFCon { @Override public RET best(Retryable retryable) throws LocatorException, CadiException, APIException { - return hman.best(si.defSS, (Retryable)retryable); + return hman.best(si.defSS, retryable); } /* (non-Javadoc) @@ -207,7 +207,7 @@ public class AAFConHttp extends AAFCon { */ @Override public RET bestForUser(GetSetter getSetter, Retryable retryable) throws LocatorException, CadiException, APIException { - return hman.best(getSetter.get(this), (Retryable)retryable); + return hman.best(getSetter.get(this), retryable); } /* (non-Javadoc) @@ -230,7 +230,7 @@ public class AAFConHttp extends AAFCon { * @see org.onap.aaf.cadi.aaf.v2_0.AAFCon#setInitURI(java.lang.String) */ @Override - protected void setInitURI(String uriString) throws CadiException { + protected void setInitURI(String uriString) { // Using Locator, not URLString, which is mostly for DME2 }