本文整理了Java中java.security.Provider.serviceInfoToProperties()
方法的一些代码示例,展示了Provider.serviceInfoToProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider.serviceInfoToProperties()
方法的具体详情如下:
包路径:java.security.Provider
类名称:Provider
方法名:serviceInfoToProperties
[英]Add Service information to the provider's properties.
[中]将服务信息添加到提供商的属性中。
代码示例来源: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: 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: 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: 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.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);
}
内容来源于网络,如有侵权,请联系作者删除!