java.security.Provider.key()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(11.0k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中java.security.Provider.key()方法的一些代码示例,展示了Provider.key()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider.key()方法的具体详情如下:
包路径:java.security.Provider
类名称:Provider
方法名:key

Provider.key介绍

[英]Returns an unmodifiable Set view of the property keys contained in this provider.
[中]返回此提供程序中包含的属性键的不可修改的集合视图。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Removes a previously registered {@code Service} from this {@code
 * Provider}.
 *
 * @param s
 *            the {@code Service} to remove
 * @throws NullPointerException
 *             if {@code s} is {@code null}
 */
protected synchronized void removeService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  servicesChanged();
  if (serviceTable != null) {
    serviceTable.remove(key(s.type, s.algorithm));
  }
  if (aliasTable != null && s.aliases != null) {
    for (String alias: s.getAliases()) {
      aliasTable.remove(key(s.type, alias));
    }
  }
  serviceInfoFromProperties(s);
}

代码示例来源:origin: robovm/robovm

aliasName = service_alias.substring(i + 1);
if (propertyAliasTable != null) {
  propertyAliasTable.remove(key(serviceName, aliasName));
algorithm = k.substring(j + 1);
if (propertyServiceTable != null) {
  Provider.Service ser = propertyServiceTable.remove(key(serviceName, algorithm));
  if (ser != null && propertyAliasTable != null
      && ser.aliases != null) {
    for (String alias : ser.aliases) {
      propertyAliasTable.remove(key(serviceName, alias));
algorithm = k.substring(j + 1, i);
if (propertyServiceTable != null) {
  Object o = propertyServiceTable.get(key(serviceName, algorithm));
  if (o != null) {
    s = (Provider.Service) o;

代码示例来源:origin: robovm/robovm

String key = key(type, algorithm);
Object o = null;
if (serviceTable != null) {

代码示例来源:origin: robovm/robovm

/**
 * Adds a {@code Service} to this {@code Provider}. If a service with the
 * same name was registered via this method, it is replace.
 *
 * @param s
 *            the {@code Service} to register
 */
protected synchronized void putService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  if ("Provider".equals(s.getType())) { // Provider service type cannot be added
    return;
  }
  servicesChanged();
  if (serviceTable == null) {
    serviceTable = new LinkedHashMap<String, Service>(128);
  }
  serviceTable.put(key(s.type, s.algorithm), s);
  if (s.aliases != null) {
    if (aliasTable == null) {
      aliasTable = new LinkedHashMap<String, Service>(256);
    }
    for (String alias : s.getAliases()) {
      aliasTable.put(key(s.type, alias), s);
    }
  }
  serviceInfoToProperties(s);
}

代码示例来源:origin: robovm/robovm

aliasName = service_alias.substring(i + 1);
algorithm = value;
String propertyServiceTableKey = key(serviceName, algorithm);
Object o = null;
if (propertyServiceTable == null) {
    propertyAliasTable = new LinkedHashMap<String, Service>(256);
  propertyAliasTable.put(key(serviceName, aliasName), s);
} else {
  String className = (String) changedProperties
      propertyAliasTable = new LinkedHashMap<String, Service>(256);
    propertyAliasTable.put(key(serviceName, aliasName), s);
serviceName = key.substring(0, j);
algorithm = key.substring(j + 1);
String propertyServiceTableKey = key(serviceName, algorithm);
Object o = null;
if (propertyServiceTable != null) {
algorithm = key.substring(j + 1, i);
String attribute = key.substring(i + 1);
String propertyServiceTableKey = key(serviceName, algorithm);
Object o = null;
if (propertyServiceTable != null) {

代码示例来源:origin: MobiVM/robovm

/**
 * Removes a previously registered {@code Service} from this {@code
 * Provider}.
 *
 * @param s
 *            the {@code Service} to remove
 * @throws NullPointerException
 *             if {@code s} is {@code null}
 */
protected synchronized void removeService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  servicesChanged();
  if (serviceTable != null) {
    serviceTable.remove(key(s.type, s.algorithm));
  }
  if (aliasTable != null && s.aliases != null) {
    for (String alias: s.getAliases()) {
      aliasTable.remove(key(s.type, alias));
    }
  }
  serviceInfoFromProperties(s);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Removes a previously registered {@code Service} from this {@code
 * Provider}.
 *
 * @param s
 *            the {@code Service} to remove
 * @throws NullPointerException
 *             if {@code s} is {@code null}
 */
protected synchronized void removeService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  servicesChanged();
  if (serviceTable != null) {
    serviceTable.remove(key(s.type, s.algorithm));
  }
  if (aliasTable != null && s.aliases != null) {
    for (String alias: s.getAliases()) {
      aliasTable.remove(key(s.type, alias));
    }
  }
  serviceInfoFromProperties(s);
}

代码示例来源:origin: ibinti/bugvm

/**
 * Removes a previously registered {@code Service} from this {@code
 * Provider}.
 *
 * @param s
 *            the {@code Service} to remove
 * @throws NullPointerException
 *             if {@code s} is {@code null}
 */
protected synchronized void removeService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  servicesChanged();
  if (serviceTable != null) {
    serviceTable.remove(key(s.type, s.algorithm));
  }
  if (aliasTable != null && s.aliases != null) {
    for (String alias: s.getAliases()) {
      aliasTable.remove(key(s.type, alias));
    }
  }
  serviceInfoFromProperties(s);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Removes a previously registered {@code Service} from this {@code
 * Provider}.
 *
 * @param s
 *            the {@code Service} to remove
 * @throws NullPointerException
 *             if {@code s} is {@code null}
 */
protected synchronized void removeService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  servicesChanged();
  if (serviceTable != null) {
    serviceTable.remove(key(s.type, s.algorithm));
  }
  if (aliasTable != null && s.aliases != null) {
    for (String alias: s.getAliases()) {
      aliasTable.remove(key(s.type, alias));
    }
  }
  serviceInfoFromProperties(s);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Removes a previously registered {@code Service} from this {@code
 * Provider}.
 *
 * @param s
 *            the {@code Service} to remove
 * @throws NullPointerException
 *             if {@code s} is {@code null}
 */
protected synchronized void removeService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  servicesChanged();
  if (serviceTable != null) {
    serviceTable.remove(key(s.type, s.algorithm));
  }
  if (aliasTable != null && s.aliases != null) {
    for (String alias: s.getAliases()) {
      aliasTable.remove(key(s.type, alias));
    }
  }
  serviceInfoFromProperties(s);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Removes a previously registered {@code Service} from this {@code
 * Provider}.
 *
 * @param s
 *            the {@code Service} to remove
 * @throws NullPointerException
 *             if {@code s} is {@code null}
 */
protected synchronized void removeService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  servicesChanged();
  if (serviceTable != null) {
    serviceTable.remove(key(s.type, s.algorithm));
  }
  if (aliasTable != null && s.aliases != null) {
    for (String alias: s.getAliases()) {
      aliasTable.remove(key(s.type, alias));
    }
  }
  serviceInfoFromProperties(s);
}

代码示例来源:origin: MobiVM/robovm

String key = key(type, algorithm);
Object o = null;
if (serviceTable != null) {

代码示例来源:origin: ibinti/bugvm

String key = key(type, algorithm);
Object o = null;
if (serviceTable != null) {

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Adds a {@code Service} to this {@code Provider}. If a service with the
 * same name was registered via this method, it is replace.
 *
 * @param s
 *            the {@code Service} to register
 */
protected synchronized void putService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  if ("Provider".equals(s.getType())) { // Provider service type cannot be added
    return;
  }
  servicesChanged();
  if (serviceTable == null) {
    serviceTable = new LinkedHashMap<String, Service>(128);
  }
  serviceTable.put(key(s.type, s.algorithm), s);
  if (s.aliases != null) {
    if (aliasTable == null) {
      aliasTable = new LinkedHashMap<String, Service>(256);
    }
    for (String alias : s.getAliases()) {
      aliasTable.put(key(s.type, alias), s);
    }
  }
  serviceInfoToProperties(s);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

String key = key(type, algorithm);
Object o = null;
if (serviceTable != null) {

代码示例来源:origin: ibinti/bugvm

/**
 * Adds a {@code Service} to this {@code Provider}. If a service with the
 * same name was registered via this method, it is replace.
 *
 * @param s
 *            the {@code Service} to register
 */
protected synchronized void putService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  if ("Provider".equals(s.getType())) { // Provider service type cannot be added
    return;
  }
  servicesChanged();
  if (serviceTable == null) {
    serviceTable = new LinkedHashMap<String, Service>(128);
  }
  serviceTable.put(key(s.type, s.algorithm), s);
  if (s.aliases != null) {
    if (aliasTable == null) {
      aliasTable = new LinkedHashMap<String, Service>(256);
    }
    for (String alias : s.getAliases()) {
      aliasTable.put(key(s.type, alias), s);
    }
  }
  serviceInfoToProperties(s);
}

代码示例来源:origin: MobiVM/robovm

/**
 * Adds a {@code Service} to this {@code Provider}. If a service with the
 * same name was registered via this method, it is replace.
 *
 * @param s
 *            the {@code Service} to register
 */
protected synchronized void putService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  if ("Provider".equals(s.getType())) { // Provider service type cannot be added
    return;
  }
  servicesChanged();
  if (serviceTable == null) {
    serviceTable = new LinkedHashMap<String, Service>(128);
  }
  serviceTable.put(key(s.type, s.algorithm), s);
  if (s.aliases != null) {
    if (aliasTable == null) {
      aliasTable = new LinkedHashMap<String, Service>(256);
    }
    for (String alias : s.getAliases()) {
      aliasTable.put(key(s.type, alias), s);
    }
  }
  serviceInfoToProperties(s);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Adds a {@code Service} to this {@code Provider}. If a service with the
 * same name was registered via this method, it is replace.
 *
 * @param s
 *            the {@code Service} to register
 */
protected synchronized void putService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  if ("Provider".equals(s.getType())) { // Provider service type cannot be added
    return;
  }
  servicesChanged();
  if (serviceTable == null) {
    serviceTable = new LinkedHashMap<String, Service>(128);
  }
  serviceTable.put(key(s.type, s.algorithm), s);
  if (s.aliases != null) {
    if (aliasTable == null) {
      aliasTable = new LinkedHashMap<String, Service>(256);
    }
    for (String alias : s.getAliases()) {
      aliasTable.put(key(s.type, alias), s);
    }
  }
  serviceInfoToProperties(s);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Adds a {@code Service} to this {@code Provider}. If a service with the
 * same name was registered via this method, it is replace.
 *
 * @param s
 *            the {@code Service} to register
 */
protected synchronized void putService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  if ("Provider".equals(s.getType())) { // Provider service type cannot be added
    return;
  }
  servicesChanged();
  if (serviceTable == null) {
    serviceTable = new LinkedHashMap<String, Service>(128);
  }
  serviceTable.put(key(s.type, s.algorithm), s);
  if (s.aliases != null) {
    if (aliasTable == null) {
      aliasTable = new LinkedHashMap<String, Service>(256);
    }
    for (String alias : s.getAliases()) {
      aliasTable.put(key(s.type, alias), s);
    }
  }
  serviceInfoToProperties(s);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Adds a {@code Service} to this {@code Provider}. If a service with the
 * same name was registered via this method, it is replace.
 *
 * @param s
 *            the {@code Service} to register
 */
protected synchronized void putService(Provider.Service s) {
  if (s == null) {
    throw new NullPointerException("s == null");
  }
  if ("Provider".equals(s.getType())) { // Provider service type cannot be added
    return;
  }
  servicesChanged();
  if (serviceTable == null) {
    serviceTable = new LinkedHashMap<String, Service>(128);
  }
  serviceTable.put(key(s.type, s.algorithm), s);
  if (s.aliases != null) {
    if (aliasTable == null) {
      aliasTable = new LinkedHashMap<String, Service>(256);
    }
    for (String alias : s.getAliases()) {
      aliasTable.put(key(s.type, alias), s);
    }
  }
  serviceInfoToProperties(s);
}

相关文章