Home | History | Annotate | Download | only in jca

Lines Matching refs:ProviderList

36  * The system starts out with a ProviderList that only has the classNames
42 * to force all Providers to be loaded and to obtain a ProviderList with
56 public final class ProviderList {
59 sun.security.util.Debug.getInstance("jca", "ProviderList");
65 // constant for an ProviderList with no elements
66 static final ProviderList EMPTY = new ProviderList(PC0, true);
78 // construct a ProviderList from the security properties
80 static ProviderList fromSecurityProperties() {
83 new PrivilegedAction<ProviderList>() {
84 public ProviderList run() {
85 return new ProviderList();
90 public static ProviderList add(ProviderList providerList, Provider p) {
91 return insertAt(providerList, p, -1);
94 public static ProviderList insertAt(ProviderList providerList, Provider p,
96 if (providerList.getProvider(p.getName()) != null) {
97 return providerList;
100 (Arrays.asList(providerList.configs));
106 return new ProviderList(list.toArray(PC0), true);
109 public static ProviderList remove(ProviderList providerList, String name) {
111 if (providerList.getProvider(name) == null) {
112 return providerList;
115 ProviderConfig[] configs = new ProviderConfig[providerList.size() - 1];
117 for (ProviderConfig config : providerList.configs) {
122 return new ProviderList(configs, true);
125 // Create a new ProviderList from the specified Providers.
127 public static ProviderList newList(Provider ... providers) {
132 return new ProviderList(configs, true);
152 * Create a new ProviderList from an array of configs
154 private ProviderList(ProviderConfig[] configs, boolean allLoaded) {
160 * Return a new ProviderList parsed from the java.security Properties.
162 private ProviderList() {
197 * Construct a special ProviderList for JAR verification. It consists
202 ProviderList getJarList(String[] jarClassNames) {
220 return new ProviderList(configArray, false);
258 * installed or -1 if it is not present in this ProviderList.
293 * Try to load all Providers and return the ProviderList. If one or
294 * more Providers could not be loaded, a new ProviderList with those
297 ProviderList removeInvalid() {
309 return new ProviderList(newConfigs, true);
317 // return a String representation of this ProviderList