gpt4 book ai didi

org.opensaml.core.xml.config.XMLObjectProviderRegistry.setParserPool()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 06:03:05 25 4
gpt4 key购买 nike

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

XMLObjectProviderRegistry.setParserPool介绍

[英]Set the currently configured ParserPool instance.
[中]设置当前配置的ParserPool实例。

代码示例

代码示例来源:origin: org.opensaml/opensaml-core

/**
 * Set the currently configured ParserPool instance.
 * 
 * @param newParserPool the new ParserPool instance to configure
 */
public static void setParserPool(@Nullable final ParserPool newParserPool) {
  ConfigurationService.get(XMLObjectProviderRegistry.class).setParserPool(newParserPool);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

/**
 * Set the currently configured ParserPool instance.
 * 
 * @param newParserPool the new ParserPool instance to configure
 */
public static void setParserPool(@Nullable final ParserPool newParserPool) {
  ConfigurationService.get(XMLObjectProviderRegistry.class).setParserPool(newParserPool);
}

代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-common

private static void configureParserPool() throws Throwable {
  BasicParserPool pp = new BasicParserPool();
  pp.setMaxPoolSize(50);
  pp.initialize();
  providerRegistry.setParserPool(pp);
}

代码示例来源:origin: org.jasig.cas/cas-server-support-saml

registry.setParserPool(this.parserPool);

代码示例来源:origin: org.pac4j/pac4j-saml

@Override
public void configure() {
  XMLObjectProviderRegistry registry;
  synchronized (ConfigurationService.class) {
    registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
    if (registry == null) {
      registry = new XMLObjectProviderRegistry();
      ConfigurationService.register(XMLObjectProviderRegistry.class, registry);
    }
  }
  try {
    InitializationService.initialize();
  } catch (final InitializationException e) {
    throw new RuntimeException("Exception initializing OpenSAML", e);
  }
  ParserPool parserPool = initParserPool();
  registry.setParserPool(parserPool);
}

代码示例来源:origin: org.opensaml/opensaml-core

/** {@inheritDoc} */
public void init() throws InitializationException {
  BasicParserPool pp = new BasicParserPool();
  pp.setMaxPoolSize(50);
  try {
    pp.initialize();
  } catch (ComponentInitializationException e) {
    throw new InitializationException("Error initializing parser pool", e);
  }
  
  XMLObjectProviderRegistry registry = null;
  synchronized(ConfigurationService.class) {
    registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
    if (registry == null) {
      log.debug("XMLObjectProviderRegistry did not exist in ConfigurationService, will be created");
      registry = new XMLObjectProviderRegistry();
      ConfigurationService.register(XMLObjectProviderRegistry.class, registry);
    }
  }
  
  registry.setParserPool(pp);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

/** {@inheritDoc} */
public void init() throws InitializationException {
  BasicParserPool pp = new BasicParserPool();
  pp.setMaxPoolSize(50);
  try {
    pp.initialize();
  } catch (ComponentInitializationException e) {
    throw new InitializationException("Error initializing parser pool", e);
  }
  
  XMLObjectProviderRegistry registry = null;
  synchronized(ConfigurationService.class) {
    registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
    if (registry == null) {
      log.debug("XMLObjectProviderRegistry did not exist in ConfigurationService, will be created");
      registry = new XMLObjectProviderRegistry();
      ConfigurationService.register(XMLObjectProviderRegistry.class, registry);
    }
  }
  
  registry.setParserPool(pp);
}

代码示例来源:origin: net.shibboleth.idp/idp-core

registry.setParserPool(parserPool);

代码示例来源:origin: spring-projects/spring-security-saml

registry.setParserPool(parserPool);
encryptedKeyResolver = new ChainingEncryptedKeyResolver(
  asList(

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com