gpt4 book ai didi

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

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

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

XMLObjectProviderRegistry.<init>介绍

[英]Constructor.
[中]建造师。

代码示例

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

if (registry == null) {
  LOGGER.debug("XMLObjectProviderRegistry did not exist in ConfigurationService, will be created");
  registry = new XMLObjectProviderRegistry();
  ConfigurationService.register(XMLObjectProviderRegistry.class, registry);

代码示例来源: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.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml

if (reg == null) {
  log.debug("XMLObjectProviderRegistry did not exist in ConfigurationService, will be created");
  reg = new XMLObjectProviderRegistry();
  ConfigurationService.register(XMLObjectProviderRegistry.class, reg);

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

if (reg == null) {
  log.debug("XMLObjectProviderRegistry did not exist in ConfigurationService, will be created");
  reg = new XMLObjectProviderRegistry();
  ConfigurationService.register(XMLObjectProviderRegistry.class, reg);

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

public static synchronized void initSamlEngine(boolean includeXacml) {
  if (!samlEngineInitialized) {
    LOG.debug("Initializing the opensaml2 library...");
    WSProviderConfig.init();
    Configuration configuration = new MapBasedConfiguration();
    ConfigurationService.setConfiguration(configuration);
    providerRegistry = new XMLObjectProviderRegistry();
    configuration.register(XMLObjectProviderRegistry.class, providerRegistry,
                ConfigurationService.DEFAULT_PARTITION_NAME);
    try {
      OpenSAMLBootstrap.bootstrap(includeXacml);
      SAMLConfiguration samlConfiguration = new SAMLConfiguration();
      configuration.register(SAMLConfiguration.class, samlConfiguration,
                  ConfigurationService.DEFAULT_PARTITION_NAME);
      builderFactory = XMLObjectProviderRegistrySupport.getBuilderFactory();
      marshallerFactory = XMLObjectProviderRegistrySupport.getMarshallerFactory();
      unmarshallerFactory = XMLObjectProviderRegistrySupport.getUnmarshallerFactory();
      try {
        configureParserPool();
      } catch (Throwable t) {
        LOG.warn("Unable to bootstrap the parser pool part of the opensaml library "
             + "- some SAML operations may fail", t);
      }
      samlEngineInitialized = true;
      LOG.debug("opensaml3 library bootstrap complete");
    } catch (XMLConfigurationException ex) {
      LOG.error("Unable to bootstrap the opensaml3 library - all SAML operations will fail", ex);
    }
  }
}

代码示例来源: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

if (registry == null) {
  log.debug("XMLObjectProviderRegistry did not exist in ConfigurationService, will be created");
  registry = new XMLObjectProviderRegistry();
  ConfigurationService.register(XMLObjectProviderRegistry.class, registry);

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

registry = ConfigurationService.get(XMLObjectProviderRegistry.class);
if (registry == null) {
  registry = new XMLObjectProviderRegistry();
  ConfigurationService.register(XMLObjectProviderRegistry.class, registry);

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