@ThreadSafe public class SAML2AttributesMapperService extends Object implements AttributesMapper<org.opensaml.saml.saml2.core.Attribute,IdPAttribute>
SAML2AttributesMapper for use by objects that can't just store a constructed mapper
themselves, such as action beans.| Modifier and Type | Field and Description |
|---|---|
private ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> |
attributeResolverService
Service used to get the resolver used to fetch attributes.
|
private SAML2AttributesMapper |
attributesMapper
Cached AttributeMapper.
|
private boolean |
captiveServiceReloadFailed
Whether the last invocation of
ReloadableService.reload()
on attributeResolverService failed. |
private DateTime |
lastReload
Date when the cache was last refreshed.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
SAML2AttributesMapperService(ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> resolverService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private SAML2AttributesMapper |
getMapper()
Check to see if a reload of the mapper is required and do so, and return whatever should be used.
|
Multimap<String,IdPAttribute> |
mapAttributes(List<org.opensaml.saml.saml2.core.Attribute> prototypes) |
@Nonnull private final org.slf4j.Logger log
@Nonnull private final ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> attributeResolverService
@Nonnull private boolean captiveServiceReloadFailed
ReloadableService.reload()
on attributeResolverService failed. This limits the noise in log file.@Nullable private SAML2AttributesMapper attributesMapper
public SAML2AttributesMapperService(@Nonnull ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> resolverService)
resolverService - the service for the attribute resolver we are to derive mapping info from@Nonnull @NonnullElements public Multimap<String,IdPAttribute> mapAttributes(@Nonnull@NonnullElements List<org.opensaml.saml.saml2.core.Attribute> prototypes)
mapAttributes in interface AttributesMapper<org.opensaml.saml.saml2.core.Attribute,IdPAttribute>@Nullable private SAML2AttributesMapper getMapper()
Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.