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
A simple bean that may be used with Spring to initialize the OpenSAML library
with injected instances of some critical objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ParserPoolOptional decryptionParserPoolto configure.private final org.slf4j.LoggerClass logger.private com.codahale.metrics.MetricRegistryOptionalMetricRegistryto configure.private ParserPoolOptionalParserPoolto configure. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGet the global decryptionParserPoolto configure.com.codahale.metrics.MetricRegistryGet the globalMetricRegistryto configure.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 Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
parserPool
OptionalParserPoolto configure. -
decryptionParserPool
Optional decryptionParserPoolto configure. -
metricRegistry
@Nullable private com.codahale.metrics.MetricRegistry metricRegistryOptionalMetricRegistryto configure.
-
-
Constructor Details
-
OpenSAMLConfigBean
public OpenSAMLConfigBean()
-
-
Method Details
-
getParserPool
Get the globalParserPoolto configure.- Returns:
- the parser pool
-
setParserPool
Set the globalParserPoolto configure.- Parameters:
newParserPool- the parser pool to set
-
getDecryptionParserPool
Get the global decryptionParserPoolto configure.- Returns:
- the decryption parser pool
-
setDecryptionParserPool
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
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-