@ThreadSafe public class SAML1AttributeDesignatorsMapperService extends Object implements AttributesMapper<org.opensaml.saml.saml1.core.AttributeDesignator,IdPAttribute>
SAML1AttributeDesignatorsMapper 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 SAML1AttributeDesignatorsMapper |
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 |
|---|
SAML1AttributeDesignatorsMapperService(ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> resolverService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private SAML1AttributeDesignatorsMapper |
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.saml1.core.AttributeDesignator> 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 SAML1AttributeDesignatorsMapper attributesMapper
public SAML1AttributeDesignatorsMapperService(@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.saml1.core.AttributeDesignator> prototypes)
mapAttributes in interface AttributesMapper<org.opensaml.saml.saml1.core.AttributeDesignator,IdPAttribute>@Nullable private SAML1AttributeDesignatorsMapper getMapper()
Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.