Class OpenSAMLConfigBean

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent

public class OpenSAMLConfigBean
extends AbstractInitializableComponent
A simple bean that may be used with Spring to initialize the OpenSAML library with injected instances of some critical objects.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • parserPool

      @Nullable private ParserPool parserPool
      Optional ParserPool to configure.
    • decryptionParserPool

      @Nullable private ParserPool decryptionParserPool
      Optional decryption ParserPool to configure.
    • metricRegistry

      @Nullable private com.codahale.metrics.MetricRegistry metricRegistry
      Optional MetricRegistry to configure.
  • Constructor Details

    • OpenSAMLConfigBean

      public OpenSAMLConfigBean()
  • Method Details

    • getParserPool

      @Nullable public ParserPool getParserPool()
      Get the global ParserPool to configure.
      Returns:
      the parser pool
    • setParserPool

      public void setParserPool​(@Nullable ParserPool newParserPool)
      Set the global ParserPool to configure.
      Parameters:
      newParserPool - the parser pool to set
    • getDecryptionParserPool

      @Nullable public ParserPool getDecryptionParserPool()
      Get the global decryption ParserPool to configure.
      Returns:
      the decryption parser pool
    • setDecryptionParserPool

      public void setDecryptionParserPool​(@Nullable ParserPool newParserPool)
      Set the global decryption ParserPool to configure.
      Parameters:
      newParserPool - the decryption parser pool to set
    • getMetricRegistry

      @Nullable public com.codahale.metrics.MetricRegistry getMetricRegistry()
      Get the global MetricRegistry to configure.
      Returns:
      the metric registry to use
      Since:
      3.3.0
    • setMetricRegistry

      public void setMetricRegistry​(@Nullable com.codahale.metrics.MetricRegistry registry)
      Set the global MetricRegistry to configure.
      Parameters:
      registry - the metric registry to use
      Since:
      3.3.0
    • doInitialize

      protected void doInitialize() throws ComponentInitializationException
      Overrides:
      doInitialize in class AbstractInitializableComponent
      Throws:
      ComponentInitializationException