Package net.shibboleth.idp.spring
Class OpenSAMLConfigBean
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.spring.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 Summary
Fields Modifier and Type Field Description private ParserPooldecryptionParserPoolOptional decryptionParserPoolto configure.private org.slf4j.LoggerlogClass logger.private com.codahale.metrics.MetricRegistrymetricRegistryOptionalMetricRegistryto configure.private ParserPoolparserPoolOptionalParserPoolto configure.
-
Constructor Summary
Constructors Constructor Description OpenSAMLConfigBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()ParserPoolgetDecryptionParserPool()Get the global decryptionParserPoolto configure.com.codahale.metrics.MetricRegistrygetMetricRegistry()Get the globalMetricRegistryto configure.ParserPoolgetParserPool()Get the globalParserPoolto configure.voidsetDecryptionParserPool(ParserPool newParserPool)Set the global decryptionParserPoolto configure.voidsetMetricRegistry(com.codahale.metrics.MetricRegistry registry)Set the globalMetricRegistryto configure.voidsetParserPool(ParserPool newParserPool)Set the globalParserPoolto configure.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
parserPool
@Nullable private ParserPool parserPool
OptionalParserPoolto configure.
-
decryptionParserPool
@Nullable private ParserPool decryptionParserPool
Optional decryptionParserPoolto configure.
-
metricRegistry
@Nullable private com.codahale.metrics.MetricRegistry metricRegistry
OptionalMetricRegistryto configure.
-
-
Method Detail
-
getParserPool
@Nullable public ParserPool getParserPool()
Get the globalParserPoolto configure.- Returns:
- the parser pool
-
setParserPool
public void setParserPool(@Nullable ParserPool newParserPool)Set the globalParserPoolto configure.- Parameters:
newParserPool- the parser pool to set
-
getDecryptionParserPool
@Nullable public ParserPool getDecryptionParserPool()
Get the global decryptionParserPoolto configure.- Returns:
- the decryption parser pool
-
setDecryptionParserPool
public void setDecryptionParserPool(@Nullable ParserPool newParserPool)Set the global decryptionParserPoolto configure.- Parameters:
newParserPool- the decryption parser pool to set
-
getMetricRegistry
@Nullable public com.codahale.metrics.MetricRegistry getMetricRegistry()
Get the globalMetricRegistryto configure.- Returns:
- the metric registry to use
- Since:
- 3.3.0
-
setMetricRegistry
public void setMetricRegistry(@Nullable com.codahale.metrics.MetricRegistry registry)Set the globalMetricRegistryto configure.- Parameters:
registry- the metric registry to use- Since:
- 3.3.0
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
-