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

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

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

Provider.serviceInfoFromProperties介绍

[英]Remove Service information from the provider's properties.
[中]从提供商的属性中删除服务信息。

代码示例

代码示例来源: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: 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: 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: 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.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: 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: 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);
}

相关文章