All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bluecrystal.service.loader.SignaturePolicyLoaderImpl Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
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