bluecrystal.service.loader.SignaturePolicyLoaderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluecrystal.deps.service Show documentation
Show all versions of bluecrystal.deps.service Show documentation
API that should be used by applications
package bluecrystal.service.loader;
import java.util.HashMap;
import java.util.Map;
public class SignaturePolicyLoaderImpl implements SignaturePolicyLoader {
Map policies;
public SignaturePolicyLoaderImpl() {
super();
policies = new HashMap();
}
@Override
public byte[] loadFromUrl(String url) throws Exception {
byte[] sp = null;
if(policies.containsKey(url)){
return policies.get(url);
} else {
sp = ExternalLoaderHttp.getfromUrl(url);
policies.put(url, sp);
}
return sp;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy