Class OpenSAMLConfigBean
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.profile.spring.impl.OpenSAMLConfigBean
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,Aware,EnvironmentAware
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 Map<String,Class<? extends BaseContext>> Optional map of renamed classes for string-based context navigation.private ParserPoolOptional decryptionParserPoolto configure.private final org.slf4j.LoggerClass logger.private com.codahale.metrics.MetricRegistryOptionalMetricRegistryto configure.private ParserPoolOptionalParserPoolto configure.private EnvironmentThe Spring environment instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGet the global decryptionParserPoolto configure.com.codahale.metrics.MetricRegistryGet the globalMetricRegistryto configure.Get the globalParserPoolto configure.voidsetContextLookAsideMap(Map<String, Class<? extends BaseContext>> map) Set the global map of relocated context classes.voidsetDecryptionParserPool(ParserPool newParserPool) Set the global decryptionParserPoolto configure.voidsetEnvironment(Environment environment) voidsetMetricRegistry(com.codahale.metrics.MetricRegistry registry) Set the globalMetricRegistryto configure.voidsetParserPool(ParserPool newParserPool) Set the globalParserPoolto configure.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
springEnvironment
The Spring environment instance. -
parserPool
OptionalParserPoolto configure. -
decryptionParserPool
Optional decryptionParserPoolto configure. -
metricRegistry
@Nullable private com.codahale.metrics.MetricRegistry metricRegistryOptionalMetricRegistryto configure. -
contextLookAsideMap
Optional map of renamed classes for string-based context navigation.
-
-
Constructor Details
-
OpenSAMLConfigBean
public OpenSAMLConfigBean()
-
-
Method Details
-
setEnvironment
- Specified by:
setEnvironmentin interfaceEnvironmentAware
-
getParserPool
Get the globalParserPoolto configure.- Returns:
- the parser pool
-
getDecryptionParserPool
Get the global decryptionParserPoolto configure.- Returns:
- the decryption parser pool
-
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
-
setContextLookAsideMap
Set the global map of relocated context classes.- Parameters:
map- map of relocated context classes- Since:
- 5.0.0
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-